Title
#fleet
j

John Michael Mizerany

05/23/2022, 9:19 PM
Is there a way to use a previous hosted zone in Route 53 for the terraform build? Running
terraform apply
creates a new hosted zone for us but we already have one with a cert provided by ACM. I am following the guide here: https://fleetdm.com/guides/deploying-fleet-on-aws-with-terraform
Benjamin Edwards

Benjamin Edwards

05/23/2022, 10:44 PM
Hey! I think the best way is to clone the terraform and make edits. Sounds like you could introduce your cert as a data block and reference it in the load balancer. That would give you the ability to remove (read delete) the resources that do the cert provisioning, ie ACM and R53 via DNS validation.
j

John Michael Mizerany

05/24/2022, 1:58 PM
Thank you! My only question is that I have tried a similar approach but the issue is that the ACM won't validate our domain under that hosted zone
Benjamin Edwards

Benjamin Edwards

05/24/2022, 2:31 PM
If you already have a cert imported into ACM then why do you need to do validation?
j

John Michael Mizerany

05/24/2022, 2:33 PM
Sorry I didn't explain last message well. We have a hosted zone but are adding another record into it. And that record that we are creating is what is not being validated by ACM
Benjamin Edwards

Benjamin Edwards

05/24/2022, 2:36 PM
I'm away from keyboard at the moment but as first steps you have confirmed domain authority has been passed onto this new Zone? For example check out this blog https://blog.fleetdm.com/deploying-fleet-on-aws-with-terraform-a58a908e8d40
j

John Michael Mizerany

05/24/2022, 2:37 PM
I think that's the step we are stuck on! Thanks. I can try to work out this issue from here