Skip to content

Instantly share code, notes, and snippets.

@CTFries
CTFries / deployTos3.yml
Last active February 27, 2022 05:20
IaC for static site deployed to s3, cloudfront with ACM cert and R53 dns records configured. CD setup with GithubActions to build static nextJS and push it to s3 bucket.
name: Deploy to S3 upon push to main
on:
pull_request:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps: