Skip to content

nullstone-modules/aws-s3-site

Repository files navigation

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. Bridgecrew is the leading fully hosted, cloud-native solution providing continuous Terraform security and compliance.

Infrastructure Security CIS AWS V1.3 PCI-DSS V3.2 NIST-800-53 ISO27001 SOC2 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 and Unversioned 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 <version> 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.

About

Nullstone module to launch a static website hosted by AWS S3

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors