From acc37f3505f41da13a90ba8e9ab1d28745c5ca9e Mon Sep 17 00:00:00 2001 From: stack72 Date: Fri, 22 Apr 2016 01:18:31 +0100 Subject: [PATCH] provider/aws: Set the state of `cross_zone_load_balancing` during the read func Changes made manually to the ELB property were not being set and Terraform was reporting now changes to infra was to be made on refresh --- 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 174e5149e795..0042f5c061c9 100644 --- a/builtin/providers/aws/resource_aws_elb.go +++ b/builtin/providers/aws/resource_aws_elb.go @@ -362,6 +362,7 @@ func resourceAwsElbRead(d *schema.ResourceData, meta interface{}) error { d.Set("idle_timeout", lbAttrs.ConnectionSettings.IdleTimeout) d.Set("connection_draining", lbAttrs.ConnectionDraining.Enabled) d.Set("connection_draining_timeout", lbAttrs.ConnectionDraining.Timeout) + d.Set("cross_zone_load_balancing", lbAttrs.CrossZoneLoadBalancing.Enabled) if lbAttrs.AccessLog != nil { if err := d.Set("access_logs", flattenAccessLog(lbAttrs.AccessLog)); err != nil { return err