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 年前
- AWS 官方已更新 2 年前