Step 1 – Create a AWS S3 bucket :
https://console.aws.amazon.com/s3/
Step 2 – Download file in dist repository on GitHub :
https://github.com/awslabs/aws-codepipeline-s3-aws-codedeploy_linux.
Step 3 : file name : aws-codepipeline-s3-aws-codedeploy_linux.zip
Step 4 :Upload this file on your S3 bucket
Step 5 : Create AWS ECS Linux instances :
https://console.aws.amazon.com/ec2/
clic on launch , use the free Amazon Machine Images (AMI)
Amazon Linux 2 AMI (HVM)
Step 6 : create an IAM profil for your Amazon EC2
https://docs.aws.amazon.com/fr_fr/codedeploy/latest/userguide/getting-started-create-iam-instance-profile.html
Step 7 : when creating the EC2 instance put this code
#!/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
Step 8 : Launch instance
Step 9 : Verify codepipeline is running :
sudo service codedeploy-agent status
Step 10 : Create a codedepoy
Open the console
https://console.aws.amazon.com/codedeploy.
create a deployment group
Step 11 : Create your first pipeline !!
Connect to the AWS Management Console and open the CodePipeline console http://console.aws.amazon.com/codesuite/codepipeline/home
create a pipeline and follow the instructions
let’s play : source and deploy … after add step build !