https://pulumi.com logo
Title
r

refined-tomato-5322

03/23/2021, 12:39 AM
Hello all! Newbie here. Thanks in advance for any help! I'm attempting to set a cname record (via pulumi) with an alias pointing to an azure CDN endpoint. Setting the CNAME record is no issue:
this.cnameRecord = new network.RecordSet(this.baseName, {
            cnameRecord: {
                cname: "<http://domain.io|domain.io>",
            },
            privateZoneName: "<http://domain.io|domain.io>",
            recordType: "CNAME",
            relativeRecordSetName: "recordCNAME",
            resourceGroupName: "<http://domain.io|domain.io>", 
            ttl: 3600,
        }, { parent: this.endpoint });
However, I seem unable to find any way to add an alias here. Prior to assure-native, this seems to have been done with 'targetResourceId: "some.endpoint"'. This doesn't exist in the azure-native RecordSetArgs interface. I'm hoping somebody could point me in the right direction. I've been trying to find some other way of doing it with no success. Thank you so much!
t

tall-librarian-49374

03/23/2021, 7:14 AM
I suspect you are hitting the issue below. Try the linked workaround (use a named version): https://github.com/pulumi/pulumi-azure-native/issues/583#issuecomment-753375218
r

refined-tomato-5322

04/08/2021, 6:19 AM
@tall-librarian-49374 Thank you very much. I'm still working on this, I was away for a couple of weeks. Apologies for not saying thank you earlier.
t

tall-librarian-49374

04/08/2021, 6:19 AM
No worries. By the way, I’ve just merged the fix for this for the next release.
r

refined-tomato-5322

04/08/2021, 6:22 AM
Brilliant! Thank you for the hard work.