Template repository

Deploy a static website to AWS S3 with GitHub Actions

This starter includes a plain HTML, CSS, and JavaScript site, Terraform infrastructure, and a deployment workflow that uses GitHub OIDC.

Get started

1. Provision infrastructure

Use the Terraform configuration in infra/terraform to create the S3 website bucket and the IAM role for GitHub Actions.

2. Configure GitHub

Add the repository variables from the Terraform outputs so the workflow can assume the deployment role and target the correct bucket.

3. Push site updates

Commits to main automatically sync the contents of the site folder to S3.

Template structure

site/

Static HTML, CSS, JavaScript, images, and any public assets.

infra/terraform/

S3 website hosting, OIDC trust, and deployment IAM policy.

.github/workflows/

Deployment workflow that publishes the static site to S3.