From 10efd9ac369d18207e86891e39439ea27c883010 Mon Sep 17 00:00:00 2001 From: Andrew Bobulsky Date: Fri, 13 Sep 2019 15:05:54 -0400 Subject: [PATCH] Add ip_address attribute to aws_lightsail_static_ip_attachment resource --- aws/resource_aws_lightsail_static_ip_attachment.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/aws/resource_aws_lightsail_static_ip_attachment.go b/aws/resource_aws_lightsail_static_ip_attachment.go index 766ccff55dd..2b7e96a7f3c 100644 --- a/aws/resource_aws_lightsail_static_ip_attachment.go +++ b/aws/resource_aws_lightsail_static_ip_attachment.go @@ -26,6 +26,10 @@ func resourceAwsLightsailStaticIpAttachment() *schema.Resource { Required: true, ForceNew: true, }, + "ip_address": { + Type: schema.TypeString, + Computed: true, + }, }, } } @@ -76,6 +80,7 @@ func resourceAwsLightsailStaticIpAttachmentRead(d *schema.ResourceData, meta int log.Printf("[INFO] Received Lightsail Static IP: %s", *out) d.Set("instance_name", out.StaticIp.AttachedTo) + d.Set("ip_address", out.StaticIp.IpAddress) return nil }