Repository navigation
Point Food Oasis production hostnames at the load balancer - #303
Merged
Merged
Conversation
Contributor
|
Terraform plan in terraform Plan: 16 to add, 1 to change, 10 to destroy.Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+ create
!~ update in-place
- destroy
-/+ destroy and then create replacement
Terraform will perform the following actions:
# module.food-oasis.aws_lb_listener_rule.foodoasis_la_redirect will be destroyed
# (because aws_lb_listener_rule.foodoasis_la_redirect is not in configuration)
- resource "aws_lb_listener_rule" "foodoasis_la_redirect" {
- arn = "arn:aws:elasticloadbalancing:us-west-2:035866691871:listener-rule/app/incubator-prod-lb/7451adf77133ef36/390a225766a4daf3/d61266ae2383bff5" -> null
- id = "arn:aws:elasticloadbalancing:us-west-2:035866691871:listener-rule/app/incubator-prod-lb/7451adf77133ef36/390a225766a4daf3/d61266ae2383bff5" -> null
- listener_arn = "arn:aws:elasticloadbalancing:us-west-2:035866691871:listener/app/incubator-prod-lb/7451adf77133ef36/390a225766a4daf3" -> null
- priority = 599 -> null
- region = "us-west-2" -> null
- tags = {} -> null
- tags_all = {
- "managed-by" = "terraform-incubator"
} -> null
- action {
- order = 1 -> null
- type = "redirect" -> null
# (1 unchanged attribute hidden)
- redirect {
- host = "www.foodoasis.la" -> null
- path = "/#{path}" -> null
- port = "443" -> null
- protocol = "HTTPS" -> null
- query = "#{query}" -> null
- status_code = "HTTP_302" -> null
}
}
- condition {
- host_header {
- regex_values = [] -> null
- values = [
- "foodoasis.la",
] -> null
}
}
}
# module.food-oasis.aws_route53_record.apex will be updated in-place
!~ resource "aws_route53_record" "apex" {
id = "Z0146252WPL4NX2APXU2_foodoasis.net_A"
name = "foodoasis.net"
# (8 unchanged attributes hidden)
!~ alias {
!~ name = "d38lekrqxloj5j.cloudfront.net" -> "incubator-prod-lb-569274394.us-west-2.elb.amazonaws.com"
!~ zone_id = "*********************************"
# (1 unchanged attribute hidden)
}
}
# module.food-oasis.module.food_oasis_prod_dns_la["hawaii"].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 = "hawaii"
+ records = [
+ "incubator-prod-lb-569274394.us-west-2.elb.amazonaws.com",
]
+ ttl = 300
+ type = "CNAME"
+ zone_id = "********************"
}
# module.food-oasis.module.food_oasis_prod_dns_la["hi"].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 = "hi"
+ records = [
+ "incubator-prod-lb-569274394.us-west-2.elb.amazonaws.com",
]
+ ttl = 300
+ type = "CNAME"
+ zone_id = "********************"
}
# module.food-oasis.module.food_oasis_prod_dns_la["la"].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 = "la"
+ records = [
+ "incubator-prod-lb-569274394.us-west-2.elb.amazonaws.com",
]
+ ttl = 300
+ type = "CNAME"
+ zone_id = "********************"
}
# module.food-oasis.module.food_oasis_prod_dns_la["losangeles"].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 = "losangeles"
+ records = [
+ "incubator-prod-lb-569274394.us-west-2.elb.amazonaws.com",
]
+ ttl = 300
+ type = "CNAME"
+ zone_id = "********************"
}
# module.food-oasis.module.food_oasis_prod_dns_la["mck"].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 = "mck"
+ records = [
+ "incubator-prod-lb-569274394.us-west-2.elb.amazonaws.com",
]
+ ttl = 300
+ type = "CNAME"
+ zone_id = "********************"
}
# module.food-oasis.module.food_oasis_prod_dns_la["mckinney"].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 = "mckinney"
+ records = [
+ "incubator-prod-lb-569274394.us-west-2.elb.amazonaws.com",
]
+ ttl = 300
+ type = "CNAME"
+ zone_id = "********************"
}
# module.food-oasis.module.food_oasis_prod_dns_la["sb"].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 = "sb"
+ records = [
+ "incubator-prod-lb-569274394.us-west-2.elb.amazonaws.com",
]
+ ttl = 300
+ type = "CNAME"
+ zone_id = "********************"
}
# module.food-oasis.module.food_oasis_prod_dns_la["www"].aws_route53_record.www must be replaced
# (moved from module.food-oasis.aws_route53_record.foodoasis_la_www)
-/+ resource "aws_route53_record" "www" {
+ allow_overwrite = (known after apply)
!~ fqdn = "www.foodoasis.la" -> (known after apply)
!~ id = "*******************************************" -> (known after apply)
- multivalue_answer_routing_policy = false -> null
!~ name = "www.foodoasis.la" -> "www" # forces replacement
!~ records = [
- "agile-amphibian-bjldl1n87xlxb75r57ri5epb.herokudns.com",
+ "incubator-prod-lb-569274394.us-west-2.elb.amazonaws.com",
]
# (5 unchanged attributes hidden)
}
# module.food-oasis.module.food_oasis_prod_dns_net["hawaii"].aws_route53_record.www must be replaced
# (moved from module.food-oasis.aws_route53_record.heroku["hawaii"])
-/+ resource "aws_route53_record" "www" {
+ allow_overwrite = (known after apply)
!~ fqdn = "hawaii.foodoasis.net" -> (known after apply)
!~ id = "***********************************************" -> (known after apply)
- multivalue_answer_routing_policy = false -> null
!~ name = "hawaii.foodoasis.net" -> "hawaii" # forces replacement
!~ records = [
- "hydrophobic-snapdragon-hjdkq2i0eau5lmh7ll12ls9x.herokudns.com",
+ "incubator-prod-lb-569274394.us-west-2.elb.amazonaws.com",
]
# (5 unchanged attributes hidden)
}
# module.food-oasis.module.food_oasis_prod_dns_net["hi"].aws_route53_record.www must be replaced
# (moved from module.food-oasis.aws_route53_record.heroku["hi"])
-/+ resource "aws_route53_record" "www" {
+ allow_overwrite = (known after apply)
!~ fqdn = "hi.foodoasis.net" -> (known after apply)
!~ id = "*******************************************" -> (known after apply)
- multivalue_answer_routing_policy = false -> null
!~ name = "hi.foodoasis.net" -> "hi" # forces replacement
!~ records = [
- "rigid-magpie-mebw7vjyv8gdppum8rhkvfvm.herokudns.com",
+ "incubator-prod-lb-569274394.us-west-2.elb.amazonaws.com",
]
# (5 unchanged attributes hidden)
}
# module.food-oasis.module.food_oasis_prod_dns_net["la"].aws_route53_record.www must be replaced
# (moved from module.food-oasis.aws_route53_record.heroku["la"])
-/+ resource "aws_route53_record" "www" {
+ allow_overwrite = (known after apply)
!~ fqdn = "la.foodoasis.net" -> (known after apply)
!~ id = "*******************************************" -> (known after apply)
- multivalue_answer_routing_policy = false -> null
!~ name = "la.foodoasis.net" -> "la" # forces replacement
!~ records = [
- "animate-hamlet-jt1tl79cdenf5v75tvna2klo.herokudns.com",
+ "incubator-prod-lb-569274394.us-west-2.elb.amazonaws.com",
]
!~ ttl = 500 -> 300
# (4 unchanged attributes hidden)
}
# module.food-oasis.module.food_oasis_prod_dns_net["losangeles"].aws_route53_record.www must be replaced
# (moved from module.food-oasis.aws_route53_record.heroku["losangeles"])
-/+ resource "aws_route53_record" "www" {
+ allow_overwrite = (known after apply)
!~ fqdn = "losangeles.foodoasis.net" -> (known after apply)
!~ id = "***************************************************" -> (known after apply)
- multivalue_answer_routing_policy = false -> null
!~ name = "losangeles.foodoasis.net" -> "losangeles" # forces replacement
!~ records = [
- "systematic-meadow-ta4cuicgtsswfq7zt4z16b5a.herokudns.com",
+ "incubator-prod-lb-569274394.us-west-2.elb.amazonaws.com",
]
# (5 unchanged attributes hidden)
}
# module.food-oasis.module.food_oasis_prod_dns_net["mck"].aws_route53_record.www must be replaced
# (moved from module.food-oasis.aws_route53_record.heroku["mck"])
-/+ resource "aws_route53_record" "www" {
+ allow_overwrite = (known after apply)
!~ fqdn = "mck.foodoasis.net" -> (known after apply)
!~ id = "********************************************" -> (known after apply)
- multivalue_answer_routing_policy = false -> null
!~ name = "mck.foodoasis.net" -> "mck" # forces replacement
!~ records = [
- "mammalian-rodent-f6df5bywowexay5evz30n698.herokudns.com",
+ "incubator-prod-lb-569274394.us-west-2.elb.amazonaws.com",
]
# (5 unchanged attributes hidden)
}
# module.food-oasis.module.food_oasis_prod_dns_net["mckinney"].aws_route53_record.www must be replaced
# (moved from module.food-oasis.aws_route53_record.heroku["mckinney"])
-/+ resource "aws_route53_record" "www" {
+ allow_overwrite = (known after apply)
!~ fqdn = "mckinney.foodoasis.net" -> (known after apply)
!~ id = "*************************************************" -> (known after apply)
- multivalue_answer_routing_policy = false -> null
!~ name = "mckinney.foodoasis.net" -> "mckinney" # forces replacement
!~ records = [
- "defined-mistletoe-015ugnwcpefs9c04ve6wcpea.herokudns.com",
+ "incubator-prod-lb-569274394.us-west-2.elb.amazonaws.com",
]
# (5 unchanged attributes hidden)
}
# module.food-oasis.module.food_oasis_prod_dns_net["sb"].aws_route53_record.www must be replaced
# (moved from module.food-oasis.aws_route53_record.heroku["sb"])
-/+ resource "aws_route53_record" "www" {
+ allow_overwrite = (known after apply)
!~ fqdn = "sb.foodoasis.net" -> (known after apply)
!~ id = "*******************************************" -> (known after apply)
- multivalue_answer_routing_policy = false -> null
!~ name = "sb.foodoasis.net" -> "sb" # forces replacement
!~ records = [
- "radiant-cabbage-qck9719gjvqw7cvnfi54daoj.herokudns.com",
+ "incubator-prod-lb-569274394.us-west-2.elb.amazonaws.com",
]
# (5 unchanged attributes hidden)
}
# module.food-oasis.module.food_oasis_prod_dns_net["www"].aws_route53_record.www must be replaced
# (moved from module.food-oasis.aws_route53_record.heroku["www"])
-/+ resource "aws_route53_record" "www" {
+ allow_overwrite = (known after apply)
!~ fqdn = "www.foodoasis.net" -> (known after apply)
!~ id = "********************************************" -> (known after apply)
- multivalue_answer_routing_policy = false -> null
!~ name = "www.foodoasis.net" -> "www" # forces replacement
!~ records = [
- "sinuous-coconut-r2v76m5vueay0acc354d4kow.herokudns.com",
+ "incubator-prod-lb-569274394.us-west-2.elb.amazonaws.com",
]
!~ ttl = 500 -> 300
# (4 unchanged attributes hidden)
}
Plan: 16 to add, 1 to change, 10 to destroy.✅ Plan applied in Terraform apply (OIDC) #128 |
ale210
marked this pull request as ready for review
November 21, 2026 04:28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of hackforla/devops#238.
Points the Food Oasis production hostnames at the load balancer, which sends them to the production service from #302:
www,la,losangeles,hi,hawaii,mck,mckinneyandsbunder bothfoodoasis.netandfoodoasis.la, throughmodules/dns-entry. Under.netthey replace Heroku CNAMEs. Under.la,wwwreplaces a Heroku CNAME and the seven region names are new.foodoasis.netbecomes an alias to the load balancer, replacing the alias to Amplify.foodoasis.la, so the production service's rule 601 serves it.Nothing else changes: the Zoho mail records, the Food Oasis account's SES DKIM records,
devmckinney,vitelaand the Amplify certificate validation record stay. hackforla/devops#239 removes the leftovers.Expected plan: 16 to add, 1 to change, 10 to destroy. The replacements come from
modules/dns-entrywriting the record name without the domain. Themovedblocks make each old record get deleted before its new one is created, so each name is briefly missing during the apply.Draft: merge only during the cutover window, with Heroku in maintenance mode. Until #294, the
.netrecords take effect only when copied by hand into the Food Oasis account's zone. That copy is part of the window.