Skip to content

Commit 82ad447

Browse files
authored
Merge pull request #15 from AntonAleksandrov13/master
force_new_deployment flag
2 parents 2e60c5e + 8957dfd commit 82ad447

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-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: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@ 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+
type = bool
87+
default = false
88+
}
89+
8490
#------------------------------------------------------------------------------
8591
# AWS ECS SERVICE network_configuration BLOCK
8692
#------------------------------------------------------------------------------

0 commit comments

Comments
 (0)