Merge pull request #129 from dcosson/aws_availability_zone

Allow specifying the AWS availability zone on creation
This commit is contained in:
Jack Pearkes 2014-07-31 15:28:34 -04:00
commit aa94e0c41a
1 changed files with 1 additions and 0 deletions

View File

@ -42,6 +42,7 @@ func resource_aws_instance_create(
// Build the creation struct // Build the creation struct
runOpts := &ec2.RunInstances{ runOpts := &ec2.RunInstances{
ImageId: rs.Attributes["ami"], ImageId: rs.Attributes["ami"],
AvailZone: rs.Attributes["availability_zone"],
InstanceType: rs.Attributes["instance_type"], InstanceType: rs.Attributes["instance_type"],
KeyName: rs.Attributes["key_name"], KeyName: rs.Attributes["key_name"],
SubnetId: rs.Attributes["subnet_id"], SubnetId: rs.Attributes["subnet_id"],