Skip to content

Commit 6f01c00

Browse files
authored
fix: Add triggers to support force_new_deployment. (#51)
1 parent 108f2a7 commit 6f01c00

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

main.tf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ module "task_security_group" {
112112

113113
module "ecs" {
114114
source = "HENNGE/ecs/aws"
115-
version = "~> 4.2"
115+
version = "~> 5.5"
116116

117117
name = local.prefix
118118
capacity_providers = ["FARGATE"]
@@ -123,7 +123,7 @@ module "ecs" {
123123

124124
module "ecs_service" {
125125
source = "HENNGE/ecs/aws//modules/simple/fargate"
126-
version = "~> 5.1"
126+
version = "~> 5.5"
127127
depends_on = [module.alb, module.ecs]
128128

129129
name = local.prefix
@@ -142,6 +142,7 @@ module "ecs_service" {
142142
health_check_grace_period_seconds = var.health_check_grace_period
143143
force_delete = var.force_delete
144144
force_new_deployment = var.force_new_deployment
145+
triggers = { redeploy = var.force_new_deployment ? plantimestamp() : "false" }
145146

146147
container_definitions = jsonencode(yamldecode(templatefile(
147148
"${path.module}/templates/container_definitions.yaml.tftpl", {

0 commit comments

Comments
 (0)