Successfully reported this slideshow.
Your SlideShare is downloading. ×

Build and deployment with Jenkins and Code Deploy on AWS

Ad

Build and Deployment
with Jenkins and Code Deploy on
AWS
-Mitesh Sharma

Ad

Build And Deployment
AWS EC2
Server
Build, Test, Deploy
Find issues, fix
them, Add features
Dev Machine

Ad

Build And Deployment
AWS EC2
ServerDev Machine
Build
SCP from dev to
server
Deploy

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Ad

Upcoming SlideShare
Localize content Devops
Localize content Devops
Loading in …3
×

Check these out next

1 of 14 Ad
1 of 14 Ad
Advertisement

More Related Content

Slideshows for you (19)

Viewers also liked (20)

Advertisement

Similar to Build and deployment with Jenkins and Code Deploy on AWS (20)

Advertisement

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

Editor's Notes

  • Application: What we are deploying, a container for revision
    Revision: A given version of application
    Deployment: A action of deploying
    AppSpec file: Describe action need to be taken
    Deployment Group: Group of instances
    Deployment Configuration: One at a time, Half at a time, All at a time, Custom
  • Build process using one Jenkins task
    Deployment is seperate

×