Skip to content

Commit 2897d0e

Browse files
authored
Merge pull request #3 from silinternational/feature/aws-version
Release 0.2.1 -- fix incorrect input type on availability_zone_rebalancing
2 parents ba253db + cbf54dd commit 2897d0e

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
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" {

versions.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ terraform {
55
required_providers {
66
aws = {
77
source = "hashicorp/aws"
8-
version = ">= 5.0.0, < 6.0.0"
8+
version = ">= 5.77.0, < 6.0.0"
99
}
1010
}
1111
}

0 commit comments

Comments
 (0)