Merge pull request #129 from dcosson/aws_availability_zone
Allow specifying the AWS availability zone on creation
This commit is contained in:
commit
aa94e0c41a
|
@ -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"],
|
||||||
|
|
Loading…
Reference in New Issue