Merge pull request #259 from hden/vpc_zone_identifier

allow vpc_zone_identifier in aws_autoscaling_group
This commit is contained in:
Jack Pearkes 2014-09-16 10:44:32 -04:00
commit 002e640d0b
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