Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Build and deployment with Jenkins and Code Deploy on AWS

1,438 views

Published on

Build and deployment using AWS CodeDeploy with Jenkins on AWS EC2 instances

Published in: Internet
  • Be the first to comment

Build and deployment with Jenkins and Code Deploy on AWS

  1. 1. Build and Deployment with Jenkins and Code Deploy on AWS -Mitesh Sharma
  2. 2. Build And Deployment AWS EC2 Server Build, Test, Deploy Find issues, fix them, Add features Dev Machine
  3. 3. Build And Deployment AWS EC2 ServerDev Machine Build SCP from dev to server Deploy
  4. 4. Build And Deployment AWS EC2 ServerDev Machine Build Deploy
  5. 5. Build And Deployment Trigger Build and deploy AWS EC2 ServerDev Machine Deploy Code Push
  6. 6. Build And Deployment with CodeDeploy Trigger Build and deploy AWS EC2 ServerDev Machine Deployed Code Push + AWS CodeDeploy
  7. 7. AWS Code Deploy: What we need Amazon EC2 with CodeDeploy Agent Amazon S3 AWS CodeDeploy
  8. 8. AWS Code Deploy Getting ready: Assign proper roles and permissions both to AWS CodeDeploy and EC2 Tag the instance where we want to do deployment Install agent if not using AMI which already have one Create Application Specify Deployment Group Specify Deployment Configration Upload Revision DeployCheck Result
  9. 9. Life Cycle Events Agent goes through series of events Steps allow us to control application development For example: We can close application cleanly using these steps. AppSpec.yml sits in application’s source directory which allows us to define AWS Code Deploy ApplicationStop BeforeInstall AfterInstall ApplicationStart ValidateService Agent Start Download Bundle Install End
  10. 10. Jenkins Machine Content + AppSpec.yml EC2 Machine Amazon S3 / Github can be used CodeDeploy Deployment Management Content + AppSpec.yml Deployment Group Agent Agent Agent Agent Agent Agent 1 2 3 4 AWS Code Deploy
  11. 11. Issues Build and deployment at same place restrict us from deploying same build on multiple environments Need to build multiple times for each environment Code pushes can happen between different builds for deployment on different environment Build and deployment needs to be decoupled
  12. 12. Jenkins Machine Content with env conf with AppSpec.yml EC2 Machine Amazon S3 / Github can be used CodeDeploy Deployment Management Content + AppSpec.y ml Deployment Group Agent Agent Agent Agent Agent Agent 1 2 3 4 AWS Code Deploy Jenkins Machine Build
  13. 13. Demo
  14. 14. Thanks Twitter : @mitesh_shamra Github : https://github.com/MiteshSharma

×