From 852e2f74ca21864d8348ccee72122137071c4a4b Mon Sep 17 00:00:00 2001 From: Sander van Harmelen Date: Thu, 25 Dec 2014 23:12:54 +0100 Subject: [PATCH] Fixing aws_elb schema MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If not suppling the `availability_zones`, they will be computed (meaning an update/refresh will retrieve the info and update the values to the state file). So without the `Computed = true` the diff will always flag this as a change, even when it’s not. --- builtin/providers/aws/resource_aws_elb.go | 1 + 1 file changed, 1 insertion(+) diff --git a/builtin/providers/aws/resource_aws_elb.go b/builtin/providers/aws/resource_aws_elb.go index 54b43572a..11d9bb7b7 100644 --- a/builtin/providers/aws/resource_aws_elb.go +++ b/builtin/providers/aws/resource_aws_elb.go @@ -41,6 +41,7 @@ func resourceAwsElb() *schema.Resource { Elem: &schema.Schema{Type: schema.TypeString}, Optional: true, ForceNew: true, + Computed: true, Set: func(v interface{}) int { return hashcode.String(v.(string)) },