chilly-photographer-60932
02/09/2019, 3:45 AMerror: unexpected null property rrdatas[0]
microscopic-florist-22719
gcp.compute.getAddress
?{ name: 'foobar', region: 'us-central1', project: 'abcd' }
etc.)chilly-photographer-60932
02/09/2019, 4:20 PMgentle-diamond-70147
02/11/2019, 7:00 PMgcp.compute.getAddress
to get an existing static IP? Or are you wanting to create a new static IP?chilly-photographer-60932
02/11/2019, 7:01 PMgentle-diamond-70147
02/11/2019, 7:04 PMgetAddress
is a function to get a static IP that already existsconst ip = new gcp.compute.Address(...
import * as pulumi from '@pulumi/pulumi';
import * as gcp from '@pulumi/gcp';
const ip = new gcp.compute.Address('prod', {
name: 'foobar',
});
const prod = new gcp.dns.ManagedZone('prod', {
dnsName: 'prod.mydomain.com.'
});
const frontend = new gcp.dns.RecordSet('frontend', {
name: pulumi.interpolate `frontend.${prod.dnsName}`,
managedZone: prod.name,
rrdatas: [ip.address],
ttl: 300,
type: 'A'
});