1 Answer
- Newest
- Most votes
- Most comments
1
Hello.
I think it will work if you also specify the subdomain in "DomainValidationOptions".
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-certificatemanager-certificate.html#cfn-certificatemanager-certificate-subjectalternativenames
Resources:
SiteCert:
Type: AWS::CertificateManager::Certificate
Properties:
DomainName: !Ref DomainName
DomainValidationOptions:
- DomainName: !Ref DomainName
HostedZoneId: !Ref HostedZoneId
- DomainName: !Sub "www.${DomainName}"
HostedZoneId: !Ref HostedZoneId
SubjectAlternativeNames:
- !Sub "www.${DomainName}"
ValidationMethod: DNS
Relevant content
- asked 4 months ago
- Accepted Answerasked 5 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 years ago