mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Allow aws_instance private IP's to be specified
This commit is contained in:
parent
cdc2a53553
commit
b6c5e5bbf6
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user