Provisioning & Deploy on AWS

Download Provisioning & Deploy on AWS

Post on 26-Jan-2015

109 views

Category:

Technology

6 download

DESCRIPTION

AWS Black Belt Tech Webinar 2014 () Provisioning & Deploy on AWS

TRANSCRIPT

  • 1. Provisioning & Deploy on AWS AWS Black Belt Tech Webinar 2014 ()

2. 2 3. 3 4. 4 5. 11 5 6. Build Measure Learn 6 7. 7 8. 0 50 100 150 200 250 300 2007 2008 2009 2010 2011 2012 2013 9 24 48 61 82 159 280 AWS 8 9. 9 10. 11.6 1,079 1 10,000 1 30,000 1 AMAZON.COM 10 11. 11 !! 12. 12 13. Infrastructure as Code 13 14. Infrastructure as Code 14 15. Infrastructure as Code 15 16. 16 17. () AutoScaling 17 (=) 18. 18 19. x = ?? 19 20. 1 20 21. 2 21 22. 3 22 23. 4 = 23 24. 5 (^_^;) ( )!! 24 25. 6 25 26. () 26 27. 7 27 28. () 28 29. 29 30. 30 31. (ROI) 31 32. () 32 33. 33 34. PO (63) 4 35. 5R Rapid Reliable Repeatable Reduce Risk Roll back 35 36. 36 37. 37 38. 38 39. Just in Time 39 40. 40 41. () 41 42. q q q q AutoScaling qAZ q q q EL B q (RDSDynamoDB) q q q ( ) qAMI qAWS OS qOS qAWS qELBAutoScaling qEBSS3 q( ) 42 43. () 43 44. (XP) 44 45. A successful Git branching model (http://nvie.com/posts/a-successful-git- branching-model/) 45 46. 5 15 1 2 1 46 47. 47 48. 48 49. 49 50. 50 51. 51 52. CI CI CI / CI / CI CI CI CI CI 52 53. on AWS CI 53 54. 54 55. / 55 56. 56 57. LB LB LB 57 58. 2 58 59. 59 60. CapistranoFabricMaven Elastic Beanstalk & OpsWorks 60 61. 1,000 1,000 61 62. Web (Amazon EC2) (Amazon RDS) v1.1 v1.1 v1.1 v1.1 v1.2 v1.2 v1.2 v1.2 (CloudWatch) 62 63. Amazon Route 53 EC2 Instances ELB EC2 Instances ELB 90% 10% DynamoDB MySQL RDS Instance ElastiCache Cache Node Route53 API 63 64. v1.1 v1.1 v1.1 v1.1 v1.1 v1.1 v1.1 v1.1 v1.2 v1.2 v1.2.1 v1.2.1 v1.2.2 v1.2.2 DNS (Amazon route 53) Web (Amazon EC2) (Amazon RDS) 90% 5% 3% 2% 64 65. Elastic Beanstalk 65 66. ELB + Web(DB) Auto Scaling S3 VPC 66 67. 67 68. Elastic Beanstalk CI CI 68 69. Elastic Beanstalk + Docker Developer 1. docker push4. docker pull 2. deploy registry registry registry registry Region app app app registry app 3. docker run registry 5. docker stop registry Docker registry container with AWS credentials 69 70. 70 71. 71 72. 72 73. 73 74. VPC 10.0.0.0/16 Availability Zone - C Availability Zone - A Internet Anyone Internet Gateway Public Subnet 10.0.0.0/24 Public Subnet 10.0.2.0/24 Private Subnet 10.0.1.0/24 Private Subnet 10.0.3.0/24 AMI Amazon RDS Amazon RDS AZ-A-WP1 10.0.0.6 EC2 Instance EC2 Instance AZ-B-WP2 10.0.2.8 74 75. AWS Elastic Beanstalk OpsWorks CloudFormation EC2 75 76. Elastic Beanstalk OpsWorks Cloud Formation Amazon EC2 (Chef Capistrano) Cookbook 76 CloudFormation Elastic Beanstalk OpsWorks 77. AWS OpsWorks AWS DevOps Chef-Solo(Chef) Elastic Beanstalk 77 78. 78 User AWS Management Console Stack Load Balancer App Server Database DB Web /App Web /App LB (JSON) 79. CloudFormation JSON 79 80. AMI3 AMI OS AMI OS AMI OS 80 81. AMI3 1. 2. OS 3. OS Packer + Chef-Solo CI 81 82. Chef Amazon Linux EC2 Instance Chef Client Custom AMI ami-1ab34567 Amazon Linux and Chef Agent installed Chef Client EC2 Chef Server EBS S3 Amazon Linux Running EC2 Instance Loaded with Applications Installed by Chef Chef Client Monitoring Agent PHP Nginx Other Libraries Cookbook Attribute 82 83. Chef 83 84. 84 85. IF YOU CAN PROGRAM IT YOU CAN AUTOMATE IT 85 86. Chef 86 87. VPC Availability Zone - C Availability Zone - A Internet Anyone Internet Gateway Public Subnet Public Subnet Private Subnet Private Subnet AMI Amazon RDS Amazon RDS Graphite 87 88. VPC Availability Zone - C Availability Zone - A Internet Anyone Internet Gateway Public Subnet Public Subnet Private Subnet Private Subnet AMI Amazon RDS Amazon RDS CloudFormation Graphite 88 89. VPC Availability Zone - C Availability Zone - A Internet Anyone Internet Gateway Public Subnet Public Subnet Private Subnet Private Subnet AMI Amazon RDS Amazon RDS Graphite GitHub 89 90. VPC Availability Zone - C Availability Zone - A Internet Anyone Internet Gateway Public Subnet Public Subnet Private Subnet Private Subnet AMI Amazon RDS Amazon RDS Graphite CI 90 91. VPC Availability Zone - C Availability Zone - A Internet Anyone Internet Gateway Public Subnet Public Subnet Private Subnet Private Subnet AMI Amazon RDS Amazon RDS Graphite API S3 91 92. VPC Availability Zone - C Availability Zone - A Internet Anyone Internet Gateway Public Subnet Public Subnet Private Subnet Private Subnet AMI Amazon RDS Amazon RDS Graphite EC2AMIChef Server S3 92 93. 93 94. API AWS CloudFormation / Elastic Beanstalk / OpsWorks 94

Recommended

View more >