Skip to content

Commit d825f42

Browse files
author
Anton Aleksandrov
committed
Enabled force_new_deployment flag
1 parent 2e60c5e commit d825f42

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ resource "aws_ecs_service" "service" {
3939
enable_ecs_managed_tags = var.enable_ecs_managed_tags
4040
health_check_grace_period_seconds = var.health_check_grace_period_seconds
4141
launch_type = "FARGATE"
42+
force_new_deployment = var.force_new_deployment
4243
dynamic "load_balancer" {
4344
for_each = data.aws_lb_target_group.lb_http_target_groups
4445
content {

variables.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ variable "task_definition_arn" {
8181
description = "(Required) The full ARN of the task definition that you want to run in your service."
8282
}
8383

84+
variable "force_new_deployment"{
85+
description = "(Optional) Enable to force a new task deployment of the service. This can be used to update tasks to use a newer Docker image with same image/tag combination (e.g. myimage:latest), roll Fargate tasks onto a newer platform version, or immediately deploy ordered_placement_strategy and placement_constraints updates."
86+
}
87+
8488
#------------------------------------------------------------------------------
8589
# AWS ECS SERVICE network_configuration BLOCK
8690
#------------------------------------------------------------------------------

0 commit comments

Comments
 (0)