Skip to content

0.19.0 Empty `alias` if no `acm_certificate_arn` given

Compare
Choose a tag to compare
@aknysh aknysh released this 22 Jan 16:04

what

  • Empty alias if no acm_certificate_arn given

why

  • If we give alias but not give acm_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