From b6c5e5bbf67cb5e5c3cd0a27be81a81453254d29 Mon Sep 17 00:00:00 2001 From: Alek Storm Date: Thu, 21 Aug 2014 17:13:36 -0700 Subject: [PATCH] Allow aws_instance private IP's to be specified --- builtin/providers/aws/resource_aws_instance.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/builtin/providers/aws/resource_aws_instance.go b/builtin/providers/aws/resource_aws_instance.go index 08de8f7cf..2df7dea45 100644 --- a/builtin/providers/aws/resource_aws_instance.go +++ b/builtin/providers/aws/resource_aws_instance.go @@ -46,6 +46,7 @@ func resource_aws_instance_create( InstanceType: rs.Attributes["instance_type"], KeyName: rs.Attributes["key_name"], SubnetId: rs.Attributes["subnet_id"], + PrivateIPAddress: rs.Attributes["private_ip"], AssociatePublicIpAddress: associatePublicIPAddress, UserData: []byte(userData), } @@ -198,6 +199,7 @@ func resource_aws_instance_diff( "availability_zone": diff.AttrTypeCreate, "instance_type": diff.AttrTypeCreate, "key_name": diff.AttrTypeCreate, + "private_ip": diff.AttrTypeCreate, "security_groups": diff.AttrTypeCreate, "subnet_id": diff.AttrTypeCreate, "source_dest_check": diff.AttrTypeUpdate,