Allow specifying the AWS availability zone on creation
This commit is contained in:
parent
887ee10f77
commit
e838624468
|
@ -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