[awsマイスターシリーズ] aws elastic beanstalk -python編-

Download [AWSマイスターシリーズ] AWS Elastic Beanstalk -Python編-

Post on 10-Jun-2015

3.007 views

Category:

Technology

6 download

Embed Size (px)

TRANSCRIPT

  • 1. AWSReloaded AWS Elastic Beanstalk Python 2012.12.17 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.

2. Agenda Elastic Beanstalk? Elastic Beanstalk Python Python 2 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 3. Agenda Elastic Beanstalk? Elastic Beanstalk Python Python 3 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 4. Elastic Beanstalk WEB ELBRDS Instance Elastic LoadAmazon RDS Balancer() WAR deploy! InstanceAuto scaling Group CloudWatch4 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 5. AWS Elastic Beanstalk Beanstalk = Web http://www.slideshare.net/AmazonWebServicesJapan/20120416-aws-meisterreloadedawselasticbeanstalkpublic-126626305 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 6. AWS Elastic Beanstalk / Java Apache +Tomcat6,Apache+ Tomcat7 .NET IIS7.5, IIS8 PHPApache + mod_php Python Apache + mod_wsgi Ruby Nginx + Passenger6 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 7. AWS Elastic Beanstalk VM40 7 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 8. AWS Elastic Beanstalk Web WARZIP AWS Management Console Eclipse8 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 9. AWS ManagementConsole AWS Toolkit for Eclipse9 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 10. CloudWatchCloudWatch10 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 11. EventSNS11 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 12. Elastic BeanstalkEC2ELBRDSAWS12 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 13. AgendaElastic Beanstalk? Elastic Beanstalk Python Python 13 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 14. 14 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 15. ApplicationEnvironmentVersion URLEnvironment Configuration WAR/ZIPWAR/ZIPEnvironment URLEnvironment Configuration WAR/ZIPWAR/ZIPEnvironmentWAR/ZIP URLEnvironment Configuration Configuration Template15 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 16. Application ApplicationEnvironmentVersion WAR/ZIP Environment URL URLXXX.elasticbeanstalk.com EC2ELB 1S316 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 17. Version Web S3 VersionWAR/ZIPEnvironment 17 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 18. ApplicationInstanceAmazon RDS()Elastic LoadBalancerInstanceAmazon S3 Auto scaling Group EmailAmazon Notification CloudWatch18 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 19. Elastic Beanstalk -(environment)-19 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 20. Server LoadBalancer ELBAuto Scaling Database RDSJava, Python, Ruby)Notifications Container 20 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 21. Server (1min or 5min) AMILoad Balancer (http, https) SSL 21 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 22. Auto Scaling / AZ(AZAZ) Database RDS () DB (environmentRDS) DB Multi-AZ22 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 23. Notifications Container S3/ AWS AWS 23 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 24. Elastic Beanstalk-eb-24 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 25. eb2012/6eb ElasticBeanstalkCLI Python based E.g. eb initeb is NOT APICLI elastic-beanstalk-describe-applications elastic-beanstalk-* Ruby based25 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 26. eb eb init eb start eb status eb update eb stop eb delete 26 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 27. Elastic Beanstalk -RDS-27 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 28. Elastic BeanstalkRDS2012/8RDS(2012/12).NETRDSRDS()28 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 29. Elastic BeanstalkRDS29 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 30. Elastic Beanstalk --30 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 31. 2012/10EC2()2012/12.NETyaml /.ebextensions/*.config gitpackages:yum: postfix postfix: 2.6.6 commands:01prepare:command: scripts/prepare.sh31 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 32. Packages yumrpmSources (tar)Files Users Groups http://docs.amazonwebservices.com/elasticbeanstalk/latest/dg/customize-containers.html32 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 33. Commands Container commands Services serviceOptions settings namespace namespace http://docs.amazonwebservices.com/elasticbeanstalk/latest/dg/comma nd-options.html33 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 34. Elastic Beanstalk-VPC-34 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 35. VPCElastic BeanstalkVPC2012/12.NETELBEC2subnet35 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 36. Elastic BeanstalkJavaPythonRuby ebRDS VPC Java Tomcat6, Tomcat7 .NET IIS7.5, IIS8 PHPApache + mod_php Python Apache + mod_wsgi Ruby Nginx + Passenger36 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 37. AgendaElastic Beanstalk? Elastic Beanstalk Python Python 37 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 38. PythonElastic Beanstalk Application Instance Amazon RDS() Elastic Load Balancer InstanceAmazon S3Auto scaling GroupEmail AmazonNotificationCloudWatchApache+mod_wsgi supervisord38 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. 39. supervisord apachesupervisord