Browse the Repo
Browse the Repo
Deploy your static content and static websites on S3. Supports bucket versioning, redirects, and access logging.
This module creates an AWS S3 bucket that can be used to host a static website. That is, the website can contain static HTML, CSS, JS, and images.
Offload storage and serving of static content (HTML, CSS, JS, images) to an S3 bucket configured as a website.
Specify custom routing rules for the website.
Optionally configure a custom domain name for the website.
Optionally deploy a CDN in front of S3 using the s3-cloudfront module.
The reason to serve static content from S3 rather than from your own app server is that it can significantly reduce the load on your server, allowing it to solely focus on serving dynamic data. This will save you money and make your website run faster. For even bigger improvements in performance, consider deploying a CloudFront Content Distribution Network (CDN) in front of the S3 bucket using the s3-cloudfront module.
If you just want to try this repo out for experimenting and learning, check out the following resources:
Examples folder: The
examples folder contains sample code optimized for learning, experimenting,
and testing (but not production usage).
If you want to deploy this repo in production, check out the following resources:
Example for static website: Production-ready sample code.
If you need help with this repo or anything else related to infrastructure or DevOps, Gruntwork offers Commercial Support via Slack, email, and phone/video. If you’re already a Gruntwork customer, hop on Slack and ask away! If not, subscribe now. If you’re not sure, feel free to email us at email@example.com.
Contributions to this repo are very welcome and appreciated! If you find a bug or want to add a new feature or even contribute an entirely new module, we are very happy to accept pull requests, provide feedback, and run your changes through our automated test suite.
Please see Contributing to the Gruntwork Infrastructure as Code Library for instructions.
Please see LICENSE.txt for details on how the code in this repo is licensed.
We're here to talk about our services, answer any questions, give advice, or just to chat.