Skip to content

Latest commit

 

History

History
90 lines (60 loc) · 2.27 KB

4-configure-codedeploy.md

File metadata and controls

90 lines (60 loc) · 2.27 KB

Configure CodeDeploy

Description

In this section we will configure CodeDeploy to allow it manage our application


Configure CodeDeploy

  • Browse to "Applications" (under Deploy) in the CodeDeploy portal and click on "Create application"
  • Name it "bluegreen-deploy" and set it to use "EC2/On-premises"
  • Click on "Create deployment group"
  • Set the deployment group name as "bluegreen-deploygroup"
  • Choose the IAM role "bluegreen-codedeploy-role"
  • Select "Blue/Green" as deployment type
  • Choose "Autmatically copy Amazon EC2 Auto Scaling group" and set the auto scaling group "bluegreen-asg"
  • Under deployment settings configure the below:
    • Reroute traffic immediately
    • Terminate the original instances in the deployment group
    • Deployment configuration: CodeDeployDefault.AllAtOnce
  • Select "Application Load Balancer" and choose the target group "bluegreen-tg" and click on "Create deployment group"
  • Finally click on "Create deployment" to trigger a new deployment (manually)
  • Choose the deployment group, select the last github commit and trigger the deployment
  • Then you will be redirected to the deployment portal and you will be able to track the process
  • Wait until the deployment finish and browse to the load balancer dns