Skip to content

Commit

Permalink
bugfix: ECS additional_certs is empty (#952)
Browse files Browse the repository at this point in the history
  • Loading branch information
Benbentwo authored Jan 11, 2024
1 parent 2677de4 commit 0673589
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/ecs/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -227,12 +227,12 @@ module "alb" {
}

locals {
# formats the loadbalancer configuration data to be:
# formats the load-balancer configuration data to be:
# { "${alb_configuration key}_${additional_cert_entry}" => "additional_cert_entry" }
certificate_domains = merge([
for config_key, config in var.alb_configuration :
{ for domain in config.additional_certs :
"${config_key}_${domain}" => domain }
"${config_key}_${domain}" => domain } if lookup(config, "additional_certs", []) != []
]...)
}

Expand Down

0 comments on commit 0673589

Please sign in to comment.