From 08066b644a051ea8bd79c09fc1230f3dce6470ac Mon Sep 17 00:00:00 2001 From: Brian Flad Date: Thu, 30 Jul 2020 12:04:25 -0400 Subject: [PATCH] data-source/aws_availability_zones: Fix group_names attribute to be Computed instead of Optional Reference: https://github.com/terraform-providers/terraform-provider-aws/issues/14405 Output from acceptance testing: ``` --- PASS: TestAccAWSAvailabilityZones_Filter (7.67s) --- PASS: TestAccAWSAvailabilityZones_basic (7.83s) --- PASS: TestAccAWSAvailabilityZones_AllAvailabilityZones (7.88s) --- PASS: TestAccAWSAvailabilityZones_stateFilter (7.88s) --- PASS: TestAccAWSAvailabilityZones_ExcludeNames (9.35s) --- PASS: TestAccAWSAvailabilityZones_ExcludeZoneIds (9.41s) ``` --- aws/data_source_aws_availability_zones.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws/data_source_aws_availability_zones.go b/aws/data_source_aws_availability_zones.go index 6de4daaba6a..87e9bc356e9 100644 --- a/aws/data_source_aws_availability_zones.go +++ b/aws/data_source_aws_availability_zones.go @@ -34,7 +34,7 @@ func dataSourceAwsAvailabilityZones() *schema.Resource { "filter": ec2CustomFiltersSchema(), "group_names": { Type: schema.TypeSet, - Optional: true, + Computed: true, Elem: &schema.Schema{Type: schema.TypeString}, }, "names": {