Skip to content

Commit

Permalink
#98 updated reference to target group
Browse files Browse the repository at this point in the history
  • Loading branch information
kunduso committed Oct 4, 2024
1 parent 45cb5c8 commit c005d8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions deploy/code_deploy.tf
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ resource "aws_codedeploy_deployment_group" "application_main" {
listener_arns = [local.infra_output["aws_lb_listener"]]
}
target_group {
name = local.infra_output["aws_lb_blue_target_group"]
name = local.infra_output["aws_lb_blue_target_group_name"]
}
target_group {
name = local.infra_output["aws_lb_green_target_group"]
name = local.infra_output["aws_lb_green_target_group_name"]
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion deploy/ecs_service.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ resource "aws_ecs_service" "service" {
desired_count = 2
force_new_deployment = true
load_balancer {
target_group_arn = local.infra_output["aws_lb_blue_target_group"]
target_group_arn = local.infra_output["aws_lb_blue_target_group_arn"]
container_name = "first"
container_port = "8080" # Application Port
}
Expand Down

0 comments on commit c005d8c

Please sign in to comment.