Giter VIP home page Giter VIP logo

Comments (3)

syphernl avatar syphernl commented on June 14, 2024 1

That's odd. Perhaps it would be better to use website_endpoint or website_domain instead.

https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/s3_bucket#website_endpoint

Could you check if the outputs of either use the correct s3-website endpoint ?

Certainly, I did some digging and found the following:

  • website_domain: s3-website-eu-west-1.amazonaws.com
  • website_endpoint: REDACTED.s3-website-eu-west-1.amazonaws.com

Using website_endpoint would probably be best here as the bucket_ attributes do not contain the -website suffix:

  • bucket_domain_name: REDACTED.s3.amazonaws.com
  • bucket_regional_domain_name: REDACTED.s3.eu-west-1.amazonaws.com

from terraform-aws-cloudfront-s3-cdn.

syphernl avatar syphernl commented on June 14, 2024 1

@nitrocode Looks good!

One minor thing I noticed is that it wants to replace the existing
REDACTED.s3-website.eu-west-1.amazonaws.com into
REDACTED.s3-website-eu-west-1.amazonaws.com (a dash instead of a dot between s3-website and the region) but this is due to the way things were generated prior to v0.55.

Since both the dash and dot-variants are working the same this is an acceptable change IMHO.

from terraform-aws-cloudfront-s3-cdn.

nitrocode avatar nitrocode commented on June 14, 2024

Thanks @syphernl . I put in an initial PR with branch website_endpoint to use that when var.website_enabled is true.

Could you use point your module to my feature branch to see if it works as expected for you ?

module "cdn" {
  source = "[email protected]:cloudposse/terraform-aws-cloudfront-s3-cdn.git?ref=website_endpoint"

  website_enabled = true
  # ...
}

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.