diff --git a/app.yaml b/app.yaml index f47efb7..7b1b721 100644 --- a/app.yaml +++ b/app.yaml @@ -12,11 +12,13 @@ compute: desired_count: 2 # same as the old CDK service health_check: / # serves webapp/index.html -# Parallel run on a new hostname first. sleepingpill.javazone.no keeps pointing -# at the old stack until the cutover PR. +# The public hostname. adopt_dns takes over the existing (hand-made) Route53 +# record: Terraform overwrites it to point at the platform ALB and manages it +# from now on. The moresleep.javazone.no record from the parallel run is removed. routing: - host: moresleep.javazone.no + host: sleepingpill.javazone.no priority: 120 # ALB listener rule priority, unique on the platform ALB + adopt_dns: true resources: databases: diff --git a/terraform/main.tf b/terraform/main.tf index e60a8cc..d73cafa 100644 --- a/terraform/main.tf +++ b/terraform/main.tf @@ -25,11 +25,12 @@ module "routing" { health_check_matcher = "200" https_listener_arn = module.platform.https_listener_arn listener_rule_priority = 120 - host_header = "moresleep.javazone.no" + host_header = "sleepingpill.javazone.no" route53_zone_id = module.platform.route53_zone_ids["javazone.no"] alb_dns_name = module.platform.alb_dns_name alb_zone_id = module.platform.alb_zone_id deregistration_delay = 30 + allow_dns_overwrite = true } module "rds_main" { diff --git a/terraform/outputs.tf b/terraform/outputs.tf index 37563c0..2befd21 100644 --- a/terraform/outputs.tf +++ b/terraform/outputs.tf @@ -1,6 +1,6 @@ # GENERATED FROM app.yaml — do not edit, changes will be overwritten output "service_url" { - value = "https://moresleep.javazone.no" + value = "https://sleepingpill.javazone.no" } output "ecr_url" {