0.19.0 Empty `alias` if no `acm_certificate_arn` given
what
- Empty
alias
if noacm_certificate_arn
given
why
- If we give
alias
but not giveacm_certificate_arn
, the following error will be thrown:
Error: error creating CloudFront Distribution: InvalidViewerCertificate: To add an alternate domain name (CNAME) to a CloudFront distribution, you must attach a trusted certificate that validates your authorization to use the domain name. For more details, see: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html#alternate-domain-names-requirements