File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -12,14 +12,14 @@ Parameters:
1212 Type : String
1313
1414Conditions :
15- CreateApexConfig : !Equals
15+ CreateApexConfig : !Equals
1616 - !Ref CreateApex
1717 - ' yes'
1818
1919Resources :
2020 Certificate :
2121 Type : AWS::CertificateManager::Certificate
22- Properties :
22+ Properties :
2323 DomainName : !Sub '${SubDomain}.${DomainName}'
2424 SubjectAlternativeNames :
2525 Fn::If :
@@ -29,9 +29,14 @@ Resources:
2929 DomainValidationOptions :
3030 - DomainName : !Sub '${SubDomain}.${DomainName}'
3131 HostedZoneId : !Ref HostedZoneId
32+ - Fn::If :
33+ - CreateApexConfig
34+ - - DomainName : !Ref DomainName
35+ HostedZoneId : !Ref HostedZoneId
36+ - Ref : AWS::NoValue
3237 ValidationMethod : DNS
3338
3439Outputs :
35- CertificateArn :
40+ CertificateArn :
3641 Description : Issued certificate
3742 Value : !Ref Certificate
You can’t perform that action at this time.
0 commit comments