salmon-ghost-86211
02/28/2020, 3:13 PMdualstack:
prefix is added automatically to the Alias Target field.
When I use Pulumi to create the same record, the dualstack:
prefix is not added.
Am I missing the correct way to do this, or is there a plan to add it?broad-dog-22463
02/29/2020, 11:52 AMsalmon-ghost-86211
03/02/2020, 1:30 PMabcUrl
can be any FQDN for a load balancer in your account.
AWSZONEID can be found in your account by manually creating an alias A record to a load balancer. Then look at that record for the Alias Hosted Zone ID
. (Maybe there are other ways to find it, but this is quick.)
The top-level name
and zoneId
are for the record I'm creating in my custom hosted zone. It'll be different for you.
const abcUrl = abcIngressResource.status.loadBalancer.ingress[0].hostname;
const abcDns = new aws.route53.Record("abcDns", {
allowOverwrite: true,
aliases: [{
evaluateTargetHealth: false,
name: abcUrl,
zoneId: "AWSZONEID",
}],
name: "<http://abc.domain.com|abc.domain.com>",
type: "A",
zoneId: "MYZONEID"
});