Skip to content

How to make use of Terraform and Terragrunt to create infrastructure for S3 static site hosting and a CloudFront CDN using CI/CD pipeline to deploy to the S3 bucket.

License

Notifications You must be signed in to change notification settings

medesko/terraform-react-app-to-aws-s3-cloudfront

Repository files navigation

How to auto deploy react app to aws S3 & CloudFront using terraform

This repository contains the source code

Goal

1 - The CI/CD pipeline pulls the source code from GitHub and run tests against the application before deploying it to an aws S3 bucket for frontend hosting.

2 - The frontend will then be distributed using CloudFront which will point to the S3 bucket.

3 - All of the infrastructure is built using Terraform.

4 - In addition, I make use of Terragrunt to create this setup for multiple environments to Keep Terraform code DRY approach.

Architecture Diagram

Alt text

Resources

Terragrunt

Terragrunt-configuration

About

How to make use of Terraform and Terragrunt to create infrastructure for S3 static site hosting and a CloudFront CDN using CI/CD pipeline to deploy to the S3 bucket.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published