Member-only story
Continuous Deployment Pipeline for React App on AWS S3 + CloudFront
A simple review of how to create a continuous deployment pipeline for a single page application (ReactJS) without a server using AWS S3 + CloudFront.
Introduction
As with anything in engineering, there are a multitude of valid ways to accomplish creating a deployment pipeline for a single page application (SPA).
Here, we will go over hosting a single page application using S3 + CloudFront and using AWS’ Codepipeline to automatically deploy the application.
By the end of this tutorial you will have a pipeline that performs the following steps:
- Detects pushes to a specific branch in a Git repository.
- Builds a staging version of the application from source.
- Deploys a staging version of the application.
- Awaits for manual approval.
- Deploys a production version of the application.
S3 + Cloudfront Hosting of Single Page Application
Before starting on the pipeline portion of the application let us go over how to serve a SPA using S3 + Cloudfront.