Deploy React project to S3 by using CI/CD pipelines(Part 2)

1. Create buildspec.yml

version: 0.2

- echo "Installing dependencies"
- npm install
- echo "Building"
- npm run build
- echo "Synchronizing"
- aws s3 sync build/ s3://pipeline-app-test --delete

2. CodeBuild

  • Github at Source provider (or other if you have other)
  • Repository in GitHub account
  • Select a repository from the list
  • The branch which you want to use for create a pipeline
  • Ubuntu
  • Standard
  • aws/codebuild/standard:5.0 (just select last version)

3. Bucket permissions

"Effect": "Allow",
"Action": [
"Resource": [

The final



ZenBit Tech is an outsourcing software development company spreading its services worldwide.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store