Leverage the power of the cloud using Python which has a very low learning curve but extremely powerful and since its intuitive its very easy to use.
There is also a tutorial in this presentation which will help you get started easily.
2. WhatisCloud?
“Cloud computing is a model for
enabling ubiquitous, convenient, on-
demand network access to a shared
pool of configurable computing
resources
(e.g., networks, servers, storage,
applications, and services)
that can be rapidly provisioned
and released with minimal
management effort or service
provider interaction.
From: National Institute of Standards and Technology (NIST) developed this document in furtherance of its
statutory responsibilities under the Federal Information Security Management Act (FISMA) of 2002, Public
Law 107-347
venumurthy.com
3. Why Python
Easy to learn
Portability
Available for all major operating systems– Mac,
Win, Linux (any flavor) and on cell phones too.
Most of them have python by default.
(Type “python” in shell to see if its installed”)
venumurthy.com
5. venumurthy.com
Guido van Rossum
… in December 1989, I was looking for a "hobby"
programming project that would keep me occupied
during the week around Christmas. My office ...
would be closed, but I had a home computer, and
not much else on my hands. I decided to write an
interpreter for the new scripting language I had
been thinking about lately: a descendant of ABC
that would appeal to Unix/C hackers. I chose
Python as a working title for the project, being
in a slightly irreverent mood (and a big fan of
Monty Python's Flying Circus)…
Goals were:-
• easy and intuitive language just as powerful as major competitors
• open source, so anyone can contribute to its development
• code that is as understandable as plain English
• suitability for everyday tasks
7. Python APIs Client Libraries available
from all major Cloud service providers
venumurthy.com
- Google python client libraries to mange the cloud, SaaS, PaaS, IaaS.
- Amazon EC2 python client libraries called Boto.
- Salesforce has salesforce-python-toolkit
- Rackspace Cloud SDK for Python (pyrax)
- OpenStack has python client library called Nova.
- Windows Azure SDK for Python
- Apache LibCloud – abstracts away differences among multiple cloud
provider APIs.
8. ServiceModels
… This cloud model is composed of
five essential characteristics,
three , and
four deployment models.
IaaS – eg. Google compute, Amazon EC2,
Rackspace.
PaaS – eg. Google App engine, Heroku
SaaS – eg. Google apps, MS 365,
Salesforce.com, github
venumurthy.com
9. Google Compute Engine
Instances (VMs) are the heart of Google
Compute Engine.
A Google Compute Engine is a virtual machine
running on a Linux config.
Lets Create an instance using the Google-
python-client library.
venumurthy.com
23. sudo yum install apache2
venumurthy.com
echo '<!doctype html><html><body><h1>
Hello Cloud, Thank you Python!</h1></body></html>'
| sudo tee /var/www/index.html
The above command is in one line
24. Very Important
Delete the instances
Delete the instance
gcutil deleteinstance my-first-instance
Delete the Persistent Disk
gcutil deletedisk boot-my-first-instance
venumurthy.com
Producers of movies like Avatar, “The mummy returns”
Instances are what are nodes in Amazon EC2
Note down the Project ID:
Hope you’ve been able to install the gcutil tool using the prerequisites sheet that I had sent.In case not, this is how we can do itGo to http://goo.gl/sLi7Q for instructions on how to have this installed.
How many of you know Oauth?
Use below only if the apache doesn’t get installed at first go.sudo yum update echo '<!doctype html><html><body><h1>Hello Cloud, Thank you Python!</h1></body></html>' | sudo tee /var/www/index.html