Allow aws_instance private IP's to be specified

This commit is contained in:
Alek Storm 2014-08-21 17:13:36 -07:00
parent cdc2a53553
commit b6c5e5bbf6
1 changed files with 2 additions and 0 deletions

View File

@ -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,