allow vpc_zone_identifier in aws_autoscaling_group

This commit is contained in:
Hao-kang Den 2014-09-03 09:38:07 +08:00
parent b52d323040
commit 125977e075
2 changed files with 4 additions and 2 deletions

View File

@ -65,9 +65,9 @@ func resource_aws_autoscaling_group_create(
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(
rs.Attributes, "vpc_identifier").([]interface{}))
rs.Attributes, "vpc_zone_identifier").([]interface{}))
}
autoScalingGroupOpts.Name = rs.Attributes["name"]
@ -296,6 +296,7 @@ func resource_aws_autoscaling_group_validation() *config.Validator {
"desired_capacity",
"force_delete",
"load_balancers.*",
"vpc_zone_identifier.*",
},
}
}

View File

@ -40,6 +40,7 @@ The following arguments are supported:
for all instances in the pool to terminate.
* `load_balancers` (Optional) A list of load balancer names to add to the autoscaling
group names.
* `vpc_zone_identifier` (Optional) A list of vpc IDs to launch resources in.
## Attributes Reference