Skip to content

Commit

Permalink
add ssm parameter to share the load balancer domain with other compon…
Browse files Browse the repository at this point in the history
…ents
  • Loading branch information
thomas loubrieu committed Aug 1, 2024
1 parent 3cd707f commit 071dcc2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions terraform/ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ resource "aws_lb" "registry-api-lb" {
}
}

resource "aws_ssm_parameter" "load_balancer_domain" {
name = "/pds/registry/load-balancer-domain"
type = "String"
overwrite = true
value = aws_lb.registry-api-lb.dns_name
}

resource "aws_lb_target_group" "pds-registry-api-target-group" {
name = "pds-${var.venue}-registry-tgt"
port = 80
Expand Down

0 comments on commit 071dcc2

Please sign in to comment.