Company
Date Published
Author
Adam Gordon Bell
Word count
828
Language
English
Hacker News points
None

Summary

After experiencing unexpected DNS issues with the website earthly-tools.com, the author describes how they resolved the problem by importing DNS records from AWS Route 53 into Terraform. Initially, the site was unable to resolve its host due to a misalignment between the DNS records and the API Gateway domain name, caused by a leftover DNS record pointing to a non-existent API Gateway endpoint. By using Terraform, the author defined and imported the necessary zone and A records, then configured an alias property to ensure the DNS records would automatically update with changes to the HTTP API. The application of these Terraform configurations successfully restored the website's functionality, demonstrating the utility of Infrastructure as Code (IaC) in managing infrastructure changes efficiently.