Infer aws_instance.associate_public_ip_address from the presence of a network interface association.

This commit is contained in:
Tom Wilkie 2016-10-19 16:16:04 +01:00
parent e5c6031469
commit e79ebfc113
1 changed files with 1 additions and 0 deletions

View File

@ -498,6 +498,7 @@ func resourceAwsInstanceRead(d *schema.ResourceData, meta interface{}) error {
if *ni.Attachment.DeviceIndex == 0 {
d.Set("subnet_id", ni.SubnetId)
d.Set("network_interface_id", ni.NetworkInterfaceId)
d.Set("associate_public_ip_address", ni.Association != nil)
}
}
} else {