https://github.com/nullstone-modules/aws-s3-site
Nullstone module to launch a static website hosted by AWS S3
https://github.com/nullstone-modules/aws-s3-site
aws cloudfront nullstone s3-bucket terraform terraform-module
Last synced: 4 months ago
JSON representation
Nullstone module to launch a static website hosted by AWS S3
- Host: GitHub
- URL: https://github.com/nullstone-modules/aws-s3-site
- Owner: nullstone-modules
- Created: 2020-08-20T17:33:52.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2025-11-11T23:55:14.000Z (7 months ago)
- Last Synced: 2026-01-30T14:55:25.834Z (4 months ago)
- Topics: aws, cloudfront, nullstone, s3-bucket, terraform, terraform-module
- Language: HCL
- Homepage:
- Size: 76.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# S3 Static Site
This app module is used to create a static site hosted by an S3 Bucket.
Usually, an S3 Static Site has a Content Delivery Network (CDN) to serve content close to users.
Add a "CDN for S3 Site" capability to serve content publicly from this application module.
## Security & Compliance
Security scanning is graciously provided by [Bridgecrew](https://bridgecrew.io/).
Bridgecrew is the leading fully hosted, cloud-native solution providing continuous Terraform security and compliance.







## Deploys
When using the Nullstone CLI or auto-build/deploy functionality,
Nullstone pushes the static assets to the S3 Bucket during the "push" phase of deployment.
If necessary, Nullstone reconfigures a CDN to serve the new assets.
Then, Nullstone performs invalidation on the CDN so that the new assets are properly served to users.
This module supports [Versioned](#versioned-assets) and [Unversioned](#unversioned-assets) Assets.
By default, Versioned Assets is configured.
### Versioned Assets
When storing assets in the S3 Bucket, Versioned Assets stores each version of assets in a separate subdirectory in the S3 Bucket.
During deployment, Nullstone reconfigures the CDN to serve assets from the `` S3 subdirectory.
Versioned Assets enables rollback functionality for static site apps and guarantees that assets are not overwritten in the S3 Bucket.
However, this does not allow serving of assets from multiple deployments.
### Unversioned Assets
When storing assets in the S3 Bucket, Unversioned Assets stores all assets in the root directory of the S3 Bucket.
This disables rollback functionality in Nullstone, but enables serving assets that are uploaded in separate deployments.