Skip to content

Commit 6f76fb0

Browse files
committed
provider/aws: set ASG health_check_grace_period default to 300
Closes hashicorp#5658
1 parent b20f680 commit 6f76fb0

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

builtin/providers/aws/resource_aws_autoscaling_group.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func resourceAwsAutoscalingGroup() *schema.Resource {
8080
"health_check_grace_period": &schema.Schema{
8181
Type: schema.TypeInt,
8282
Optional: true,
83-
Computed: true,
83+
Default: 300,
8484
},
8585

8686
"health_check_type": &schema.Schema{

builtin/providers/aws/resource_aws_autoscaling_group_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,6 @@ resource "aws_autoscaling_group" "bar" {
555555
name = "foobar3-terraform-test"
556556
max_size = 5
557557
min_size = 2
558-
health_check_grace_period = 300
559558
health_check_type = "ELB"
560559
desired_capacity = 4
561560
force_delete = true

website/source/docs/providers/aws/r/autoscaling_group.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ The following arguments are supported:
5454
* `availability_zones` - (Optional) A list of AZs to launch resources in.
5555
Required only if you do not specify any `vpc_zone_identifier`
5656
* `launch_configuration` - (Required) The name of the launch configuration to use.
57-
* `health_check_grace_period` - (Optional) Time after instance comes into service before checking health.
57+
* `health_check_grace_period` - (Optional, Default: 300) Time (in seconds) after instance comes into service before checking health.
5858
* `health_check_type` - (Optional) "EC2" or "ELB". Controls how health checking is done.
5959
* `desired_capacity` - (Optional) The number of Amazon EC2 instances that
6060
should be running in the group. (See also [Waiting for

0 commit comments

Comments
 (0)