Skip to content

Commit 2f774aa

Browse files
authored
feat: Add force_new_deployment switch (#196)
1 parent 1b118b1 commit 2f774aa

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ allow_github_webhooks = true
287287
| <a name="input_ecs_service_deployment_maximum_percent"></a> [ecs\_service\_deployment\_maximum\_percent](#input\_ecs\_service\_deployment\_maximum\_percent) | The upper limit (as a percentage of the service's desiredCount) of the number of running tasks that can be running in a service during a deployment | `number` | `200` | no |
288288
| <a name="input_ecs_service_deployment_minimum_healthy_percent"></a> [ecs\_service\_deployment\_minimum\_healthy\_percent](#input\_ecs\_service\_deployment\_minimum\_healthy\_percent) | The lower limit (as a percentage of the service's desiredCount) of the number of running tasks that must remain running and healthy in a service during a deployment | `number` | `50` | no |
289289
| <a name="input_ecs_service_desired_count"></a> [ecs\_service\_desired\_count](#input\_ecs\_service\_desired\_count) | The number of instances of the task definition to place and keep running | `number` | `1` | no |
290+
| <a name="input_ecs_service_force_new_deployment"></a> [ecs\_service\_force\_new\_deployment](#input\_ecs\_service\_force\_new\_deployment) | 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) | `bool` | `false` | no |
290291
| <a name="input_ecs_service_platform_version"></a> [ecs\_service\_platform\_version](#input\_ecs\_service\_platform\_version) | The platform version on which to run your service | `string` | `"LATEST"` | no |
291292
| <a name="input_ecs_task_cpu"></a> [ecs\_task\_cpu](#input\_ecs\_task\_cpu) | The number of cpu units used by the task | `number` | `256` | no |
292293
| <a name="input_ecs_task_memory"></a> [ecs\_task\_memory](#input\_ecs\_task\_memory) | The amount (in MiB) of memory used by the task | `number` | `512` | no |

main.tf

+1
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,7 @@ resource "aws_ecs_service" "atlantis" {
604604
platform_version = var.ecs_service_platform_version
605605
deployment_maximum_percent = var.ecs_service_deployment_maximum_percent
606606
deployment_minimum_healthy_percent = var.ecs_service_deployment_minimum_healthy_percent
607+
force_new_deployment = var.ecs_service_force_new_deployment
607608

608609
network_configuration {
609610
subnets = local.private_subnet_ids

variables.tf

+6
Original file line numberDiff line numberDiff line change
@@ -601,3 +601,9 @@ variable "enable_ecs_managed_tags" {
601601
type = bool
602602
default = false
603603
}
604+
605+
variable "ecs_service_force_new_deployment" {
606+
description = "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)"
607+
type = bool
608+
default = false
609+
}

0 commit comments

Comments
 (0)