:thread: on azure static web apps and custom domai...
# azure
t
🧵 on azure static web apps and custom domain creation
TL;DR: need a way to:
Copy code
const 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:
Copy code
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 🤔
m
I guess that’s this known issue.
Looks like we don’t have a solution yet. You can upvote the issue, we look at these to prioritize.
t
🤦🏽‍♂️ was looking in the wrong repo for issues - thanks Thomas!