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,