Skip to content

Commit

Permalink
Shutdown: Replace API with tombstone, 2nd try (#1572)
Browse files Browse the repository at this point in the history
The previous change (#1571) did not take when Terraform applied it, and lost the old A record from Terraform's state. I went ahead and deleted the old record in AWS's web console, and this should create a new CNAME.

Part of #1550.
  • Loading branch information
Mr0grog authored Jun 16, 2023
1 parent 0abeb11 commit 95e8905
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions terraform/api-domains.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ data "aws_route53_zone" "domain_zone" {
}

# DNS record for the domain specified in the `domain_name` variable.
resource "aws_route53_record" "api_domain_record" {
count = var.domain_name != "" ? 1 : 0

resource "aws_route53_record" "api_apex_domain_record" {
count = var.domain_name != "" ? 1 : 0
zone_id = data.aws_route53_zone.domain_zone[0].zone_id
name = var.domain_name
type = "CNAME"
Expand Down

0 comments on commit 95e8905

Please sign in to comment.