provider/aws: set ASG health_check_grace_period default to 300
Closes #5658
This commit is contained in:
parent
b20f680cbf
commit
6f76fb0702
|
@ -80,7 +80,7 @@ func resourceAwsAutoscalingGroup() *schema.Resource {
|
||||||
"health_check_grace_period": &schema.Schema{
|
"health_check_grace_period": &schema.Schema{
|
||||||
Type: schema.TypeInt,
|
Type: schema.TypeInt,
|
||||||
Optional: true,
|
Optional: true,
|
||||||
Computed: true,
|
Default: 300,
|
||||||
},
|
},
|
||||||
|
|
||||||
"health_check_type": &schema.Schema{
|
"health_check_type": &schema.Schema{
|
||||||
|
|
|
@ -555,7 +555,6 @@ resource "aws_autoscaling_group" "bar" {
|
||||||
name = "foobar3-terraform-test"
|
name = "foobar3-terraform-test"
|
||||||
max_size = 5
|
max_size = 5
|
||||||
min_size = 2
|
min_size = 2
|
||||||
health_check_grace_period = 300
|
|
||||||
health_check_type = "ELB"
|
health_check_type = "ELB"
|
||||||
desired_capacity = 4
|
desired_capacity = 4
|
||||||
force_delete = true
|
force_delete = true
|
||||||
|
|
|
@ -54,7 +54,7 @@ The following arguments are supported:
|
||||||
* `availability_zones` - (Optional) A list of AZs to launch resources in.
|
* `availability_zones` - (Optional) A list of AZs to launch resources in.
|
||||||
Required only if you do not specify any `vpc_zone_identifier`
|
Required only if you do not specify any `vpc_zone_identifier`
|
||||||
* `launch_configuration` - (Required) The name of the launch configuration to use.
|
* `launch_configuration` - (Required) The name of the launch configuration to use.
|
||||||
* `health_check_grace_period` - (Optional) Time after instance comes into service before checking health.
|
* `health_check_grace_period` - (Optional, Default: 300) Time (in seconds) after instance comes into service before checking health.
|
||||||
* `health_check_type` - (Optional) "EC2" or "ELB". Controls how health checking is done.
|
* `health_check_type` - (Optional) "EC2" or "ELB". Controls how health checking is done.
|
||||||
* `desired_capacity` - (Optional) The number of Amazon EC2 instances that
|
* `desired_capacity` - (Optional) The number of Amazon EC2 instances that
|
||||||
should be running in the group. (See also [Waiting for
|
should be running in the group. (See also [Waiting for
|
||||||
|
|
Loading…
Reference in New Issue