Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JonHolman/2bb5897d1176810797147aaf4d41ba60 to your computer and use it in GitHub Desktop.
Save JonHolman/2bb5897d1176810797147aaf4d41ba60 to your computer and use it in GitHub Desktop.
part-5-adding-cloudfront-conditionally-add-alias-to-cloudfront-resource
Aliases:
!If
- CreateDnsAlias
- - !Ref CloudFrontDnsAlias
- !Ref AWS::NoValue
ViewerCertificate:
!If
- CreateDnsAlias
-
AcmCertificateArn: !Ref AcmCertArn
SslSupportMethod: sni-only
- !Ref AWS::NoValue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment