adorable-action-51248
04/12/2021, 6:04 PMconst mapping = new gcp.cloudrun.DomainMapping(...);
const records = mapping.status.resourceRecords?.apply(rs => rs ?? []) ?? pulumi.output([]);
const domainMapping = new gcp.dns.RecordSet(`${prefix}-a-records`, {
name: 'xxx.',
managedZone: zone.name,
type: 'A',
ttl: 3600,
rrdatas: records.apply(rs => rs.map(r => r.rrdata)),
}, {
dependsOn: [zone, mapping],
deleteBeforeReplace: true,
});
according to the docs i would need to replace mapping.status
with mapping.statuses[0]
.
however, it seems that statuses
is an empty array. The error messages I receive is:
Error 400: Invalid value for 'entity.change.deletions[0].rrdata': '<empty>'
More details:
Reason: invalid, Message: Invalid value for 'entity.change.deletions[0].rrdata': '<empty>'
Reason: invalid, Message: Invalid value for 'entity.change.additions[0].rrdata': '<empty>'
when i add domainMapping.statuses.apply(s => console.error(JSON.stringify(s))
it prints undefined
any ideas what might be the issue here?billowy-army-68599
04/13/2021, 3:25 AMadorable-action-51248
04/13/2021, 5:57 AMrrdatas
to ['<http://ghs.googlehosted.com|ghs.googlehosted.com>.']