Giter VIP home page Giter VIP logo

Comments (6)

aknysh avatar aknysh commented on June 3, 2024 6

@mojeto
thank you for testing and submitting the issue.
I think what you have is related to how AWS operates. Although ACM is supported in many regions, to use a certificate with CloudFront, it should be requested only in US East (N. Virginia) region.

https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cnames-and-https-requirements.html

If you want to require HTTPS between viewers and CloudFront, you must change the AWS region to US East (N. Virginia) in the AWS Certificate Manager console before you request or import a certificate.
If you want to require HTTPS between CloudFront and your origin, and you're using an ELB load balancer as your origin, you can request or import a certificate in any region.

https://docs.aws.amazon.com/acm/latest/userguide/acm-regions.html

To use an ACM Certificate with Amazon CloudFront, you must request or import the certificate in the US East (N. Virginia) region. ACM Certificates in this region that are associated with a CloudFront distribution are distributed to all the geographic locations configured for that distribution.

https://stackoverflow.com/questions/37289994/aws-certificate-manager-do-regions-matter

This is an AWS restriction, and you need to request the same cert in us-east-1.

from terraform-aws-cloudfront-s3-cdn.

mojeto avatar mojeto commented on June 3, 2024 1

@aknysh and @osterman thank you guys. I didn't know that. I've spent too much time checking the code is right and forgot to check AWS limitations. I suggest pointing these limitation out in Generating ACM Certificate in README.md. It would help me.

from terraform-aws-cloudfront-s3-cdn.

aknysh avatar aknysh commented on June 3, 2024 1

@mojeto
we'll update README, thanks

from terraform-aws-cloudfront-s3-cdn.

osterman avatar osterman commented on June 3, 2024

@aknysh is correct. This is a fundamental requirement of CloudFront.

from terraform-aws-cloudfront-s3-cdn.

osterman avatar osterman commented on June 3, 2024

Ya, that's a good suggestion. I'm going to rename the issue to reflect that.

from terraform-aws-cloudfront-s3-cdn.

aknysh avatar aknysh commented on June 3, 2024

@mojeto
we updated README about using SSL cert with CloudFront.
Merged into master.
https://github.com/cloudposse/terraform-aws-cloudfront-s3-cdn/releases/tag/0.1.5

from terraform-aws-cloudfront-s3-cdn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.