Sunday, October 4, 2020

Code deploy to EC2 using pipeline (code build ad code deploy)

 https://www.youtube.com/watch?v=ND8hujOoZ14


https://docs.aws.amazon.com/codepipeline/latest/userguide/tutorials-simple-codecommit.html



Create a git repository


for code deploy need two role

  • – AmazonEC2RoleforAWSCodeDeploy

  • AWSCodeDeployRole










******************************************************************









************************************************************



















#!/bin/bash
yum -y update
yum install -y ruby
yum install -y aws-cli
cd /home/ec2-user
aws s3 cp s3://aws-codedeploy-us-east-2/latest/install . --region us-east-2
chmod +x ./install
./install auto











Review the ec2 instance creattion





pipeline


Create pipeline







pipeline source storage






Add build stage:















Code build evnronment







****************************************************************************


CODE deploy





Create deployment group









No comments:

Post a Comment

Autoboxing and Unboxing

  Autoboxing  is the automatic conversion that the Java compiler makes between the primitive types and their corresponding object wrapper cl...