Skip to content

Commit 968a159

Browse files
Update Terraform cn-terraform/ecs-fargate-service/aws to v2.0.37 (#65)
* Update Terraform cn-terraform/ecs-fargate-service/aws to v2.0.37 * Add new deployment_circuit_breaker variables Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Julian Nonino <[email protected]>
1 parent f660819 commit 968a159

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

main.tf

+5-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ module "td" {
7575
#------------------------------------------------------------------------------
7676
module "ecs-fargate-service" {
7777
source = "cn-terraform/ecs-fargate-service/aws"
78-
version = "2.0.36"
78+
version = "2.0.37"
7979
# source = "../terraform-aws-ecs-fargate-service"
8080

8181
name_prefix = var.name_prefix
@@ -95,6 +95,10 @@ module "ecs-fargate-service" {
9595
service_registries = var.service_registries
9696
task_definition_arn = module.td.aws_ecs_task_definition_td_arn
9797

98+
# Deployment circuit breaker
99+
deployment_circuit_breaker_enabled = var.deployment_circuit_breaker_enabled
100+
deployment_circuit_breaker_rollback = var.deployment_circuit_breaker_rollback
101+
98102
# Network configuration block
99103
public_subnets = var.public_subnets_ids
100104
private_subnets = var.private_subnets_ids

variables.tf

+12
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,18 @@ variable "enable_autoscaling" {
469469
default = true
470470
}
471471

472+
variable "deployment_circuit_breaker_enabled" {
473+
description = "(Optional) You can enable the deployment circuit breaker to cause a service deployment to transition to a failed state if tasks are persistently failing to reach RUNNING state or are failing healthcheck."
474+
type = bool
475+
default = false
476+
}
477+
478+
variable "deployment_circuit_breaker_rollback" {
479+
description = "(Optional) The optional rollback option causes Amazon ECS to roll back to the last completed deployment upon a deployment failure."
480+
type = bool
481+
default = false
482+
}
483+
472484
#------------------------------------------------------------------------------
473485
# AWS ECS SERVICE network_configuration BLOCK
474486
#------------------------------------------------------------------------------

0 commit comments

Comments
 (0)