Skip to content

Commit

Permalink
Update mdmproxy module to force redeployment on secret change (#22065)
Browse files Browse the repository at this point in the history
  • Loading branch information
rfairburn committed Sep 13, 2024
1 parent 867029e commit f71d399
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions terraform/addons/mdmproxy/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@ resource "aws_ecs_service" "mdmproxy" {
desired_count = var.config.desired_count
deployment_minimum_healthy_percent = 100
deployment_maximum_percent = 200
force_new_deployment = true

triggers = {
redeployment = md5(jsonencode(aws_secretsmanager_secret_version.mdmproxy.secret_string))
}

load_balancer {
target_group_arn = module.alb.target_group_arns[0]
Expand Down

0 comments on commit f71d399

Please sign in to comment.