1 回答
- 最新
- 投票最多
- 评论最多
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
相关内容
- AWS 官方已更新 1 年前