sparse-intern-71089
02/02/2023, 5:39 PMfresh-summer-65887
02/02/2023, 5:40 PMfresh-summer-65887
02/02/2023, 5:51 PM<http://elaway.fr|elaway.fr>
is an option to Create an alias
record. However <http://elaway.de|elaway.de>
, provisioned through pulumi using the aforementioned AFDCustomDomain
results in option Create CNAME record
which is not a thing for apex(/root) domains.fresh-summer-65887
02/02/2023, 5:52 PMfresh-summer-65887
02/02/2023, 5:55 PMfresh-summer-65887
02/02/2023, 6:06 PMincalculable-napkin-4298
02/03/2023, 6:58 AMmammoth-agency-10350
04/27/2023, 9:49 PMif (apexDomain)
{
var apexAlias = new RecordSet($"{name}-apex-dns", new RecordSetArgs
{
RecordType = "A",
RelativeRecordSetName = "@",
ResourceGroupName = dnsZoneResourceGroupName,
TargetResource = new SubResourceArgs {
Id = swa.Id
},
Ttl = 60,
ZoneName = dnsZoneName
});
var apexPulumiName = $"{name}-apex-domain";
var apexDomainItem = new StaticSiteCustomDomain(
apexPulumiName,
new StaticSiteCustomDomainArgs
{
DomainName = dnsZoneName,
ResourceGroupName = resourceGroupName,
Name = swa.Name,
ValidationMethod = "dns-txt-token"
},
new CustomResourceOptions
{
DependsOn = { apexAlias },
IgnoreChanges = { "hostNameType", "validationMethod" },
});
}