Skip to content

Point Food Oasis staging hostnames at the load balancer - #301

Merged
ale210 merged 2 commits into
mainfrom
237-food-oasis-staging-dns
Nov 20, 2026
Merged

ale210 merged 2 commits into
mainfrom
237-food-oasis-staging-dns

Conversation

@ale210

@ale210 ale210 commented Nov 20, 2026

Copy link
Copy Markdown
Member

Part of hackforla/devops#237.

Points the Food Oasis staging hostnames devla, devhi, devmck and devsb at the load balancer through modules/dns-entry, under both foodoasis.net and foodoasis.la. The staging service's listener rule already matches dev* on both domains, and both certificates cover them.

  • .net: the four Heroku CNAMEs move out of dns.tf. moved blocks make each one an in-place update rather than a delete and a create, which Route 53 could refuse if the create ran first.
  • .la: four new CNAMEs.

Expected plan: 4 to add, 4 to change, 0 to destroy, all in module.food-oasis. Only the record values change; TTL stays 300.

Until foodoasis.net's nameservers switch (#294), the .net half changes nothing anyone can see. Those four records are copied by hand into the Food Oasis account's zone after the apply, as hackforla/devops#237 describes. The .la half takes effect on apply.

@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Terraform plan in terraform
With backend config files: terraform/prod.backend.tfvars

Plan: 8 to add, 0 to change, 4 to destroy.
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+   create
-/+ destroy and then create replacement

Terraform will perform the following actions:

  # module.food-oasis.module.food_oasis_stage_dns_la["devhi"].aws_route53_record.www will be created
+   resource "aws_route53_record" "www" {
+       allow_overwrite = (known after apply)
+       fqdn            = (known after apply)
+       id              = (known after apply)
+       name            = "devhi"
+       records         = [
+           "incubator-prod-lb-569274394.us-west-2.elb.amazonaws.com",
        ]
+       ttl             = 300
+       type            = "CNAME"
+       zone_id         = "********************"
    }

  # module.food-oasis.module.food_oasis_stage_dns_la["devla"].aws_route53_record.www will be created
+   resource "aws_route53_record" "www" {
+       allow_overwrite = (known after apply)
+       fqdn            = (known after apply)
+       id              = (known after apply)
+       name            = "devla"
+       records         = [
+           "incubator-prod-lb-569274394.us-west-2.elb.amazonaws.com",
        ]
+       ttl             = 300
+       type            = "CNAME"
+       zone_id         = "********************"
    }

  # module.food-oasis.module.food_oasis_stage_dns_la["devmck"].aws_route53_record.www will be created
+   resource "aws_route53_record" "www" {
+       allow_overwrite = (known after apply)
+       fqdn            = (known after apply)
+       id              = (known after apply)
+       name            = "devmck"
+       records         = [
+           "incubator-prod-lb-569274394.us-west-2.elb.amazonaws.com",
        ]
+       ttl             = 300
+       type            = "CNAME"
+       zone_id         = "********************"
    }

  # module.food-oasis.module.food_oasis_stage_dns_la["devsb"].aws_route53_record.www will be created
+   resource "aws_route53_record" "www" {
+       allow_overwrite = (known after apply)
+       fqdn            = (known after apply)
+       id              = (known after apply)
+       name            = "devsb"
+       records         = [
+           "incubator-prod-lb-569274394.us-west-2.elb.amazonaws.com",
        ]
+       ttl             = 300
+       type            = "CNAME"
+       zone_id         = "********************"
    }

  # module.food-oasis.module.food_oasis_stage_dns_net["devhi"].aws_route53_record.www must be replaced
  # (moved from module.food-oasis.aws_route53_record.heroku["devhi"])
-/+ resource "aws_route53_record" "www" {
+       allow_overwrite                  = (known after apply)
!~      fqdn                             = "devhi.foodoasis.net" -> (known after apply)
!~      id                               = "**********************************************" -> (known after apply)
-       multivalue_answer_routing_policy = false -> null
!~      name                             = "devhi.foodoasis.net" -> "devhi" # forces replacement
!~      records                          = [
-           "developmental-cherimoya-ccmf9hv7g9ml0yc9h4g0pcz7.herokudns.com",
+           "incubator-prod-lb-569274394.us-west-2.elb.amazonaws.com",
        ]
#        (5 unchanged attributes hidden)
    }

  # module.food-oasis.module.food_oasis_stage_dns_net["devla"].aws_route53_record.www must be replaced
  # (moved from module.food-oasis.aws_route53_record.heroku["devla"])
-/+ resource "aws_route53_record" "www" {
+       allow_overwrite                  = (known after apply)
!~      fqdn                             = "devla.foodoasis.net" -> (known after apply)
!~      id                               = "**********************************************" -> (known after apply)
-       multivalue_answer_routing_policy = false -> null
!~      name                             = "devla.foodoasis.net" -> "devla" # forces replacement
!~      records                          = [
-           "behavioral-quail-00sf9qf2m46k5j562jvbi3pk.herokudns.com",
+           "incubator-prod-lb-569274394.us-west-2.elb.amazonaws.com",
        ]
#        (5 unchanged attributes hidden)
    }

  # module.food-oasis.module.food_oasis_stage_dns_net["devmck"].aws_route53_record.www must be replaced
  # (moved from module.food-oasis.aws_route53_record.heroku["devmck"])
-/+ resource "aws_route53_record" "www" {
+       allow_overwrite                  = (known after apply)
!~      fqdn                             = "devmck.foodoasis.net" -> (known after apply)
!~      id                               = "***********************************************" -> (known after apply)
-       multivalue_answer_routing_policy = false -> null
!~      name                             = "devmck.foodoasis.net" -> "devmck" # forces replacement
!~      records                          = [
-           "flat-ape-48sda8flnlf9sxyzc20kf08s.herokudns.com",
+           "incubator-prod-lb-569274394.us-west-2.elb.amazonaws.com",
        ]
#        (5 unchanged attributes hidden)
    }

  # module.food-oasis.module.food_oasis_stage_dns_net["devsb"].aws_route53_record.www must be replaced
  # (moved from module.food-oasis.aws_route53_record.heroku["devsb"])
-/+ resource "aws_route53_record" "www" {
+       allow_overwrite                  = (known after apply)
!~      fqdn                             = "devsb.foodoasis.net" -> (known after apply)
!~      id                               = "**********************************************" -> (known after apply)
-       multivalue_answer_routing_policy = false -> null
!~      name                             = "devsb.foodoasis.net" -> "devsb" # forces replacement
!~      records                          = [
-           "spherical-crane-1baqenbwyh6wtvm01a77u9vw.herokudns.com",
+           "incubator-prod-lb-569274394.us-west-2.elb.amazonaws.com",
        ]
#        (5 unchanged attributes hidden)
    }

Plan: 8 to add, 0 to change, 4 to destroy.

✅ Plan applied in Terraform apply (OIDC) #126

@ale210
ale210 merged commit eaef617 into main Nov 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant