Skip to content

muralierd/code_deploy_sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aws_code_deploy

Steps for AWS code deploy using S3 as source

  1. Create IAM Roles - CodeDeploy & EC2CodeDeploy

  2. Create EC2 instance with the following software packages should install

  3. Choose AMI: Amazon Linux 2
    alt text

  4. Choose AMI role as EC2CodeDeploy
    alt text

  5. Choose User Data: for installing required packages.
    #!/bin/bash
    sudo yum -y update
    sudo yum -y install ruby
    sudo yum -y install wget
    cd /home/ec2-user
    wget https://aws-codedeploy-ap-south-1.s3.ap-south-1.amazonaws.com/latest/install
    sudo chmod +x ./install
    sudo ./install auto
    sudo yum install -y python-pip
    sudo pip install awscli

    alt text

  6. Security groups: which enable port SSH port 22 and HTTP 80 for application
    alt text

  7. Add tags to your EC2 instance
    alt text

  8. Launch instance

  9. Makesure that your bucket should enabled version
    alt text

  10. Goto CodeDeploy Create Application

  11. Create a DeploymentGroup

  12. Moving Your Application Into GitHub
    for more details Click Here If the application files that you want to deploy are not already in a GitHub repository, you’ll need to set that up. Here’s how you can do it with the getting started sample application. First, download the application files. These examples use Linux / Unix commands.

mkdir codedeploy-sample
cd codedeploy-sample
curl -O http://s3.amazonaws.com/aws-codedeploy-us-east-1/samples/latest/SampleApp_Linux.zip

You can upload SampleApp_Linux.zip file on S3 for further automatic deployment on CodeDeploy Pipeline

About

test

Resources

License

GPL-3.0, Apache-2.0 licenses found

Licenses found

GPL-3.0
LICENSE
Apache-2.0
LICENSE.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published