sparse-intern-71089
03/05/2021, 3:59 PMwitty-candle-66007
03/05/2021, 4:40 PMid
property instead of the selfLink
property like in your code.
Assuming selfLink
is correct, then I’m thinking you may want to use apply()
to resolve the selfLink
property when used in the dnsManagedZone declaration.
For example:
const dnsManagedZone = serviceDirectoryNamespace.selfLink.apply(link =>
new gcp.dns.ManagedZone('zone',{
dnsName: 'fancy.local.',
project,
visibility: "private",
serviceDirectoryConfig: {
namespace: {
namespaceUrl: link,
},
}
}))
You can read more about what the apply does here: https://www.pulumi.com/docs/intro/concepts/inputs-outputsadorable-action-51248
03/05/2021, 4:42 PMadorable-action-51248
03/05/2021, 4:42 PMadorable-action-51248
03/05/2021, 4:43 PM