Skip to content

Welcome to the Black Belt AWS Storefront Initiative. Eventually a zero-hero course for getting a Next.js site from static deploys into S3 to a Fargate hosted storefront.

Notifications You must be signed in to change notification settings

Guysnacho/ssg-s3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Static Site Generation (SSG) meets AWS S3

🌱 Apply, Build, Deploy 🌿

This repo is to help me actually build this AWS course. Shouldn't be too hard This has and will continue to be a learning experience. Follow along, check the releases, make a fork, go crazy, but check the Project Home for more details. ✨

Project Layout

  • Terraform Package
  • Web package
  • Github workflows
    • Applies terraform infra changes after commits to main branch
    • Bundles our app into static site files and a Docker image
    • Deploys uploads static site to S3 to be served by CloudFront
    • Uploads our Docker Image to the run context
    • Updates an SSM parameter's value to this artifact's URL
      • Important note - by default, an artifact upload will only live for 90 days. Keep this in mind if you want to roll changes back to a given date past that.

Local Setup

  1. Signup for Terraform HCP
  2. Install tf cli
  3. Install aws cli
  4. Build starter Next site
    1. Configure ssg export
  5. Setup bucket, cloudfront, provider, outputs, whatever else locally
  6. Add GitHub action secrets
  7. Test workflows
  8. Sip water

About

Welcome to the Black Belt AWS Storefront Initiative. Eventually a zero-hero course for getting a Next.js site from static deploys into S3 to a Fargate hosted storefront.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published