need to update aws with the change if there is one

This commit is contained in:
Mike Zupan 2015-04-25 20:00:04 -07:00
parent 9fe6317348
commit 0177be2a66
1 changed files with 4 additions and 0 deletions

View File

@ -234,6 +234,10 @@ func resourceAwsAutoscalingGroupUpdate(d *schema.ResourceData, meta interface{})
if d.HasChange("max_size") {
opts.MaxSize = aws.Long(int64(d.Get("max_size").(int)))
}
if d.HasChange("health_check_grace_period") {
opts.HealthCheckGracePeriod = aws.Long(int64(d.Get("health_check_grace_period").(int)))
}
if err := setAutoscalingTags(autoscalingconn, d); err != nil {
return err