T3 - Deploy, manage, and scale your apps
-
Upload
amazon-web-services -
Category
Technology
-
view
2.538 -
download
2
description
Transcript of T3 - Deploy, manage, and scale your apps
![Page 1: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/1.jpg)
AWS Summit 2014
Deploy, Manage, and Scale Your Apps with OpsWorks and Elastic Beanstalk
Guy Ernest Solutions Architect @guyernest
![Page 2: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/2.jpg)
What you will learn in this session • How to choose among the AWS services that
can help you run applications more easily • How to get an application running using AWS
Elastic Beanstalk and AWS OpsWorks • How to use AWS CloudFormation templates to
document, version control, and share your application configuration
![Page 3: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/3.jpg)
1. Make dough 2. Roll and cut the dough 3. Separate donuts from holes 4. Let the dough rise 5. Prepare the glaze 6. Frying time! 7. Let them dry 8. Apply glaze 9. Add sprinkles (optional)
flickr.com/photos/noriqnub/7127567413
![Page 4: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/4.jpg)
It’s not just deployments… • How do I scale my environment? • What is i-dc4297f2 used for? • How do I know when my application is
unhealthy? • Where do I get logs? • Who has SSH access?
![Page 5: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/5.jpg)
You need to deliver resilient applications with less work
Source: http://xkcd.com/844/
![Page 6: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/6.jpg)
AWS Elastic Beanstalk
AWS OpsWorks
AWS CloudFormation
Application Container Application Automation Templated Provisioning
![Page 7: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/7.jpg)
Jane Doe, Elastic Beanstalk developer
![Page 8: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/8.jpg)
Jane Doe, Elastic Beanstalk developer • Developer • Builds web apps, APIs, and handles some
background processing workloads • Needs some flexibility to customize her app
environments and get it fast to testing • Wants simple API to monitor, view logs, scale,
and deploy her apps
![Page 9: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/9.jpg)
The demonstration • A Massive Voting App
using HTML, Java and Node.js
• Uses Elastic Load Balancing and Amazon DynamoDB
![Page 10: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/10.jpg)
![Page 11: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/11.jpg)
![Page 12: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/12.jpg)
![Page 13: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/13.jpg)
![Page 14: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/14.jpg)
![Page 15: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/15.jpg)
![Page 16: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/16.jpg)
![Page 17: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/17.jpg)
![Page 18: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/18.jpg)
![Page 19: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/19.jpg)
![Page 20: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/20.jpg)
![Page 21: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/21.jpg)
![Page 22: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/22.jpg)
![Page 23: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/23.jpg)
![Page 24: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/24.jpg)
![Page 25: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/25.jpg)
![Page 26: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/26.jpg)
![Page 27: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/27.jpg)
![Page 28: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/28.jpg)
Elastic Beanstalk Supports…
Java PHP Python Ruby .NET Node.js
![Page 29: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/29.jpg)
Deploy Your App for Test
Alert
Log
Mon
App
AZ
http://your-app.elasticbeanstalk.com
![Page 30: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/30.jpg)
Deploy Your App for Scale
Alert
Log
Mon
App
AZ
ELB
http://your-app.elasticbeanstalk.com
![Page 31: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/31.jpg)
Deploy Your Background Processing App
Alert
Log
Mon
App
AZ
Amazon SQS queue Producers
![Page 32: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/32.jpg)
Deploy With Tools You Know
Alert
Log
Mon
App
AZ
ELB
http://your-app.elasticbeanstalk.com
v1.1 V1.2b V1.0
![Page 33: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/33.jpg)
John Doe, AWS OpsWorks Developer
![Page 34: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/34.jpg)
John Doe, AWS OpsWorks Developer • Developer • Builds apps with broad architectural patterns
and software; e.g., MongoDB and Solr • Needs a high degree of flexibility to customize
app environments • Wants APIs to control all aspects of application
operations including deployments and scaling
![Page 35: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/35.jpg)
Benefits • Any architecture • Configuration as code • Automation to run at scale • Control any component
![Page 36: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/36.jpg)
Deployments • Application deployment from your favorite
repositories • Supports patterns such as 1-box deployments • Run scripts on-demand for runbook automation • Restrict deployment and ssh access to specific
users
![Page 37: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/37.jpg)
Dynamic Configuration
![Page 38: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/38.jpg)
Dynamic Configuration
![Page 39: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/39.jpg)
Dynamic Configuration
![Page 40: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/40.jpg)
Dynamic Configuration
![Page 41: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/41.jpg)
Dynamic Configuration
![Page 42: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/42.jpg)
Dynamic Configuration
![Page 43: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/43.jpg)
Dynamic Configuration
![Page 44: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/44.jpg)
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 45: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/45.jpg)
“White board you environment”
![Page 46: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/46.jpg)
![Page 47: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/47.jpg)
Model your application
![Page 48: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/48.jpg)
Manage Your Instances
![Page 49: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/49.jpg)
![Page 50: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/50.jpg)
![Page 51: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/51.jpg)
![Page 52: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/52.jpg)
Deploy your Apps
![Page 53: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/53.jpg)
![Page 54: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/54.jpg)
Protect your environment
![Page 55: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/55.jpg)
![Page 56: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/56.jpg)
AWS CloudFormation: Model Your App
• Document, version control, and share your applications and infrastructure as a JSON document
• Provision app and other AWS resources (Amazon VPC, DynamoDB, etc.) from a template
• Repeatable, reliable deployments for test/dev/prod in any AWS region
![Page 57: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/57.jpg)
Elastic Beanstalk or AWS OpsWorks Resource
App
EL
B
AZ
your-app.elasticbeanstalk.com
Alert
Log
Mon
![Page 58: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/58.jpg)
Database Resources
Users Table (DynamoDB)
MySQL Primary (RDS)
App
EL
B
AZ
your-app.elasticbeanstalk.com
Alert
Log
Mon
![Page 59: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/59.jpg)
Object Storage and Security Resources
Users Table (DynamoDB)
MySQL Primary (RDS)
App Storage (S3)
IAM Instance Profile
App
EL
B
AZ
your-app.elasticbeanstalk.com
Alert
Log
Mon
![Page 60: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/60.jpg)
Deployed as an AWS CloudFormation Stack
Users Table (Amazon
DynamoDB)
MySQL Primary (Amazon RDS)
App Storage (Amazon S3)
IAM Instance Profile
App
EL
B
AZ
your-app.elasticbeanstalk.com
Alert
Log
Mon
![Page 61: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/61.jpg)
Modeled in a Template File
Users Table (Amazon
DynamoDB)
MySQL Primary (Amazon RDS)
App Storage (Amazon S3)
IAM Instance Profile
App
EL
B
AZ
your-app.elasticbeanstalk.com
Alert
Log
Mon
AWS CloudFormation
Template
![Page 62: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/62.jpg)
?$ $0 + $0 + $0 = $0
![Page 63: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/63.jpg)
What we discussed • How to choose among the AWS services that
can help you run applications more easily • How to get an application running using Elastic
Beanstalk and AWS OpsWorks • How to use AWS CloudFormation templates to
document, version control, and share your application configuration
![Page 64: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/64.jpg)
Learn More Get started with Elastic Beanstalk http://amzn.to/1dh8QkU Follow us @aws_eb Get started with AWS OpsWorks http://amzn.to/1bSHOPN Follow us @AWSOpsWorks Get started with AWS CloudFormation http://amzn.to/1m11Z3K Follow us at @AWSCloudFormer
![Page 65: T3 - Deploy, manage, and scale your apps](https://reader035.fdocuments.net/reader035/viewer/2022081602/54b6c8104a795958098b456e/html5/thumbnails/65.jpg)
Thank You!
AWS EXPERT? GET CERTIFIED! aws.amazon.com/certification Guy Ernest
Solutions Architect @guyernest