Skip to content
This repository was archived by the owner on Jun 19, 2024. It is now read-only.
This repository was archived by the owner on Jun 19, 2024. It is now read-only.

03-first-aws-environment component/terraform/static-site fails to deploy #10

@jbouse

Description

@jbouse

What

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions