Allow specifying the AWS availability zone on creation

This commit is contained in:
Danny Cosson 2014-07-31 13:52:03 -04:00
parent 887ee10f77
commit e838624468
1 changed files with 1 additions and 0 deletions

View File

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