https://pulumi.com logo
Title
c

creamy-guitar-8902

05/12/2023, 11:59 PM
Maybe I'm missing something obvious but after making a vanilla external address, how do I get the IP to use in a DNS update? I didn't expect
id
to work here but what should I use? I don't see it in the outputs in the documentation anywhere...
# First make an external IP
external_ip = gcp.compute.GlobalAddress(
    "externalip-%s" % cell_id,
    name = "externalip-%s" % cell_id)

# ... later ...

ingress_A_record = gcp.dns.RecordSet(
        "ingress-A-record-%s" % cell_id,
        managed_zone = dns_zone.name,
        name = "ingress.%s." % gcp_domain,
        type="A",
        rrdatas=[external_ip.id],
        ttl=300)
Found it with pulumi AI 🙂
.address
l

limited-rainbow-51650

05/17/2023, 9:52 AM
@creamy-guitar-8902 keep in mind that every input can also be used as an output. The
address
property is listed in the
Input
section here: https://www.pulumi.com/registry/packages/gcp/api-docs/compute/globaladdress/#address_python