Deploy Github App on AWS EC2 in 5 Simple Steps

Pre requisites:

Step 1: Create required IAM roles.

CodeDeploy IAM Role

EC2 IAM Role

{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"s3:Get*",
"s3:List*"
],
"Effect": "Allow",
"Resource": "*"
}
]
}

Step 2: Create EC2 instance and install codeDeploy Agent

Install CodeDeploy agent on EC2

sudo yum update
sudo yum install ruby
wget https://aws-codedeploy-us-east-1.s3.us-east-1.amazonaws.com/latest/install
chmod +x ./install
sudo ./install auto
sudo service codedeploy-agent status

Step 3: Create CodeDeploy application and deployment group

Step 4: Fork existing Github source code into your Github account

Step 5: Create deployment in CodeDeploy

Bingo!

--

--

--

Senior Software Engineer by profession. Technology explorer and instructor by passion. I try to share solutions with wide audience to solve their problems.

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

Recommended from Medium

Oasis Infobyte Intership Experience

Media Content I managed/created for Yaonology

How to Create a Ubuntu 20.04 Server on AWS EC2 (Elastic Cloud Computing)

AuroraFS

SOLID Design Principles

7 Signs Your Org Has Outgrown React Native

Debugging Tutorial 1 — Introduction: Conditional Breakpoints

Building your own Custom Connector for Fivetran

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
Naman Jain

Naman Jain

Senior Software Engineer by profession. Technology explorer and instructor by passion. I try to share solutions with wide audience to solve their problems.

More from Medium

AWS : ECS v FARGATE

The hidden gem in application development — GitHub

Drawbacks of AWS Code build

Build and Deploy React App to AWS S3 using CircleCI