2. AWS Government, Education, and Nonprofit Symposium
Washington, DC I June 25-26, 2015
AWS Government, Education, and Nonprofit Symposium
Washington, DC I June 25-26, 2015
DevOps
3. AWS Government, Education, and Nonprofit Symposium
Washington, DC I June 25-26, 2015
What is DevOps?
• « DevOps is the practice of operations and
development engineers participating together in
the entire service lifecycle, from design through
the development process to production support.
»
- theagileadmin.com
4. AWS Government, Education, and Nonprofit Symposium
Washington, DC I June 25-26, 2015
AWS Government, Education, and Nonprofit Symposium
Washington, DC I June 25-26, 2015
Continuous Integration
5. AWS Government, Education, and Nonprofit Symposium
Washington, DC I June 25-26, 2015
What is continuous integration?
• Changes to code automatically deployed to
mainline branch
– After passing unit and mock tests
• Makes deployments and changes to code
iterative, not monolithic
• Bugs are detected quickly
• Helps automate deployments
• Allows rapid development and deployment
6. AWS Government, Education, and Nonprofit Symposium
Washington, DC I June 25-26, 2015
SOURCE CODE
REPOSITORY
PROJECT MANAGEMENT
SERVER
CONTINUOUS
INTEGRATION SERVER
DEVELOPER
PICK
TASKS
SUBMIT
CODE
SCHEDULE
BUILD
RECURRENT
BUILDS
CODE
FETCHCODE QUALITY
TESTS
TEST RESULTS
BUILD OUTPUT
DOCS
BINARIES
& PACKAGES
DEV FACING
NOTIFICATIONS
AWS
CLOUDFORMATION
AMIS or CONTAINERS
9. AWS Government, Education, and Nonprofit Symposium
Washington, DC I June 25-26, 2015
AWS code services
AWS CodeCommit
Coming soon
AWS CodePipeline
Coming soon
AWS CodeDeploy
Launched Nov. 2014
10. AWS Government, Education, and Nonprofit Symposium
Washington, DC I June 25-26, 2015
Cloud software development lifecycle
10/13/14
MonitorProvisionDeployTestBuildCode
AWS Elastic Beanstalk
AWS OpsWorks
Amazon
CloudWatch
AWS
CloudFormation
?
11. AWS Government, Education, and Nonprofit Symposium
Washington, DC I June 25-26, 2015
Source control
Private Git repositories hosted on Amazon S3
• Full Git compatibility (use with existing tools)
• All the benefits of the cloud
(scalable, durable, reliable, low pay-as-you-
go pricing)
• No size limits on repositories (store binary
files)
• Online code tools with browse, edit, diff
10/13/14
13. AWS Government, Education, and Nonprofit Symposium
Washington, DC I June 25-26, 2015
Continuous delivery
Customizable release automation, with integrated build and test
• Model and visualize custom release workflow
(source build beta gamma prod)
• Automate builds, tests, and deployments
• Enforce custom rules, approvals, and gates
• Integrate with third-party and custom tools
10/13/14
14.
15. AWS Government, Education, and Nonprofit Symposium
Washington, DC I June 25-26, 2015
Deployment
Coordinate software updates to fleets of EC2 instances
• Rolling updates for no downtime
• Deployment health checks and easy rollback
• Auto Scaling integration
• Works with any application
• Reuse existing setup tools
(Bash, Windows PowerShell, Chef, Puppet…)
10/13/14
17. AWS Government, Education, and Nonprofit Symposium
Washington, DC I June 25-26, 2015
Cloud software development lifecycle
10/13/14
MonitorProvisionDeployTestBuildCode
Elastic Beanstalk
OpsWorks
CloudWatchCloudFormationCodeDeploy
CodeCommit CodePipeline
19. AWS Government, Education, and Nonprofit Symposium
Washington, DC I June 25-26, 2015
Pain points
• Unit tests incomplete
• Mock tests maintenance
• Expensive test environment
• Test environment ≠ production
• Deployment cycles
20. AWS Government, Education, and Nonprofit Symposium
Washington, DC I June 25-26, 2015
On-demand
Pay as you go
Elastic
21. AWS Government, Education, and Nonprofit Symposium
Washington, DC I June 25-26, 2015
=
Programmable platform
22.
23.
24. AWS Government, Education, and Nonprofit Symposium
Washington, DC I June 25-26, 2015
If you can program it
you can automate it
25. AWS Government, Education, and Nonprofit Symposium
Washington, DC I June 25-26, 2015
A lot of options…
• Configuration management systems
– Puppet
– Chef
– Saltstack
• Deployment frameworks
– CodeDeploy
– Elastic Beanstalk
– OpsWorks
– Ansible
– Fabric
– Capistrano
• Infrastructure management
– CloudFormation
• Containers
– Amazon EC2 Container Service
26. AWS Government, Education, and Nonprofit Symposium
Washington, DC I June 25-26, 2015
Bake an image Configure dynamically
Time-consuming configuration
(startup time)
Static configurations (less change
management)
Bootstrapping
27. AWS Government, Education, and Nonprofit Symposium
Washington, DC I June 25-26, 2015
Bake an image Configure dynamically
Continuous deployment (latest
code)
Environment specific (dev-test-
prod)
Bootstrapping
28. AWS Government, Education, and Nonprofit Symposium
Washington, DC I June 25-26, 2015
AWS Government, Education, and Nonprofit Symposium
Washington, DC I June 25-26, 2015
Stack-based deployment service
AWS CloudFormation
38. AWS Government, Education, and Nonprofit Symposium
Washington, DC I June 25-26, 2015
Continuous deployment
Small, frequent changes constantly
integrating into production
40. AWS Government, Education, and Nonprofit Symposium
Washington, DC I June 25-26, 2015
Iteration
=
Modify the system to better meet the
expectations of your users
41. AWS Government, Education, and Nonprofit Symposium
Washington, DC I June 25-26, 2015
11.6 sec.
Mean time between
deployments
(weekday)
1,079
Maximum number of
deployments in a
single hour
10,000
Mean number of
hosts simultaneously
receiving a
deployment
30,000
Maximum number of
hosts simultaneously
receiving a
deployment
Deployments at
Amazon.com
(in 2011)
42. AWS Government, Education, and Nonprofit Symposium
Washington, DC I June 25-26, 2015
Software deploy
≠
Product launch
43. AWS Government, Education, and Nonprofit Symposium
Washington, DC I June 25-26, 2015
Data-driven
architectures
51. AWS Government, Education, and Nonprofit Symposium
Washington, DC I June 25-26, 2015
Speed and agility
Experiment
often
Fail quickly at a
low cost
More
innovation
Experiment
infrequently
Failure is
expensive
Less innovation
On-premises
52. AWS Government, Education, and Nonprofit Symposium
Washington, DC I June 25-26, 2015
AWS Government, Education, and Nonprofit Symposium
Washington, DC I June 25-26, 2015
Democrats.org in AWS
Nick Gaw
Alberto Manrique
Sunil Chopra
61. AWS Government, Education, and Nonprofit Symposium
Washington, DC I June 25-26, 2015
Thank You.
This presentation will be loaded to SlideShare the week following the Symposium.
http://www.slideshare.net/AmazonWebServices
AWS Government, Education, and Nonprofit Symposium
Washington, DC I June 25-26, 2015
Notas del editor
Benefits
Smaller teams
Speed and agility
SOA
Ownership and accountability
- CodeDeploy launched last year and is available to all
- we will aggressively expanding to additional regions
- CodeCommit and CodePipeline will be coming soon
- register on the website if you're interested in private beta access, and we'll try to get you into one of the pre-launch waves
All canonical software life cycles were designed by people who build installed software
Last year, 50 million deployments – 1.5 deployments per second!
No authorization required, Detect problems quickly, gain confidence
Que ce soit iteration ou pivot, pas le choix, il faut innover