Skip to content
Free since 2015. Built for the engineers who keep things running.

cat /articles/github-actions-for-cicd-with-ec2-codedeploy-and-s3.md

Infrastructure as Code

Github Actions for CI/CD with EC2, CodeDeploy and S3

Create CI/CD with Github Actions + AWS EC2, CodeDeploy and S3What’s gonna happen? (TLDR)When you push or merge into specific branch (staging, master etc.) Github Actions will trigger CI Pipeline (Build & Test). If passed it will trigger CD Pipeline (Deployment).

medium.com08 Jul 2020 · summary

article --summary

The summary

You’ll need an AWS account that can do the following This role will allow EC2 to communicates with CodeDeploy This role will allow CodeDeploy to communicates with EC2, Now we have CodeDeployInstanceRole and CodeDeployServiceRole. This script will run on ApplicationStart that we have declare above in appspec.yml this will start reload our pm2 process automatically. You can create multiple development stage or have multiple pipeline that suit your work or even multiple instance for different stage.

Editorial note: This is a summary of an article first published by medium.com. The full piece is on their site.

articles --latest

Latest articles

New from the blogs we follow and the community.

All articles

newsletter --weekly

DevOps Weekly, minus the noise.

The best reads, new jobs and upcoming events, in one email a week.