gems, snakes and amazon forests by serhii borysov 7/6/2013
TRANSCRIPT
![Page 1: Gems, Snakes and Amazon forests by Serhii Borysov 7/6/2013](https://reader030.vdocument.in/reader030/viewer/2022032415/56649f075503460f94c1c9ab/html5/thumbnails/1.jpg)
Gems, Snakesand
Amazon forests
by Serhii Borysov 7/6/2013
![Page 2: Gems, Snakes and Amazon forests by Serhii Borysov 7/6/2013](https://reader030.vdocument.in/reader030/viewer/2022032415/56649f075503460f94c1c9ab/html5/thumbnails/2.jpg)
Why Gems?
![Page 3: Gems, Snakes and Amazon forests by Serhii Borysov 7/6/2013](https://reader030.vdocument.in/reader030/viewer/2022032415/56649f075503460f94c1c9ab/html5/thumbnails/3.jpg)
Why Snakes?
![Page 4: Gems, Snakes and Amazon forests by Serhii Borysov 7/6/2013](https://reader030.vdocument.in/reader030/viewer/2022032415/56649f075503460f94c1c9ab/html5/thumbnails/4.jpg)
Why Forests?
![Page 5: Gems, Snakes and Amazon forests by Serhii Borysov 7/6/2013](https://reader030.vdocument.in/reader030/viewer/2022032415/56649f075503460f94c1c9ab/html5/thumbnails/5.jpg)
Amazon Web Forests
![Page 6: Gems, Snakes and Amazon forests by Serhii Borysov 7/6/2013](https://reader030.vdocument.in/reader030/viewer/2022032415/56649f075503460f94c1c9ab/html5/thumbnails/6.jpg)
• Benefits of usage Ruby and Python by deployment on Amazon Web services.
• Scripting and API – basis of AWS automation.
![Page 7: Gems, Snakes and Amazon forests by Serhii Borysov 7/6/2013](https://reader030.vdocument.in/reader030/viewer/2022032415/56649f075503460f94c1c9ab/html5/thumbnails/7.jpg)
Table of Contents
• Puppet show• Chef is coming• Application Management for AWS• Ruby on AWS• Python on AWS• API
![Page 8: Gems, Snakes and Amazon forests by Serhii Borysov 7/6/2013](https://reader030.vdocument.in/reader030/viewer/2022032415/56649f075503460f94c1c9ab/html5/thumbnails/8.jpg)
Introduction
![Page 9: Gems, Snakes and Amazon forests by Serhii Borysov 7/6/2013](https://reader030.vdocument.in/reader030/viewer/2022032415/56649f075503460f94c1c9ab/html5/thumbnails/9.jpg)
Introduction
![Page 10: Gems, Snakes and Amazon forests by Serhii Borysov 7/6/2013](https://reader030.vdocument.in/reader030/viewer/2022032415/56649f075503460f94c1c9ab/html5/thumbnails/10.jpg)
Case description
![Page 11: Gems, Snakes and Amazon forests by Serhii Borysov 7/6/2013](https://reader030.vdocument.in/reader030/viewer/2022032415/56649f075503460f94c1c9ab/html5/thumbnails/11.jpg)
Puppet
![Page 12: Gems, Snakes and Amazon forests by Serhii Borysov 7/6/2013](https://reader030.vdocument.in/reader030/viewer/2022032415/56649f075503460f94c1c9ab/html5/thumbnails/12.jpg)
Puppet
![Page 13: Gems, Snakes and Amazon forests by Serhii Borysov 7/6/2013](https://reader030.vdocument.in/reader030/viewer/2022032415/56649f075503460f94c1c9ab/html5/thumbnails/13.jpg)
Puppet
• open-source configuration management tool
• automation software uses Puppet's declarative language or a Ruby DSL (domain-specific language)• provisioning for virtual machines directly
on Amazon EC2• written in Ruby
![Page 14: Gems, Snakes and Amazon forests by Serhii Borysov 7/6/2013](https://reader030.vdocument.in/reader030/viewer/2022032415/56649f075503460f94c1c9ab/html5/thumbnails/14.jpg)
Puppet
![Page 15: Gems, Snakes and Amazon forests by Serhii Borysov 7/6/2013](https://reader030.vdocument.in/reader030/viewer/2022032415/56649f075503460f94c1c9ab/html5/thumbnails/15.jpg)
Puppet
![Page 16: Gems, Snakes and Amazon forests by Serhii Borysov 7/6/2013](https://reader030.vdocument.in/reader030/viewer/2022032415/56649f075503460f94c1c9ab/html5/thumbnails/16.jpg)
Chef
![Page 17: Gems, Snakes and Amazon forests by Serhii Borysov 7/6/2013](https://reader030.vdocument.in/reader030/viewer/2022032415/56649f075503460f94c1c9ab/html5/thumbnails/17.jpg)
Chef
![Page 18: Gems, Snakes and Amazon forests by Serhii Borysov 7/6/2013](https://reader030.vdocument.in/reader030/viewer/2022032415/56649f075503460f94c1c9ab/html5/thumbnails/18.jpg)
Chef
• Chef is an infrastructure automation and
configuration management framework. Simply
put, Chef is "Infrastructure as Code".
• Chef supports a wide variety of cloud providers
including Amazon AWS, Windows Azure, Google
Compute Engine, OpenStack, Rackspace
• written in Ruby
![Page 19: Gems, Snakes and Amazon forests by Serhii Borysov 7/6/2013](https://reader030.vdocument.in/reader030/viewer/2022032415/56649f075503460f94c1c9ab/html5/thumbnails/19.jpg)
Chef
![Page 20: Gems, Snakes and Amazon forests by Serhii Borysov 7/6/2013](https://reader030.vdocument.in/reader030/viewer/2022032415/56649f075503460f94c1c9ab/html5/thumbnails/20.jpg)
Chef
![Page 21: Gems, Snakes and Amazon forests by Serhii Borysov 7/6/2013](https://reader030.vdocument.in/reader030/viewer/2022032415/56649f075503460f94c1c9ab/html5/thumbnails/21.jpg)
major configuration management systems
• Bcfg2 (pronounced "bee-config") is a configuration management tool•written in python
• CFEngine is a popular open source configuration management system•written in C
![Page 22: Gems, Snakes and Amazon forests by Serhii Borysov 7/6/2013](https://reader030.vdocument.in/reader030/viewer/2022032415/56649f075503460f94c1c9ab/html5/thumbnails/22.jpg)
Application Management for AWS
![Page 23: Gems, Snakes and Amazon forests by Serhii Borysov 7/6/2013](https://reader030.vdocument.in/reader030/viewer/2022032415/56649f075503460f94c1c9ab/html5/thumbnails/23.jpg)
Application Management for AWS
![Page 24: Gems, Snakes and Amazon forests by Serhii Borysov 7/6/2013](https://reader030.vdocument.in/reader030/viewer/2022032415/56649f075503460f94c1c9ab/html5/thumbnails/24.jpg)
Ruby on AWS
![Page 25: Gems, Snakes and Amazon forests by Serhii Borysov 7/6/2013](https://reader030.vdocument.in/reader030/viewer/2022032415/56649f075503460f94c1c9ab/html5/thumbnails/25.jpg)
Ruby on AWS
![Page 26: Gems, Snakes and Amazon forests by Serhii Borysov 7/6/2013](https://reader030.vdocument.in/reader030/viewer/2022032415/56649f075503460f94c1c9ab/html5/thumbnails/26.jpg)
Ruby on AWS
![Page 27: Gems, Snakes and Amazon forests by Serhii Borysov 7/6/2013](https://reader030.vdocument.in/reader030/viewer/2022032415/56649f075503460f94c1c9ab/html5/thumbnails/27.jpg)
Ruby on AWS
![Page 28: Gems, Snakes and Amazon forests by Serhii Borysov 7/6/2013](https://reader030.vdocument.in/reader030/viewer/2022032415/56649f075503460f94c1c9ab/html5/thumbnails/28.jpg)
Ruby on AWS
![Page 29: Gems, Snakes and Amazon forests by Serhii Borysov 7/6/2013](https://reader030.vdocument.in/reader030/viewer/2022032415/56649f075503460f94c1c9ab/html5/thumbnails/29.jpg)
Python on AWS
![Page 30: Gems, Snakes and Amazon forests by Serhii Borysov 7/6/2013](https://reader030.vdocument.in/reader030/viewer/2022032415/56649f075503460f94c1c9ab/html5/thumbnails/30.jpg)
Python on AWS
![Page 31: Gems, Snakes and Amazon forests by Serhii Borysov 7/6/2013](https://reader030.vdocument.in/reader030/viewer/2022032415/56649f075503460f94c1c9ab/html5/thumbnails/31.jpg)
API - CLI
ec2-create-image i-383c9875 --name “xxx" --description “xxx_Description" --verbose –-headers
as-create-launch-config TESTLC -i ami-41879a35 --key my_key --group sg-e50f1689 -t m1.medium --monitoring-enabled
as-set-desired-capacity GROUP_01 --desired-capacity 4
as-put-scaling-policy Up -g GROUP_01 --adjustment 1 --type ChangeInCapacity --cooldown 1200
![Page 32: Gems, Snakes and Amazon forests by Serhii Borysov 7/6/2013](https://reader030.vdocument.in/reader030/viewer/2022032415/56649f075503460f94c1c9ab/html5/thumbnails/32.jpg)
API – GET Request
![Page 33: Gems, Snakes and Amazon forests by Serhii Borysov 7/6/2013](https://reader030.vdocument.in/reader030/viewer/2022032415/56649f075503460f94c1c9ab/html5/thumbnails/33.jpg)
API – Query parameters
![Page 34: Gems, Snakes and Amazon forests by Serhii Borysov 7/6/2013](https://reader030.vdocument.in/reader030/viewer/2022032415/56649f075503460f94c1c9ab/html5/thumbnails/34.jpg)
![Page 35: Gems, Snakes and Amazon forests by Serhii Borysov 7/6/2013](https://reader030.vdocument.in/reader030/viewer/2022032415/56649f075503460f94c1c9ab/html5/thumbnails/35.jpg)
References
https://puppetlabs.com/http://www.opscode.com/https://learnchef.opscode.com/common-use-cases/multi-node-ec2/http://aws.amazon.com/application-management/http://docs.aws.amazon.com/AWSSdkDocsRuby/latest/DeveloperGuide/welcome.htmlhttp://aws.amazon.com/sdkforruby/http://docs.aws.amazon.com/AWSRubySDK/latest/frames.htmlhttp://aws.amazon.com/python/
![Page 36: Gems, Snakes and Amazon forests by Serhii Borysov 7/6/2013](https://reader030.vdocument.in/reader030/viewer/2022032415/56649f075503460f94c1c9ab/html5/thumbnails/36.jpg)
Questions