AWS Elastic Beanstalk and Docker

1,895 views

Published on

DockerCon 2014

Published in: Technology

AWS Elastic Beanstalk and Docker

  1. 1. AWS Elastic Beanstalk and Docker: High Fidelity, High Velocity Deployments in the Cloud Evan Brown @evandbrown Senior Developer Advocate, AWS
  2. 2. a quick shout out
  3. 3. AWS Elastic Beanstalk and Docker: High Fidelity, High Velocity Deployments in the Cloud Evan Brown Senior Developer Advocate, Amazon Web Services
  4. 4. Elastic Beans Talk
  5. 5. Develop Deploy Manage & Scale
  6. 6. Develop Deploy Manage & Scale
  7. 7. Develop Deploy Manage & Scale Spring& Struts& Composer& Laravel& MVC& Flask& Django& Express& Rails& Sinatra& …
  8. 8. Develop Deploy Manage & Scale
  9. 9. leverage the ecosystem VPC& RDS& ElastiCache& DynamoDB& CloudFormation& Auto Scaling& Multiple Availability Zones& S3& CloudWatch& … Develop Deploy Manage & Scale
  10. 10. Develop Deploy Manage & Scale leverage the ecosystem VPC – fine-grained controls; extend on-premises RDS& ElastiCache& DynamoDB& CloudFormation& Auto Scaling& Multiple Availability Zones& S3& CloudWatch& …
  11. 11. leverage the ecosystem VPC – fine-grained controls; extend on-premises
  12. 12. Develop Deploy Manage & Scale leverage the ecosystem VPC& RDS – MySQL, PostgreSQL, Oracle, SQL Server ElastiCache& DynamoDB& CloudFormation& Auto Scaling& Multiple Availability Zones& S3& CloudWatch& …
  13. 13. leverage the ecosystem VPC& RDS& ElastiCache – Redis and Memcached DynamoDB& CloudFormation& Auto Scaling& Multiple Availability Zones& S3& CloudWatch& … Develop Deploy Manage & Scale
  14. 14. leverage the ecosystem VPC& RDS& ElastiCache& DynamoDB& CloudFormation& Auto Scaling& Multiple Availability Zones& S3& CloudWatch& … Develop Deploy Manage & Scale
  15. 15. Develop Deploy Manage & Scale just add a yaml file to your app
  16. 16. quick detour Free So many snacks So many Solutions Architects Training & Tech Talks Through June 27 http://bit.ly/awsloft
  17. 17. Develop Deploy Manage & ScaleAPI
  18. 18. Develop Deploy Manage & Scale
  19. 19. Develop Deploy Manage & Scale
  20. 20. load balanced, auto scaled Develop Deploy Manage & Scale AppELB AZ your-app.elasticbeanstalk.com Alert Log Mon
  21. 21. single instance Develop Deploy Manage & Scale App AZ your-app.elasticbeanstalk.com Alert Log Mon
  22. 22. queue-driven worker Develop Deploy Manage & Scale AppQueue AZ producer Alert Log Mon
  23. 23. Develop Deploy Manage & Scale
  24. 24. App.zip Elastic Beanstalk App.zip
  25. 25. App.zip Elastic Beanstalk App.zip Python 3 WSGI entrypoint: app.py Python libs
  26. 26. App.zip Python 2.7.5 Python libs WSGI entrypoint: application.py Elastic Beanstalk App.zip Python 3 WSGI entrypoint: app.py Python libs
  27. 27. 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
  28. 28. Enable high fidelity, high velocity deployments in Elastic Beanstalk You own the runtime
  29. 29. App.zip Elastic Beanstalk Docker App.zip Python 3 WSGI entrypoint: app.py Python libs
  30. 30. App.zip Elastic Beanstalk Docker App.zip Python 3 WSGI entrypoint: app.py Python libs
  31. 31. App.zip Python 3 WSGI entrypoint: app.py Python libs Deploy your container 3 ways
  32. 32. App.zip Python 3 WSGI entrypoint: app.py Python libs Dockerfile • Image will be built on each instance
  33. 33. App.zip Python 3 WSGI entrypoint: app.py Python libs Dockerrun.aws.json • Manifest that describes how to run container
  34. 34. App.zip Python 3 WSGI entrypoint: app.py Python libs Dockerrun.aws.json
  35. 35. Zip with app context App.zip ------------------------------- |-- Dockerfile |-- Dockerrun.aws.json Dockerfile Dockerrun.aws.json
  36. 36. high fidelity, high velocity App.zip Elastic Beanstalk Docker App.zip Local Dev (e.g., MacBook Pro) Docker App.zip Python 3 WSGI entrypoint: app.py Python libs
  37. 37. DEMO
  38. 38. Questions & Answers • bit.ly/eb-dockercon • @aws_eb • bit.ly/awsloft

×