From 863fd0c7d29f9cd471023665e5deb55da5d1847e Mon Sep 17 00:00:00 2001 From: Phil Frost Date: Fri, 30 Jan 2015 13:17:16 -0500 Subject: [PATCH] Avoid unnecessary updating of aws_subnet If map_public_ip_on_launch was not specified, AWS picks a default of "0", which is different than the "" in the state file, triggerinng an update each time. Mark that parameter as Computed, avoiding the update. --- 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 7bb88f58f..4e11785e7 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 { "map_public_ip_on_launch": &schema.Schema{ Type: schema.TypeBool, Optional: true, + Computed: true, }, "tags": tagsSchema(),