Giter VIP home page Giter VIP logo

aws-samples / aws-cicd-bluegreen Goto Github PK

View Code? Open in Web Editor NEW
17.0 4.0 27.0 839 KB

Lets customers use Clouformation to create a VPC with ASG and two load balanced web servers. Customer will create a code pipeline to automate a blue/green deployment based on code changes committed to the Code Commit repository.

License: MIT No Attribution

JavaScript 16.98% CSS 29.70% HTML 42.26% Shell 5.49% Perl 5.57%

aws-cicd-bluegreen's Introduction

CICD with CodePipeline and Blue Green Deployment

Blue-Green is a deployment technique that keep 2 production environments running but only one of the environment is live and one is idle. As you prepare a new version of your software, the current production (Blue) is serving all production traffic. You also have another environment running the new software. Once it has been fully tested (Green), you switch the traffic to route to the Green environment instead of Blue. Now Green is live and Blue is idle.

This technique can reduce the downtime and risks. If there is unexpected issues with Green then you can switch the traffic back to Blue.

License Summary

This sample code is made available under a modified MIT license. See the LICENSE file.

What we will be doing in this lab

We will be create a Cloud9 environment to do development. We will use CloudFormation to build our infrastructructure consisting of VPC, public and private subnets, Application Load Balancer and AutoScaling Group. We will use CodePipeline for CICD which utilize CodeCommit, CodeBuild and CodeDeploy. In CodeDeploy we will configure Blue/Green Deployment.

ALB

Overall steps

  1. Create Cloud9 environment.
  2. Create a repository for your code and commit you first code.
  3. Create infrastructure (ALB, ASG, EC2 and S3).
  4. Create Build project with CodeBuild and store build artifact in S3.
  5. Create Application and Deployment group to deploy the artifact to AutoScaling Group with Blue Green deployment.
  6. Create CICD with CodePipeline.

Follow the Detail Instruction here.

aws-cicd-bluegreen's People

Contributors

sirirako avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

aws-cicd-bluegreen's Issues

Deploy the application through CDK pipeline

I have completed CDK to build infrastructure consisting of VPC, public and private subnets, Application Load Balancer and Auto Scaling Group. What is the best way to complete the three remaining steps to deploy the application through CDK pipeline? I appreciate your help in advance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.