This message was deleted.
# general
s
This message was deleted.
b
hey I had the same setup a while back did you setup a certificatevalidation as well ?
So here is mwn extracted form my code:
Copy code
import {Certificate, CertificateValidation} from "@pulumi/aws/acm"
import {Record, getZone} from "@pulumi/aws/route53"

const selectedZone = output(getZone({
    name: `... your zone name`,
    privateZone: false,
}, 
{ 
    async: true
}));

this.cert = new Certificate(`cert`, {
    domainName: selectedZone.name.apply(zone => `...${zone}`),
    validationMethod: "DNS",
});

this.certValidation = new Record("cert-validation", {
    name: this.cert.domainValidationOptions[0].resourceRecordName,
    records: [this.cert.domainValidationOptions[0].resourceRecordValue],
    ttl: 60,
    type: this.cert.domainValidationOptions[0].resourceRecordType,
    zoneId: selectedZone.zoneId!,
},{
    dependsOn: [this.cert]
});

this.certCertificateValidation = new CertificateValidation("cert", {
    certificateArn: this.cert.arn,
    validationRecordFqdns: [this.certValidation.fqdn],
}, {
    dependsOn: [this.cert, this.certValidation]
});