diff --git a/aws/data_source_aws_elb_test.go b/aws/data_source_aws_elb_test.go index 813eaeb44bc..2cfe33dd220 100644 --- a/aws/data_source_aws_elb_test.go +++ b/aws/data_source_aws_elb_test.go @@ -37,7 +37,7 @@ func TestAccDataSourceAWSELB_basic(t *testing.T) { } func testAccDataSourceAWSELBConfigBasic(rName, testName string) string { - return testAccAvailableAZsNoOptInConfig() + fmt.Sprintf(` + return composeConfig(testAccAvailableAZsNoOptInConfig(), fmt.Sprintf(` resource "aws_elb" "elb_test" { name = "%[1]s" internal = true @@ -60,7 +60,7 @@ resource "aws_elb" "elb_test" { variable "subnets" { default = ["10.0.1.0/24", "10.0.2.0/24"] - type = "list" + type = list(string) } resource "aws_vpc" "elb_test" { @@ -110,5 +110,5 @@ resource "aws_security_group" "elb_test" { data "aws_elb" "elb_test" { name = aws_elb.elb_test.name } -`, rName, testName) +`, rName, testName)) } diff --git a/aws/data_source_aws_lb_listener_test.go b/aws/data_source_aws_lb_listener_test.go index 8c717c4f4de..7247ac2d94e 100644 --- a/aws/data_source_aws_lb_listener_test.go +++ b/aws/data_source_aws_lb_listener_test.go @@ -174,7 +174,7 @@ resource "aws_lb_target_group" "test" { variable "subnets" { default = ["10.0.1.0/24", "10.0.2.0/24"] - type = "list" + type = list(string) } data "aws_availability_zones" "available" { @@ -300,7 +300,7 @@ resource "aws_alb_target_group" "test" { variable "subnets" { default = ["10.0.1.0/24", "10.0.2.0/24"] - type = "list" + type = list(string) } data "aws_availability_zones" "available" { @@ -418,7 +418,7 @@ resource "aws_lb_target_group" "test" { variable "subnets" { default = ["10.0.1.0/24", "10.0.2.0/24"] - type = "list" + type = list(string) } data "aws_availability_zones" "available" { diff --git a/aws/data_source_aws_lb_target_group_test.go b/aws/data_source_aws_lb_target_group_test.go index 56f00d7b7c6..2bf0191f30c 100644 --- a/aws/data_source_aws_lb_target_group_test.go +++ b/aws/data_source_aws_lb_target_group_test.go @@ -179,7 +179,7 @@ resource "aws_lb_target_group" "test" { variable "subnets" { default = ["10.0.1.0/24", "10.0.2.0/24"] - type = "list" + type = list(string) } data "aws_availability_zones" "available" { @@ -296,7 +296,7 @@ resource "aws_alb_target_group" "test" { variable "subnets" { default = ["10.0.1.0/24", "10.0.2.0/24"] - type = "list" + type = list(string) } data "aws_availability_zones" "available" { diff --git a/aws/data_source_aws_lb_test.go b/aws/data_source_aws_lb_test.go index 766db4b0bc9..4e7b18db73f 100644 --- a/aws/data_source_aws_lb_test.go +++ b/aws/data_source_aws_lb_test.go @@ -159,7 +159,7 @@ resource "aws_lb" "alb_test" { variable "subnets" { default = ["10.0.1.0/24", "10.0.2.0/24"] - type = "list" + type = list(string) } data "aws_availability_zones" "available" { @@ -314,7 +314,7 @@ resource "aws_alb" "alb_test" { variable "subnets" { default = ["10.0.1.0/24", "10.0.2.0/24"] - type = "list" + type = list(string) } data "aws_availability_zones" "available" {