AWS Elastic Beanstalk and Docker
-
Upload
docker-inc -
Category
Documents
-
view
303 -
download
4
Transcript of AWS Elastic Beanstalk and Docker
![Page 1: AWS Elastic Beanstalk and Docker](https://reader034.fdocuments.net/reader034/viewer/2022052602/55a060621a28ab372e8b4732/html5/thumbnails/1.jpg)
AWS Elastic Beanstalk and Docker:
High Fidelity, High Velocity
Deployments in the Cloud
Evan Brown
@evandbrown
Senior Developer Advocate, AWS
![Page 2: AWS Elastic Beanstalk and Docker](https://reader034.fdocuments.net/reader034/viewer/2022052602/55a060621a28ab372e8b4732/html5/thumbnails/2.jpg)
a quick thank you
![Page 3: AWS Elastic Beanstalk and Docker](https://reader034.fdocuments.net/reader034/viewer/2022052602/55a060621a28ab372e8b4732/html5/thumbnails/3.jpg)
AWS Elastic Beanstalk and Docker: High
Fidelity, High Velocity Deployments in the
CloudEvan Brown
Senior Developer Advocate, Amazon Web Services
![Page 4: AWS Elastic Beanstalk and Docker](https://reader034.fdocuments.net/reader034/viewer/2022052602/55a060621a28ab372e8b4732/html5/thumbnails/4.jpg)
Elastic Beans Talk
![Page 5: AWS Elastic Beanstalk and Docker](https://reader034.fdocuments.net/reader034/viewer/2022052602/55a060621a28ab372e8b4732/html5/thumbnails/5.jpg)
Develop
DeployManage & Scale
![Page 6: AWS Elastic Beanstalk and Docker](https://reader034.fdocuments.net/reader034/viewer/2022052602/55a060621a28ab372e8b4732/html5/thumbnails/6.jpg)
Develop
DeployManage & Scale
![Page 7: AWS Elastic Beanstalk and Docker](https://reader034.fdocuments.net/reader034/viewer/2022052602/55a060621a28ab372e8b4732/html5/thumbnails/7.jpg)
Develop
DeployManage & Scale
Spring&
Struts&
Composer&
Laravel&
MVC&
Flask&
Django&
Express&
Rails&
Sinatra&
…
![Page 8: AWS Elastic Beanstalk and Docker](https://reader034.fdocuments.net/reader034/viewer/2022052602/55a060621a28ab372e8b4732/html5/thumbnails/8.jpg)
Develop
DeployManage & Scale
![Page 9: AWS Elastic Beanstalk and Docker](https://reader034.fdocuments.net/reader034/viewer/2022052602/55a060621a28ab372e8b4732/html5/thumbnails/9.jpg)
leverage the ecosystem
VPC&
RDS&
ElastiCache&
DynamoDB&
CloudFormation&
Auto Scaling&
Multiple Availability Zones&
S3&
CloudWatch&
…
Develop
DeployManage & Scale
![Page 10: AWS Elastic Beanstalk and Docker](https://reader034.fdocuments.net/reader034/viewer/2022052602/55a060621a28ab372e8b4732/html5/thumbnails/10.jpg)
Develop
DeployManage & Scale
leverage the ecosystem
VPC – fine-grained controls; extend on-premises
RDS&
ElastiCache&
DynamoDB&
CloudFormation&
Auto Scaling&
Multiple Availability Zones&
S3&
CloudWatch&
…
![Page 11: AWS Elastic Beanstalk and Docker](https://reader034.fdocuments.net/reader034/viewer/2022052602/55a060621a28ab372e8b4732/html5/thumbnails/11.jpg)
leverage the ecosystem
VPC – fine-grained controls; extend on-premises
![Page 12: AWS Elastic Beanstalk and Docker](https://reader034.fdocuments.net/reader034/viewer/2022052602/55a060621a28ab372e8b4732/html5/thumbnails/12.jpg)
Develop
DeployManage & Scale
leverage the ecosystem
VPC&
RDS – MySQL, PostgreSQL, Oracle, SQL Server
ElastiCache&
DynamoDB&
CloudFormation&
Auto Scaling&
Multiple Availability Zones&
S3&
CloudWatch&
…
![Page 13: AWS Elastic Beanstalk and Docker](https://reader034.fdocuments.net/reader034/viewer/2022052602/55a060621a28ab372e8b4732/html5/thumbnails/13.jpg)
leverage the ecosystem
VPC&
RDS&
ElastiCache – Redis and Memcached
DynamoDB&
CloudFormation&
Auto Scaling&
Multiple Availability Zones&
S3&
CloudWatch&
…
Develop
DeployManage & Scale
![Page 14: AWS Elastic Beanstalk and Docker](https://reader034.fdocuments.net/reader034/viewer/2022052602/55a060621a28ab372e8b4732/html5/thumbnails/14.jpg)
leverage the ecosystem
VPC&
RDS&
ElastiCache&
DynamoDB&
CloudFormation&
Auto Scaling&
Multiple Availability Zones&
S3&
CloudWatch&
…
Develop
DeployManage & Scale
![Page 15: AWS Elastic Beanstalk and Docker](https://reader034.fdocuments.net/reader034/viewer/2022052602/55a060621a28ab372e8b4732/html5/thumbnails/15.jpg)
Develop
DeployManage & Scale
just add a yaml file to your app
![Page 16: AWS Elastic Beanstalk and Docker](https://reader034.fdocuments.net/reader034/viewer/2022052602/55a060621a28ab372e8b4732/html5/thumbnails/16.jpg)
quick detour
Free
So many snacks
So many Solutions Architects
Training & Tech Talks
Through June 27
http://bit.ly/awsloft
![Page 17: AWS Elastic Beanstalk and Docker](https://reader034.fdocuments.net/reader034/viewer/2022052602/55a060621a28ab372e8b4732/html5/thumbnails/17.jpg)
Develop
DeployManage & ScaleAPI
![Page 18: AWS Elastic Beanstalk and Docker](https://reader034.fdocuments.net/reader034/viewer/2022052602/55a060621a28ab372e8b4732/html5/thumbnails/18.jpg)
Develop
DeployManage & Scale
![Page 19: AWS Elastic Beanstalk and Docker](https://reader034.fdocuments.net/reader034/viewer/2022052602/55a060621a28ab372e8b4732/html5/thumbnails/19.jpg)
Develop
DeployManage & Scale
![Page 20: AWS Elastic Beanstalk and Docker](https://reader034.fdocuments.net/reader034/viewer/2022052602/55a060621a28ab372e8b4732/html5/thumbnails/20.jpg)
load balanced, auto scaled
Develop
DeployManage & ScaleA
pp
EL
B
AZ
your-app.elasticbeanstalk.com
Alert
Log
Mon
![Page 21: AWS Elastic Beanstalk and Docker](https://reader034.fdocuments.net/reader034/viewer/2022052602/55a060621a28ab372e8b4732/html5/thumbnails/21.jpg)
single instance
Develop
DeployManage & ScaleA
pp
AZ
your-app.elasticbeanstalk.com
Alert
Log
Mon
![Page 22: AWS Elastic Beanstalk and Docker](https://reader034.fdocuments.net/reader034/viewer/2022052602/55a060621a28ab372e8b4732/html5/thumbnails/22.jpg)
queue-driven worker
Develop
DeployManage & ScaleA
pp
Qu
eu
e
AZ
producer
Alert
Log
Mon
![Page 23: AWS Elastic Beanstalk and Docker](https://reader034.fdocuments.net/reader034/viewer/2022052602/55a060621a28ab372e8b4732/html5/thumbnails/23.jpg)
Develop
DeployManage & Scale
![Page 24: AWS Elastic Beanstalk and Docker](https://reader034.fdocuments.net/reader034/viewer/2022052602/55a060621a28ab372e8b4732/html5/thumbnails/24.jpg)
![Page 25: AWS Elastic Beanstalk and Docker](https://reader034.fdocuments.net/reader034/viewer/2022052602/55a060621a28ab372e8b4732/html5/thumbnails/25.jpg)
![Page 26: AWS Elastic Beanstalk and Docker](https://reader034.fdocuments.net/reader034/viewer/2022052602/55a060621a28ab372e8b4732/html5/thumbnails/26.jpg)
App.zip
Elastic Beanstalk
App.zip
![Page 27: AWS Elastic Beanstalk and Docker](https://reader034.fdocuments.net/reader034/viewer/2022052602/55a060621a28ab372e8b4732/html5/thumbnails/27.jpg)
App.zip
Elastic Beanstalk
App.zip
Python 3
WSGI entrypoint:
app.py
Python
libs
![Page 28: AWS Elastic Beanstalk and Docker](https://reader034.fdocuments.net/reader034/viewer/2022052602/55a060621a28ab372e8b4732/html5/thumbnails/28.jpg)
App.zip
Python
2.7.5
Python
libs
WSGI entrypoint:
application.py
Elastic Beanstalk
App.zip
Python 3
WSGI entrypoint:
app.py
Python
libs
![Page 29: AWS Elastic Beanstalk and Docker](https://reader034.fdocuments.net/reader034/viewer/2022052602/55a060621a28ab372e8b4732/html5/thumbnails/29.jpg)
![Page 30: AWS Elastic Beanstalk and Docker](https://reader034.fdocuments.net/reader034/viewer/2022052602/55a060621a28ab372e8b4732/html5/thumbnails/30.jpg)
App.zip
Python 3
WSGI entrypoint:
app.py
Python
libs
App.zip
Python
2.7.5
Python
libs
WSGI entrypoint:
application.py
Elastic Beanstalk
Developer can build app to interface, or
customize the Beanstalk interface
![Page 31: AWS Elastic Beanstalk and Docker](https://reader034.fdocuments.net/reader034/viewer/2022052602/55a060621a28ab372e8b4732/html5/thumbnails/31.jpg)
![Page 32: AWS Elastic Beanstalk and Docker](https://reader034.fdocuments.net/reader034/viewer/2022052602/55a060621a28ab372e8b4732/html5/thumbnails/32.jpg)
Enable high fidelity, high velocity
deployments in Elastic Beanstalk
You own the runtime
![Page 33: AWS Elastic Beanstalk and Docker](https://reader034.fdocuments.net/reader034/viewer/2022052602/55a060621a28ab372e8b4732/html5/thumbnails/33.jpg)
App.zip
Elastic Beanstalk
Do
cker
App.zip
Python 3
WSGI entrypoint:
app.py
Python
libs
![Page 34: AWS Elastic Beanstalk and Docker](https://reader034.fdocuments.net/reader034/viewer/2022052602/55a060621a28ab372e8b4732/html5/thumbnails/34.jpg)
App.zip
Elastic Beanstalk
Do
ck
er
App.zip
Python 3
WSGI entrypoint:
app.py
Python
libs
![Page 35: AWS Elastic Beanstalk and Docker](https://reader034.fdocuments.net/reader034/viewer/2022052602/55a060621a28ab372e8b4732/html5/thumbnails/35.jpg)
App.zip
Python 3
WSGI entrypoint:
app.py
Python
libs
Deploy your container 3 ways
![Page 36: AWS Elastic Beanstalk and Docker](https://reader034.fdocuments.net/reader034/viewer/2022052602/55a060621a28ab372e8b4732/html5/thumbnails/36.jpg)
App.zip
Python 3
WSGI entrypoint:
app.py
Python
libs
Dockerfile
• Image will be built on
each instance
![Page 37: AWS Elastic Beanstalk and Docker](https://reader034.fdocuments.net/reader034/viewer/2022052602/55a060621a28ab372e8b4732/html5/thumbnails/37.jpg)
App.zip
Python 3
WSGI entrypoint:
app.py
Python
libs
Dockerrun.aws.json
• Manifest that describes
how to run container
![Page 38: AWS Elastic Beanstalk and Docker](https://reader034.fdocuments.net/reader034/viewer/2022052602/55a060621a28ab372e8b4732/html5/thumbnails/38.jpg)
App.zip
Python 3
WSGI entrypoint:
app.py
Python
libs
Dockerrun.aws.json
![Page 39: AWS Elastic Beanstalk and Docker](https://reader034.fdocuments.net/reader034/viewer/2022052602/55a060621a28ab372e8b4732/html5/thumbnails/39.jpg)
Zip with app context
App.zip
-------------------------------
|-- Dockerfile
|-- Dockerrun.aws.json
Dockerfile
Dockerrun.aws.json
![Page 40: AWS Elastic Beanstalk and Docker](https://reader034.fdocuments.net/reader034/viewer/2022052602/55a060621a28ab372e8b4732/html5/thumbnails/40.jpg)
high fidelity, high velocity
App.zip
Elastic Beanstalk
Do
ck
er
App.zip
Local Dev (e.g., MacBook Pro)
Do
ck
er
App.zip
Python 3
WSGI entrypoint:
app.py
Python
libs
![Page 41: AWS Elastic Beanstalk and Docker](https://reader034.fdocuments.net/reader034/viewer/2022052602/55a060621a28ab372e8b4732/html5/thumbnails/41.jpg)
DEMO
![Page 42: AWS Elastic Beanstalk and Docker](https://reader034.fdocuments.net/reader034/viewer/2022052602/55a060621a28ab372e8b4732/html5/thumbnails/42.jpg)
Questions & Answers
• bit.ly/eb-dockercon
•@aws_eb
• bit.ly/awsloft