18
CloudFormationでドコまでイケる? 201208株式会社サーバーワークス 千 哲也 (@kachinat) 7JAWS-UG 札幌

20120827 第7回jaws ug札幌.key

Embed Size (px)

Citation preview

  • 1. CloudFormation 7 JAWS-UG 201208 (@kachina_t)

2. (@kachina_t) 201109 R&DAWS CloudFormationCopyright 2012 Serverworks Co, Ltd. All Rights Reserved. 2 3. 5 JAWS-UG LT 6 Asterisk Copyright 2012 Serverworks Co, Ltd. All Rights Reserved. 3 4. 5. 1. CloudFormation 2. 3. CDP 4. 5. 6. Copyright 2012 Serverworks Co, Ltd. All Rights Reserved. 6. CloudFormation URLhttp://goo.gl/LoIWM 7. 31 AmazonLinuxcloud-init2 AMI3 Copyright 2012 Serverworks Co, Ltd. All Rights Reserved. 7 8. Drupal Gollum Insoshi Joomla! Redmine Tracks WordPress LAMP Ruby on Rails URLhttp://goo.gl/HwiofCopyright 2012 Serverworks Co, Ltd. All Rights Reserved. 8 9. CDP 10. 17. ScheduledScaleOut@oko_chang CDP 11. 17. Scheduled Scale Out 10:00TV 220 URLhttp://goo.gl/GeBcWCopyright 2012 Serverworks Co, Ltd. All Rights Reserved.11 12. 17. Scheduled Scale Out 10:00TV 220 09:5510URLhttp://goo.gl/GeBcWCopyright 2012 Serverworks Co, Ltd. All Rights Reserved.12 13. 17. Scheduled Scale Out 10:00TV 220 API 09:5510URLhttp://goo.gl/GeBcWCopyright 2012 Serverworks Co, Ltd. All Rights Reserved.13 14. AMI CloudFormation AMI ID UTC ID // as-describe-scheduled-actions --region ap-northeast-1 --aws-credential-file /opt/aws/credential-file-pathURLhttps://gist.github.com/3433846Copyright 2012 Serverworks Co, Ltd. All Rights Reserved.14 15. cloud-init 1: #!/bin/bash 2: export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre 3: export AWS_AUTO_SCALING_HOME=/opt/aws/apitools/as 4: export PATH=$PATH:${AWS_AUTO_SCALING_HOME}/bin 5: cp /opt/aws/credential-file-path.template /opt/aws/credential-file-path 6: sed -i "s/^AWSAccessKeyId.*/AWSAccessKeyId=xxxxxxxxxxxxx/g" /opt/aws/credential-file-path 7: sed -i "s/^AWSSecretKey.*/AWSSecretKey=xxxxxxxxxxx/g" /opt/aws/credential-file-path 8: as-put-scheduled-update-group-action peak_action -g as_group_name 9: --region ap-northeast-1 10: --aws-credential-file /opt/aws/credential-file-path 11: --name "scale out" 12: --time "2012-08-28T18:55:00Z" 13: -min-size 10 14: -max-size 2015: shutdown -h now Copyright 2012 Serverworks Co, Ltd. All Rights Reserved.15 16. Amazon CloudFront Amazon Simple Storage Service (S3) Elastic Load InstancesRDS DB InstanceBalancer Standby (Multi-AZ) Amazon CloudWatchAuto ScalingCopyright 2012 Serverworks Co, Ltd. All Rights Reserved. 17. 1 CloudFormerExportAmazonLinuxcloud-init2 httpd.confchefAMI3 Copyright 2012 Serverworks Co, Ltd. All Rights Reserved. 17 18. Copyright 2012 Serverworks Co, Ltd. All Rights Reserved. 18