awsマイスターシリーズreloaded(aws beanstalk)

Download AWSマイスターシリーズReloaded(AWS Beanstalk)

Post on 24-May-2015

2.583 views

Category:

Technology

0 download

Embed Size (px)

TRANSCRIPT

  • 1. AWSAWS Elastic Beanstalk20120416 @c9katayama

2. 2011/11/22 IAMElastic Beanstalk http://docs.amazonwebservices.com/elasticbeanstalk/latest/dg/index.html?AWSHowTo.iam.html 3. 2012/3/20 PHP and Git Deployment for AWS Elastic BeanstalkPHP5.3Git 4. Agenda AWS Elastic Beanstalk HostManager Tips Copyright 2011 Amazon Web Services 5. AWS Elastic Beanstalk 6. AWS Elastic Beanstalk Beanstalk = Web JavaOpenJDK6,PHP 5.3 Tomcat67Apache(PHP) 7. AWS Elastic Beanstalk API ServletPHP Java:War PHP:ZIP or Git VM40 8. AWS Elastic Beanstalk Web WARZIP AWS Management Console Eclipse 9. AWS Management ConsoleAWS Toolkit forEclipse 10. 11. ApplicationEnvironmentVersion URL Environment Configuration WAR/ZIP WAR/ZIPEnvironment URL Environment Configuration WAR/ZIP WAR/ZIPEnvironment WAR/ZIP URL Environment ConfigurationConfiguration Template 12. Application ApplicationEnvironmentVersion WAR/ZIP Environment ConfigurationTemplate WAR URL URLXXX.elasticbeanstalk.com EC2ELB 1S3 13. Version Web S3 VersionWAR/ZIPEnvironment 14. URL EnvironmentElasticLoadBalanceingManagement SNS Console S3HM HM CloudWatchEC2EC2eclipse AutoScalingSecurity Group 15. HostManager 16. HostManager EC Ruby /opt/elasticbeanstalk/srv/hostmanager/lib/ OS userdata TomcatApacheThin(HostManagerWeb Bluepill HostManager 17. HostManager Web ELBWebWeb /_hostmanager/healthcheck URL EC2 HostManager 18. HostManager WAR/ZIP HTTP AES-256 Java->war PHP->htdocszip/_hostmanager/tasksPOSTHostManager 19. 20. AWS Toolkit for Eclipse http://aws.amazon.com/jp/eclipse/ EclipseAWS Eclipse IDE for Java EE Developers 3.6 or higher 21. AWS Web Beanstalk Web Tomcat Environment 22. Java -> EclipseManagement ConsolePHP -> GitManagement Console 23. Eclipse:WAR >Run As>Run on Server 24. Environment 25. Finish 26. Version S3 27. 28. Git Git AWS http://aws.amazon.com/code/6752709412171743 AWSDevTools-OneTimeSetupgit AWSDevTools-RepositorySetup AWS git aws.config AccessIDBeanstalk Apphttp://docs.amazonwebservices.com/elasticbeanstalk/latest/dg/create_deploy_PHP.html 29. Git git aws.push git zipS3 Hostmanagerzip Apachehtdocs->DEMO 30. AWS ManagementConsoleDeploy a Different Version 31. VersionWAR 32. Event 33. URL Environment VersionURLEnvironment Configuration WAR/ZIP WAR/ZIPURL Environment WAR/ZIPURLEnvironment Configuration WAR/ZIPEnvironment WAR/ZIPURLEnvironment Configuration 34. JavaGit gitwar WEB-INF/classes 35. 36. Environment / AZ AMI HTTP/HTTPS Stickey 37. (Java) HTTP(PHP) //permgen) Tomcat URL Fopen Zlib Display Erroes Max Exection Time 38. S3 39. Eclipse,ConsoleDEMO 40. 41. Relational Database Service(RDB) Oracle,MySQL Simple DB ElastiCachememcached) Simple Email Service() CloudFront Simple Queue Service() 42. DBSimpleDB Userdata 43. AMIIDBeanstalkAMI TomcatPHP OSChef/puppet 44. Tips 45. TipsSSH SSH 46. Tips1TomcatWAR OFF InstanceType ELBSSL APISSLEnvironmentELB 47. Elastic Beanstalk0 Environment AWS Amazon EC21$0.02/hr * 24 hours * 30 days$14.40t1.micro instanceElastic Load Balancer 1$0.025/hr * 24 hours * 30 days $18.00ELB Data Processing 15GB $0.008/GB * 15GB $0.12Elastic Block Store volume 8GB $0.10/GB * 8GB $0.80S3 Storage for WAR File 1GB$0.14/1GB + $0.01 PUT,GET$0.15Bandwidth In and Out15GB Inbound is free, 15 GB out * $1.80 $0.12 $35.27 48. cloud-init CloudFromation AMIAmazon VPC(Virtual Private Cloud)US-EAST 49. 50. BeanstalkJava/PHPEclipse/GitAWSAMI 51. Elastic Beanstalk