https://pulumi.com logo
#aws
Title
# aws
s

salmon-ghost-86211

02/28/2020, 3:13 PM
If I use either the AWS console or AWS CLI to create an Alias A record and choose a load balancer from the list, the
dualstack:
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?
b

broad-dog-22463

02/29/2020, 11:52 AM
Hi @salmon-ghost-86211 can you give me a little sample of code that I can try and recreate this bug?
s

salmon-ghost-86211

03/02/2020, 1:30 PM
abcUrl
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.
Copy code
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"
});
@broad-dog-22463 I didn't tag you in the above reply, so I was just checking that you had seen it.
Hi @broad-dog-22463. Were you able to duplicate this?