Can anyone elaborate on what the workaround is? I looked at the issue referenced by @jsteinich and I’m scratching my head
I’m trying to include SANs in my validation process
const orgCertificate = new AcmCertificate(this, 'org-certificate', {
domainName: orgZone.name,
validationMethod: 'DNS',
subjectAlternativeNames: args.SANs,
lifecycle: {
createBeforeDestroy: true
}
})
let namesIndex = (orgCertificate.subjectAlternativeNames.length + 1)
let validationRecords: string[] = []
for (let i = 0; i < namesIndex; i++) {
let currentIndex = i.toString()
validationRecords.push(
new Route53Record(this, `org-validation-options-${currentIndex}`, {
name: orgCertificate.domainValidationOptions(currentIndex).resourceRecordName,
type: orgCertificate.domainValidationOptions(currentIndex).resourceRecordType,
zoneId: orgZone.zoneId,
ttl: 60,
records: [ orgCertificate.domainValidationOptions(currentIndex).resourceRecordValue ],
allowOverwrite: true
}).fqdn
)
}
new AcmCertificateValidation(this, 'org-certificate-validation', {
certificateArn: orgCertificate.arn,
validationRecordFqdns: validationRecords
})