Skip to content

Commit

Permalink
Update Terraform cn-terraform/ecs-fargate-service/aws to v2.0.37 (#65)
Browse files Browse the repository at this point in the history
* 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 <jnonino@users.noreply.github.com>
  • Loading branch information
renovate[bot] and jnonino committed Dec 15, 2022
1 parent f660819 commit 968a159
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
6 changes: 5 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ module "td" {
#------------------------------------------------------------------------------
module "ecs-fargate-service" {
source = "cn-terraform/ecs-fargate-service/aws"
version = "2.0.36"
version = "2.0.37"
# source = "../terraform-aws-ecs-fargate-service"

name_prefix = var.name_prefix
Expand All @@ -95,6 +95,10 @@ module "ecs-fargate-service" {
service_registries = var.service_registries
task_definition_arn = module.td.aws_ecs_task_definition_td_arn

# Deployment circuit breaker
deployment_circuit_breaker_enabled = var.deployment_circuit_breaker_enabled
deployment_circuit_breaker_rollback = var.deployment_circuit_breaker_rollback

# Network configuration block
public_subnets = var.public_subnets_ids
private_subnets = var.private_subnets_ids
Expand Down
12 changes: 12 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,18 @@ variable "enable_autoscaling" {
default = true
}

variable "deployment_circuit_breaker_enabled" {
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."
type = bool
default = false
}

variable "deployment_circuit_breaker_rollback" {
description = "(Optional) The optional rollback option causes Amazon ECS to roll back to the last completed deployment upon a deployment failure."
type = bool
default = false
}

#------------------------------------------------------------------------------
# AWS ECS SERVICE network_configuration BLOCK
#------------------------------------------------------------------------------
Expand Down

0 comments on commit 968a159

Please sign in to comment.