An open API service indexing awesome lists of open source software.

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

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.

![Infrastructure Security](https://www.bridgecrew.cloud/badges/github/nullstone-modules/aws-s3-site/general)
![CIS AWS V1.3](https://www.bridgecrew.cloud/badges/github/nullstone-modules/aws-s3-site/cis_aws_13)
![PCI-DSS V3.2](https://www.bridgecrew.cloud/badges/github/nullstone-modules/aws-s3-site/pci)
![NIST-800-53](https://www.bridgecrew.cloud/badges/github/nullstone-modules/aws-s3-site/nist)
![ISO27001](https://www.bridgecrew.cloud/badges/github/nullstone-modules/aws-s3-site/iso)
![SOC2](https://www.bridgecrew.cloud/badges/github/nullstone-modules/aws-s3-site/soc2)
![HIPAA](https://www.bridgecrew.cloud/badges/github/nullstone-modules/aws-s3-site/hipaa)

## 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.