Is there anyway of setting a route53 alias to poin...
# getting-started
c
Is there anyway of setting a route53 alias to point at another route53 alias? I have the following but the linter is complaining:
Copy code
export function setCloudFrontRecordAAAA(
    name: string,
    distribution: aws.cloudfront.Distribution,
    zone: aws.route53.Zone
) {
    const record = new aws.route53.Record("AAAA-alias", {
        name,
        type: "AAAA",
        zoneId: zone.zoneId,
        aliases: [
            {
                evaluateTargetHealth: true,
                name: distribution.domainName,
                zoneId: distribution.hostedZoneId,
            },
        ],
    });

    return record;
}

export function setCloudFrontWWWAlias(
    name: string,
    record: aws.route53.Record,
) {
    const wwwRecord = new aws.route53.Record("www-alias", {
        name,
        type: "AAAA",
        zoneId: record.zoneId,
        aliases: {
            name: record.name, <--- LINTER DOESN'T LIKE THIS
            zoneId: record.zoneId,
            evaluateTargetHealth: true,
        }
    });

    return wwwRecord;
}
Ignore this, I'd missed a set of square brackets after aliases