thankful-painting-31068
01/10/2025, 8:22 PMthankful-painting-31068
01/10/2025, 8:24 PMconst customDomain = new StaticSiteCustomDomain("OneUICustomDomain", {
resourceGroupName: resourceGroup.name,
name: oneUI.name,
domainName: dnsOutputImports.VEEAM_CLOUD_DOMAIN_NAME,
validationMethod: "dns-txt-token",
}, {});
and not wait for the validation to finish (and just return the validation token) so I can create the TXT record it expects:
customDomain.validationToken.apply((token) => {
// Create CNAME record pointing to oneui
new RecordSet(`${envPrefix}TXTRecord`, {
resourceGroupName: dnsOutputImports.RESOURCE_GROUP_NAME,
zoneName: dnsOutputImports.VEEAM_CLOUD_DOMAIN_NAME,
recordType: "TXT",
txtRecords: [{ value: [token] }],
ttl: ONE_HOUR_IN_SECONDS,
relativeRecordSetName: "@"
});
});
problem is that it just sits and waits forever... the cli supports this option https://learn.microsoft.com/en-us/cli/azure/staticwebapp/hostname?view=azure-cli-latest#az-staticwebapp-hostname-set (--no-wait)
Wondering if there is something simliar in pulumi I can do 🤔melodic-tomato-39005
01/13/2025, 12:12 PMmelodic-tomato-39005
01/13/2025, 12:12 PMthankful-painting-31068
01/13/2025, 3:10 PM