aws webcast - aws opsworks continuous integration demo
DESCRIPTION
In this session we'll discuss and demonstrate key concepts and design patterns for continuous deployment and integration using technologies like AWS OpsWorks and Chef to enable better control of applications and infrastructures.TRANSCRIPT
![Page 1: AWS Webcast - AWS OpsWorks Continuous Integration Demo](https://reader034.vdocuments.us/reader034/viewer/2022052315/554bd6bab4c9058f6c8b5188/html5/thumbnails/1.jpg)
AWS OpsWorks
Chris Barclay
Product Manager
![Page 2: AWS Webcast - AWS OpsWorks Continuous Integration Demo](https://reader034.vdocuments.us/reader034/viewer/2022052315/554bd6bab4c9058f6c8b5188/html5/thumbnails/2.jpg)
Application Management Challenges
• Your app’s reliability and scalability are really important.
• The operational tasks needed to keep it running smoothly take time…
• As your app grows, routine operational tasks can become even more time-consuming and error-prone.
• Don’t want to tradeoff control or flexibility for ease of use.
• Provision
• Deploy
• Configure
• Monitor
• Scale
• Secure
![Page 3: AWS Webcast - AWS OpsWorks Continuous Integration Demo](https://reader034.vdocuments.us/reader034/viewer/2022052315/554bd6bab4c9058f6c8b5188/html5/thumbnails/3.jpg)
Once upon a time…
Source: http://www.mixph.com/2008/10/how-to-make-donuts-food-business.html
![Page 4: AWS Webcast - AWS OpsWorks Continuous Integration Demo](https://reader034.vdocuments.us/reader034/viewer/2022052315/554bd6bab4c9058f6c8b5188/html5/thumbnails/4.jpg)
This is what we want…
Source http://thethriftythings.com/2013/01/doughnut-heaven-with-krispy-kreme-2013-bloggers-summit.html
![Page 6: AWS Webcast - AWS OpsWorks Continuous Integration Demo](https://reader034.vdocuments.us/reader034/viewer/2022052315/554bd6bab4c9058f6c8b5188/html5/thumbnails/6.jpg)
In today’s infrastructure, everything is code…
from the applications developers are writing, to
your configuration management tools, to
provisioning resources with CloudFormation
templates.
![Page 7: AWS Webcast - AWS OpsWorks Continuous Integration Demo](https://reader034.vdocuments.us/reader034/viewer/2022052315/554bd6bab4c9058f6c8b5188/html5/thumbnails/7.jpg)
AWS OpsWorks
• Integrated application management solution for
ops-minded developers and IT admins
• Model, control and automate applications of
nearly any scale and complexity
• Management Console, SDKs, or CLI
• No additional cost
![Page 8: AWS Webcast - AWS OpsWorks Continuous Integration Demo](https://reader034.vdocuments.us/reader034/viewer/2022052315/554bd6bab4c9058f6c8b5188/html5/thumbnails/8.jpg)
Why AWS OpsWorks?
SIMPLE
Easy to use, quickly get started and productive
PRODUCTIVE
Reduces errors with conventions and scripted configuration
FLEXIBLE
Simplifies deployments of any scale and complexity
POWERFUL
Reduce cost and time with automation
SECURE
Enables control with fine grained permissions
![Page 9: AWS Webcast - AWS OpsWorks Continuous Integration Demo](https://reader034.vdocuments.us/reader034/viewer/2022052315/554bd6bab4c9058f6c8b5188/html5/thumbnails/9.jpg)
Software Config & Deployment Options
Linux
JEE
Hibernate
Your Code
Struts
Apache
Tomcat
Linux
JEE
Hibernate
Your Code
Struts
Apache
Tomcat
Linux
JEE
Hibernate
Your Code
Struts
Apache
Tomcat
Chef
![Page 10: AWS Webcast - AWS OpsWorks Continuous Integration Demo](https://reader034.vdocuments.us/reader034/viewer/2022052315/554bd6bab4c9058f6c8b5188/html5/thumbnails/10.jpg)
AWS Application Management Services
Elastic Beanstalk OpsWorks CloudFormation EC2
Convenience Control
Higher-level Services Do it yourself
![Page 11: AWS Webcast - AWS OpsWorks Continuous Integration Demo](https://reader034.vdocuments.us/reader034/viewer/2022052315/554bd6bab4c9058f6c8b5188/html5/thumbnails/11.jpg)
What we’re going to show in the demo…
A stack represents the cloud infrastructure and applications that you want to manage together.
A layer defines how to setup and configure a set of instances and related resources.
Then deploy your app to specific instances and customize the deployment with Chef recipes.
Decide how to scale: manually, with 24/7 instances, or automatically, with load-based or time-based instances.
![Page 12: AWS Webcast - AWS OpsWorks Continuous Integration Demo](https://reader034.vdocuments.us/reader034/viewer/2022052315/554bd6bab4c9058f6c8b5188/html5/thumbnails/12.jpg)
What is Chef and how does OpsWorks use it
• Chef is an open-source framework that automates software deployment and configuration.
• Whenever a change happens on your stack, or upon request, all instances are notified and recipes are run.
Recipes Lifecycle Events
Metadata
![Page 13: AWS Webcast - AWS OpsWorks Continuous Integration Demo](https://reader034.vdocuments.us/reader034/viewer/2022052315/554bd6bab4c9058f6c8b5188/html5/thumbnails/13.jpg)
Chef recipes in action
Recipe
+
Metadata
=
Command
execute “mysql-connect” do command “/usr/bin/mysql -u#{node[:deploy][:myphpapp][:database][:username]} -p#{node[:deploy][:myphpapp][:database][:password]} #{node[:deploy][:myphpapp][:database][:database]} …
“deploy”: { “myphpapp”: { “database”: { “username”: “root”, “password”: “abcxyz”, …
“/usr/bin/mysql -uroot –pabcxyz myphpapp …
![Page 14: AWS Webcast - AWS OpsWorks Continuous Integration Demo](https://reader034.vdocuments.us/reader034/viewer/2022052315/554bd6bab4c9058f6c8b5188/html5/thumbnails/14.jpg)
Demonstration: Deployment Pipeline to Staging
Deploy Code Build Test Provision Monitor
OpsWorks Git Jenkins
Check in – Build & Test Tests pass – Deploy to Staging
![Page 15: AWS Webcast - AWS OpsWorks Continuous Integration Demo](https://reader034.vdocuments.us/reader034/viewer/2022052315/554bd6bab4c9058f6c8b5188/html5/thumbnails/15.jpg)
Demonstration: Deployment Pipeline to Prod
Blue/Green Deploys – We stand up a duplicate part of our
infrastructure and slowly cut traffic over to it
• Shift via DNS
• Makes it easy to do testing of new features
• Makes it easy to roll back
– As we shift more traffic over, let auto-scaling grow/shrink our instances of the new or old application
• Shut down the old when no traffic there
Amazon Route 53
EC2 Instances
ELB
100%
MySQL RDS Instance
![Page 16: AWS Webcast - AWS OpsWorks Continuous Integration Demo](https://reader034.vdocuments.us/reader034/viewer/2022052315/554bd6bab4c9058f6c8b5188/html5/thumbnails/16.jpg)
Demonstration: Deployment Pipeline to Prod
Blue/Green Deploys – We stand up a duplicate part of our
infrastructure and slowly cut traffic over to it
• Shift via DNS
• Makes it easy to do testing of new features
• Makes it easy to roll back
– As we shift more traffic over, let auto-scaling grow/shrink our instances of the new or old application
• Shut down the old when no traffic there
Amazon Route 53
EC2 Instances
ELB
EC2 Instances
ELB
90% 10%
MySQL RDS Instance
![Page 17: AWS Webcast - AWS OpsWorks Continuous Integration Demo](https://reader034.vdocuments.us/reader034/viewer/2022052315/554bd6bab4c9058f6c8b5188/html5/thumbnails/17.jpg)
Demonstration: Deployment Pipeline to Prod
Blue/Green Deploys – We stand up a duplicate part of our
infrastructure and slowly cut traffic over to it
• Shift via DNS
• Makes it easy to do testing of new features
• Makes it easy to roll back
– As we shift more traffic over, let auto-scaling grow/shrink our instances of the new or old application
• Shut down the old when no traffic there
Amazon Route 53
EC2 Instances
ELB
EC2 Instances
ELB
50% 50%
MySQL RDS Instance
![Page 18: AWS Webcast - AWS OpsWorks Continuous Integration Demo](https://reader034.vdocuments.us/reader034/viewer/2022052315/554bd6bab4c9058f6c8b5188/html5/thumbnails/18.jpg)
Demonstration: Deployment Pipeline to Prod
Blue/Green Deploys – We stand up a duplicate part of our
infrastructure and slowly cut traffic over to it
• Shift via DNS
• Makes it easy to do testing of new features
• Makes it easy to roll back
– As we shift more traffic over, let auto-scaling grow/shrink our instances of the new or old application
• Shut down the old when no traffic there
Amazon Route 53
EC2 Instances
ELB
EC2 Instances
ELB
0% 100%
MySQL RDS Instance
![Page 19: AWS Webcast - AWS OpsWorks Continuous Integration Demo](https://reader034.vdocuments.us/reader034/viewer/2022052315/554bd6bab4c9058f6c8b5188/html5/thumbnails/19.jpg)
Demonstration: Deployment Pipeline to Prod
Blue/Green Deploys – We stand up a duplicate part of our
infrastructure and slowly cut traffic over to it
• Shift via DNS
• Makes it easy to do testing of new features
• Makes it easy to roll back
– As we shift more traffic over, let auto-scaling grow/shrink our instances of the new or old application
• Shut down the old when no traffic there
Amazon Route 53
EC2 Instances
ELB
EC2 Instances
ELB
0% 100%
MySQL RDS Instance
![Page 20: AWS Webcast - AWS OpsWorks Continuous Integration Demo](https://reader034.vdocuments.us/reader034/viewer/2022052315/554bd6bab4c9058f6c8b5188/html5/thumbnails/20.jpg)
Demonstration: Deployment Pipeline to Prod
Blue/Green Deploys – We stand up a duplicate part of our
infrastructure and slowly cut traffic over to it
• Shift via DNS
• Makes it easy to do testing of new features
• Makes it easy to roll back
– As we shift more traffic over, let auto-scaling grow/shrink our instances of the new or old application
• Shut down the old when no traffic there
Amazon Route 53
EC2 Instances
ELB
100%
MySQL RDS Instance
![Page 21: AWS Webcast - AWS OpsWorks Continuous Integration Demo](https://reader034.vdocuments.us/reader034/viewer/2022052315/554bd6bab4c9058f6c8b5188/html5/thumbnails/21.jpg)
Thank you!
For more information, see us at https://aws.amazon.com/opsworks/