chilly-photographer-60932
02/10/2019, 1:20 PMgcp
dns
recordset
.
import * as gcp from '@pulumi/gcp';
const prod = new gcp.dns.ManagedZone('prod', {
dnsName: 'naveen.xyz.io.'
});
new gcp.dns.RecordSet('naveen', {
managedZone: prod.name,
rrdatas: ['8.8.8.8'],
ttl: 300,
type: 'A'
});
gcp:dns:RecordSet (naveen):
error: Plan apply failed: Error creating DNS RecordSet: googleapi: Error 400: Invalid value for 'entity.change.additions[0].name': 'naveen-ff1a1c6', invalid
gentle-diamond-70147
02/11/2019, 5:45 PMname
argument of gcp.dns.RecordSet
must be the FQDN - e.g. <http://naveen.naveen.xyz.io|naveen.naveen.xyz.io>
based on the values in your code.import * as pulumi from '@pulumi/pulumi';
import * as gcp from '@pulumi/gcp';
const prod = new gcp.dns.ManagedZone('prod', {
dnsName: 'naveen.xyz.io.'
});
new gcp.dns.RecordSet('naveen', {
name: pulumi.interpolate `naveen.${prod.dnsName}`,
managedZone: prod.name,
rrdatas: ['8.8.8.8'],
ttl: 300,
type: 'A'
});
chilly-photographer-60932
02/11/2019, 6:57 PM