Coder Social home page Coder Social logo

Comments (6)

ofhouse avatar ofhouse commented on July 20, 2024 1

Yes Windows is currently not supported since we rely internally on some Bash scripts that are executed during terraform apply.
Bash is not supported on Windows and that's the reason why you see those errors.

Windows support is not a top priority for this project. Do you have the possibility to use a Linux-Subsystem (WSL), or a CI (e.g. Terraform Cloud) for making the deployments?

from terraform-aws-next-js.

ofhouse avatar ofhouse commented on July 20, 2024 1

No problem,
every customer-facing route ("all incoming traffic") is served by the CDN (CloudFront).

CloudFront uses two different sources (three with image optimization) where a request is served from.
S3 and API-Gateway + Lambda are sources where CloudFront forwards the incoming traffic to when no copy is in the CloudFront cache.
The request from a viewer itself is terminated by CloudFront, so no customer will request (or see) the S3 or API-Gateway resources directly but they are initiated (and signed for S3 sources) by CloudFront.

from terraform-aws-next-js.

otekdo avatar otekdo commented on July 20, 2024

It does not let me deploy the website, that mistake is still happening!

module.tf_next.module.statics_deploy.null_resource.static_s3_upload (local-exec): Executing: ["cmd" "/C" "./s3-put -r us-east-1 -T C:/apps/web/mynextapp/client/.next-tf/static-website-files.zip /next-tf-deploy-source20210331135505030700000001/static-website-files.zip"] module.tf_next.module.statics_deploy.null_resource.static_s3_upload (local-exec): '.' is not recognized as an internal or external command, module.tf_next.module.statics_deploy.null_resource.static_s3_upload (local-exec): operable program or batch file.

from terraform-aws-next-js.

otekdo avatar otekdo commented on July 20, 2024

Thanks for these details, did not know that!
I'll give a try with Terraform Cloud!

from terraform-aws-next-js.

otekdo avatar otekdo commented on July 20, 2024

@ofhouse This is a off-topic question...

image

The /_next/static/chunks/ or /_next/static/ files,
are they served from the S3 Bucket directly
or
are they served from the CDN?

I did not understand these statements properly!

from terraform-aws-next-js.

otekdo avatar otekdo commented on July 20, 2024

Wow, amazing!
Thanks for the deep explanation!

from terraform-aws-next-js.

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.