Skip to content

Commit cbf54dd

Browse files
committed
availability_zone_rebalancing must be a string
1 parent 02622db commit cbf54dd

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

test/main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module "full" {
2626
tg_arn = ""
2727
ecsServiceRole_arn = ""
2828

29-
availability_zone_rebalancing = true
29+
availability_zone_rebalancing = "ENABLED"
3030
volumes = []
3131
task_role_arn = ""
3232
network_mode = "bridge"

variables.tf

+6-3
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,12 @@ variable "ecsServiceRole_arn" {
4343
*/
4444

4545
variable "availability_zone_rebalancing" {
46-
description = "When true, ECS automatically redistributes tasks within a service across Availability Zones"
47-
type = bool
48-
default = false
46+
description = <<EOF
47+
"When enabled, ECS automatically redistributes tasks within a service across Availability Zones. Must be
48+
"either \"ENABLED\" or \"DISABLED\"."
49+
EOF
50+
type = string
51+
default = "DISABLED"
4952
}
5053

5154
variable "volumes" {

0 commit comments

Comments
 (0)