Skip to content

BINPIPE/codepipeline-codedeploy-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BINPIPE

Example of a Continuous Delivery pipeline with AWS CodePipeline and CodeDeploy using CloudFormation

Creating a simple Continuous Delivery pipeline allowing you to push changes from your GitHub repository to your EC2 Instances. Watch Demonstration Video

Services

The following AWS services are used to create a Continuous Delivery pipeline.

  • CodePipeline
  • CodeDeploy
  • CloudFormation
  • EC2
  • S3
  • IAM

Setup

Fork this repository.

Use the ./setup.sh script to create a Continuous Delivery pipeline.

Note: The script will create a CloudFormation stack which launches an EC2 instance into the default VPC of your default region. (Try using us-east-1a or change it in scripts, also change the bucketname as per your own s3 bucketname.) The script will ask you for:

It might take a few minutes until the CodePipeline job has finished and the EC2 Instance is able to answer your HTTP request.

Looks something like this -

prasanjit@Prasanjits-Mac codepipeline-codedeploy-example % ./setup.sh
Enter the Stack name:
awslug
Enter the GitHub repository:
codepipeline-codedeploy-example
Enter the GitHub owner:
prasanjit-
Enter the GitHub OAuth Token:
ghx_xxxxxxxxxxxxxxxxxxxxxxxxxxxx
{
    "StackId": "arn:aws:cloudformation:us-east-1:879566836351:stack/awslug/da9b6d90-e14e-11eb-92cf-0e1cfc6fd327"
}
Creating the CloudFormation stack, this will take a few minutes ...
Done! Send an HTTP request to the following URL, please.

http://ec2-184-72-211-129.compute-1.amazonaws.com

About

codepipeline-codedeploy-example demonstration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • JavaScript 51.5%
  • Shell 47.2%
  • HTML 1.3%