Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down
2 changes: 1 addition & 1 deletion terraform/outputs.tf
Original file line number Diff line number Diff line change
@@ -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" {
Expand Down
Loading