From f351de9758325809137a18207db49bdeeed0ecdc Mon Sep 17 00:00:00 2001 From: Paul Stack Date: Tue, 16 May 2017 17:34:16 +0300 Subject: [PATCH] provider/aws: Set aws_subnet ipv6_cidr_block to computed (#14542) Fixes: #14361 An IPv6 CIDR block is option and can be added *after* a subnet has been created. Therefore, we should set it to `Computed: true` Otherwise, a manually created IPv6 association will be removed on the next terraform run --- builtin/providers/aws/resource_aws_subnet.go | 1 + 1 file changed, 1 insertion(+) diff --git a/builtin/providers/aws/resource_aws_subnet.go b/builtin/providers/aws/resource_aws_subnet.go index 2b1a0d063..a466c2ae9 100644 --- a/builtin/providers/aws/resource_aws_subnet.go +++ b/builtin/providers/aws/resource_aws_subnet.go @@ -41,6 +41,7 @@ func resourceAwsSubnet() *schema.Resource { "ipv6_cidr_block": { Type: schema.TypeString, Optional: true, + Computed: true, }, "availability_zone": {