AWS CodeDeploy | Pipeline | Setup | Deploy application on EC2 using S3 as source
AWS Code Deploy: AWS CodeDeploy is a fully managed deployment service that automates software deployments to a variety of compute services such as Amazon EC2, AWS Fargate, AWS Lambda, and your on-premises servers. CodeDeploy makes it easier for you to rapidly release new features, helps you avoid downtime during application deployment, and handles the complexity of updating your applications.
Centralized control - AWS CodeDeploy allows you to easily launch and track the status of your application deployments through AWS management console
Minimize downtime - AWS CodeDeploy helps maximize your application availability during the software deployment process.

Create a S3 Bucket


Create a role






code deploy role









#!/bin/bash
sudo yum -y update
sudo yum -y install ruby
sudo yum -y install wget
cd /home/ec2-user
wget https://aws-codedeploy-us-east-2.s3.us-east-2.amazonaws.com/latest/install
sudo chmod +x ./install
sudo ./install auto
sudo yum install -y python-pip
sudo pip install awscli

Code Deploy -
Create a Application










Application file link download -
curl -O http://s3.amazonaws.com/aws-codedeploy-us-east-1/samples/latest/SampleApp_Linux.zip

upload the Application folder on the S3




Creating a Pipeline











Last updated