From 926effb800038988cc17227c91acf38af07f2a26 Mon Sep 17 00:00:00 2001 From: Paul Hinze Date: Wed, 4 Feb 2015 10:00:03 -0600 Subject: [PATCH] providers/aws: read ASG termination policies Right now we yield a perpetual diff on ASGs because we're not reading termination policies back out in the provider. This depends on https://github.com/mitchellh/goamz/pull/218 and fixes it. --- builtin/providers/aws/resource_aws_autoscaling_group.go | 1 + 1 file changed, 1 insertion(+) diff --git a/builtin/providers/aws/resource_aws_autoscaling_group.go b/builtin/providers/aws/resource_aws_autoscaling_group.go index dfd6f604a..69faf309c 100644 --- a/builtin/providers/aws/resource_aws_autoscaling_group.go +++ b/builtin/providers/aws/resource_aws_autoscaling_group.go @@ -197,6 +197,7 @@ func resourceAwsAutoscalingGroupRead(d *schema.ResourceData, meta interface{}) e d.Set("max_size", g.MaxSize) d.Set("name", g.Name) d.Set("vpc_zone_identifier", strings.Split(g.VPCZoneIdentifier, ",")) + d.Set("termination_policies", g.TerminationPolicies) return nil }