Skip to content

felipelaptrin/ephemeral-environment-frontend

Repository files navigation

Ephemeral Environment for Frontend

This is a demo repository for my blog post.

How to run this project

  1. Install dev dependencies with Devbox
devbox shell
  1. Initilize Terraform
cd infrastructure/src
terraform init --backend-config=../config/dev/us-east-1/backend.hcl

⚠️ Modify the file infrastructure/config/dev/us-east-1/backend.hcl with appropriate values that fit your needs. :warning: Make sure AWS credentials are present in your terminal

  1. Deploy infrastructure
terraform apply --var-file=../config/dev/us-east-1/vars.tfvars

⚠️ Modify the file infrastructure/config/dev/us-east-1/vars.tfvars with appropriate values that fit your needs.

  1. Set env vars for the GitHub Actions Workflow

Modify the .github/workflows/ephemeral.yaml and .github/workflows/frontend.yaml files (the env section) with proper values and enjoy your ephemeral environment for frontend!

About

A demo for my blog post about how ephemeral environments for frontend using CloudFront + S3

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published