From e83862446851e7c6b587df60768d30bafa55fbda Mon Sep 17 00:00:00 2001 From: Danny Cosson Date: Thu, 31 Jul 2014 13:52:03 -0400 Subject: [PATCH] Allow specifying the AWS availability zone on creation --- builtin/providers/aws/resource_aws_instance.go | 1 + 1 file changed, 1 insertion(+) diff --git a/builtin/providers/aws/resource_aws_instance.go b/builtin/providers/aws/resource_aws_instance.go index ef1a16870..08de8f7cf 100644 --- a/builtin/providers/aws/resource_aws_instance.go +++ b/builtin/providers/aws/resource_aws_instance.go @@ -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"],