You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 19, 2024. It is now read-only.
When following along through the tutorial and executing atmos terraform deploy static-site --stack uw2-dev files with the following error message:
Error: expected viewer_certificate.0.ssl_support_method to be one of [sni-only vip static-ip], got
on .terraform/modules/cdn/main.tf line 272, in resource "aws_cloudfront_distribution" "default":
272: ssl_support_method = var.acm_certificate_arn == "" ? "" : "sni-only"
Why
I found on main.tf#L3 the static-site component is using v0.59.0 of the cloudposse/cloudfront-s3-cdn/aws module which passes back an empty string to ssl_support_method unless the acm_certificate_arn variable is set with a certificate ARN. This same behavior is continued in every version up to 0.81.0 which just gives a static value of sni-only.
Fix
With my findings simply updating the module source version to 0.81.0 is sufficient to make the tutorial component functional again.