Skip to content

Commit

Permalink
Merge pull request #1682 from mzupan/master
Browse files Browse the repository at this point in the history
provider/aws: Don't re-do a ASG on a grace healthcheck grace period change
  • Loading branch information
mitchellh committed Apr 29, 2015
2 parents 147e0a9 + 0177be2 commit b45cd28
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion builtin/providers/aws/resource_aws_autoscaling_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ func resourceAwsAutoscalingGroup() *schema.Resource {
Type: schema.TypeInt,
Optional: true,
Computed: true,
ForceNew: true,
},

"health_check_type": &schema.Schema{
Expand Down Expand Up @@ -235,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
Expand Down

0 comments on commit b45cd28

Please sign in to comment.