Upload
amazon-web-services
View
544
Download
1
Tags:
Embed Size (px)
Citation preview
© 2015, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Andy Troutman, Manager, AWS CodeDeploy
April 29, 2015
Getting Started with AWS
CodeDeploy
Software Deployment is Still a Hard Problem:
Cost/Complexity
Size of fleet
small, manual
process good
enough.
Software Deployment is Still a Hard Problem:
Cost/Complexity
Complexity grows
Customers grow
Team size grows
Need to automate
Application
“Any collection of content that you want to distribute
to your servers in a single deployment”
AppSpec file
os: linuxfiles:- source: Config/config.txt
destination: webapps/Config- source: source
destination: /webapps/myApphooks:BeforeInstall:
- location: Scripts/UnzipResourceBundle.sh- location: Scripts/UnzipDataBundle.sh
AfterInstall:- location: Scripts/RunResourceTests.sh
timeout: 180ApplicationStart:
- location: Scripts/RunFunctionalTests.shtimeout: 3600
ValidateService:- location: Scripts/MonitorService.sh
timeout: 3600runas: codedeployuser
AppSpec file
os: linuxfiles:- source: Config/config.txt
destination: webapps/Config- source: source
destination: /webapps/myApphooks:BeforeInstall:
- location: Scripts/UnzipResourceBundle.sh- location: Scripts/UnzipDataBundle.sh
AfterInstall:- location: Scripts/RunResourceTests.sh
timeout: 180ApplicationStart:
- location: Scripts/RunFunctionalTests.shtimeout: 3600
ValidateService:- location: Scripts/MonitorService.sh
timeout: 3600runas: codedeployuser
AppSpec file
os: linuxfiles:- source: Config/config.txt
destination: webapps/Config- source: source
destination: /webapps/myApphooks:BeforeInstall:
- location: Scripts/UnzipResourceBundle.sh- location: Scripts/UnzipDataBundle.sh
AfterInstall:- location: Scripts/RunResourceTests.sh
timeout: 180ApplicationStart:
- location: Scripts/RunFunctionalTests.shtimeout: 3600
ValidateService:- location: Scripts/MonitorService.sh
timeout: 3600runas: codedeployuser
v2 v1 v1 v1 v1 v1 v1 v1
v2 v2 v1 v1 v1 v1 v1 v1
v2 v2 v2 v2 v1 v1 v1 v1
v2 v2 v2 v2 v2 v2 v2 v2
One-at-a-timeMin. healthy hosts = 99%
[Custom]Min. healthy hosts = 75%
Half-at-a-timeMin. healthy hosts = 50%
All-at-onceMin. healthy hosts = 0
Deployment Config