mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-16 18:35:03 -06:00
providers/aws: use merged reosource state for associate_public_ip
cc/ @vertis
This commit is contained in:
parent
fa13a12a6e
commit
86c7aeb8a6
@ -35,8 +35,8 @@ func resource_aws_instance_create(
|
||||
}
|
||||
|
||||
associatePublicIPAddress := false
|
||||
if attr, ok := d.Attributes["associate_public_ip_address"]; ok {
|
||||
associatePublicIPAddress = attr.New != "" && attr.New != "false"
|
||||
if rs.Attributes["associate_public_ip_address"] == "true" {
|
||||
associatePublicIPAddress = true
|
||||
}
|
||||
|
||||
// Build the creation struct
|
||||
|
Loading…
Reference in New Issue
Block a user