Skip to content

Commit

Permalink
Merge pull request #15 from companieshouse/lp-117-ecs-terraform-confi…
Browse files Browse the repository at this point in the history
…g-and-docker-build

add lb listener and correct app version var
  • Loading branch information
makhtar-ch authored Nov 4, 2024
2 parents ebb57d5 + 9f1b991 commit d853fbc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions terraform/groups/ecs-service/data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,21 @@ data "aws_iam_role" "ecs_cluster_iam_role" {
data "aws_lb" "service_lb" {
name = "${var.environment}-chs-apichgovuk"
}

data "aws_lb_listener" "service_lb_listener" {
load_balancer_arn = data.aws_lb.service_lb.arn
port = 443
}

data "aws_lb" "secondary_lb" {
name = "${var.environment}-chs-apichgovuk-private"
}

data "aws_lb_listener" "secondary_lb_listener" {
load_balancer_arn = data.aws_lb.secondary_lb.arn
port = 443
}

# retrieve all secrets for this stack using the stack path
data "aws_ssm_parameters_by_path" "secrets" {
path = "/${local.name_prefix}"
Expand Down
2 changes: 1 addition & 1 deletion terraform/groups/ecs-service/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ module "ecs-service" {
# Docker container details
docker_registry = var.docker_registry
docker_repo = local.docker_repo
container_version = var.ocr_api_version
container_version = var.limited_partnerships_api_version
container_port = local.container_port

# Service configuration
Expand Down

0 comments on commit d853fbc

Please sign in to comment.