allow vpc_zone_identifier in aws_autoscaling_group
This commit is contained in:
parent
b52d323040
commit
125977e075
|
@ -65,9 +65,9 @@ func resource_aws_autoscaling_group_create(
|
||||||
rs.Attributes, "load_balancers").([]interface{}))
|
rs.Attributes, "load_balancers").([]interface{}))
|
||||||
}
|
}
|
||||||
|
|
||||||
if _, ok := rs.Attributes["vpc_identifier.#"]; ok {
|
if _, ok := rs.Attributes["vpc_zone_identifier.#"]; ok {
|
||||||
autoScalingGroupOpts.VPCZoneIdentifier = expandStringList(flatmap.Expand(
|
autoScalingGroupOpts.VPCZoneIdentifier = expandStringList(flatmap.Expand(
|
||||||
rs.Attributes, "vpc_identifier").([]interface{}))
|
rs.Attributes, "vpc_zone_identifier").([]interface{}))
|
||||||
}
|
}
|
||||||
|
|
||||||
autoScalingGroupOpts.Name = rs.Attributes["name"]
|
autoScalingGroupOpts.Name = rs.Attributes["name"]
|
||||||
|
@ -296,6 +296,7 @@ func resource_aws_autoscaling_group_validation() *config.Validator {
|
||||||
"desired_capacity",
|
"desired_capacity",
|
||||||
"force_delete",
|
"force_delete",
|
||||||
"load_balancers.*",
|
"load_balancers.*",
|
||||||
|
"vpc_zone_identifier.*",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,6 +40,7 @@ The following arguments are supported:
|
||||||
for all instances in the pool to terminate.
|
for all instances in the pool to terminate.
|
||||||
* `load_balancers` (Optional) A list of load balancer names to add to the autoscaling
|
* `load_balancers` (Optional) A list of load balancer names to add to the autoscaling
|
||||||
group names.
|
group names.
|
||||||
|
* `vpc_zone_identifier` (Optional) A list of vpc IDs to launch resources in.
|
||||||
|
|
||||||
## Attributes Reference
|
## Attributes Reference
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue