Hi fokls! I'm trying to create an `aws.route53.Re...
# general
r
Hi fokls! I'm trying to create an
aws.route53.Record
but it creates a sufixed record (e.g my-api-<RANDOM_IDENTIFIER>.mysite.com) which is wrong, I created it according the docs (https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/aws/route53/#alias-record) and I don't see an option to create it without the sufix, my code is almost the same of the docs:
Copy code
new aws.route53.Record('my-api', {
    aliases: [
      {
        evaluateTargetHealth: false,
        name: loadBalancer.dnsName,
        zoneId: loadBalancer.zoneId,
      },
    ],
    type: aws.route53.RecordTypes.A,
    zoneId: zone.zoneId,
  });
Any clues on it?
g
This is due to the auto-naming feature within Pulumi - https://www.pulumi.com/docs/reference/programming-model/#autonaming.
b
Yessir, can you try this please:
Copy code
new aws.route53.Record('my-api', {
    name: "my-api'",
    aliases: [
      {
        evaluateTargetHealth: false,
        name: loadBalancer.dnsName,
        zoneId: loadBalancer.zoneId,
      },
    ],
    type: aws.route53.RecordTypes.A,
    zoneId: zone.zoneId,
  });
r
Yeah, but for dns records doesn't make sense to me @gentle-diamond-70147
b
@rich-easter-89163 we can override the name with the code block above
r
triyin' @broad-dog-22463
It worked, thanks @broad-dog-22463
b
👍
as @gentle-diamond-70147 said, we have autonaming but we can override that