MANAGE YOUR AMAZON AWS ASSETS USING BOTO



Similar documents
Cloud Computing: Making the right choices

Amazon Elastic Beanstalk

ur skills.com

Using ArcGIS for Server in the Amazon Cloud

Cloud Models and Platforms

TECHNOLOGY WHITE PAPER Jan 2016

EEDC. Scalability Study of web apps in AWS. Execution Environments for Distributed Computing

Amazon Web Services Student Tutorial

Web Application Deployment in the Cloud Using Amazon Web Services From Infancy to Maturity

TECHNOLOGY WHITE PAPER Jun 2012

Deploying Database clusters in the Cloud

Amazon Elastic Compute Cloud Getting Started Guide. My experience

What is Cloud Computing? Why call it Cloud Computing?

Monitoring and Scaling My Application

Lets SAAS-ify that Desktop Application

Amazon AWS Security Basics

Zabbix for Hybrid Cloud Management

Online Backup Guide for the Amazon Cloud: How to Setup your Online Backup Service using Vembu StoreGrid Backup Virtual Appliance on the Amazon Cloud

Cloud Computing. AWS a practical example. Hugo Pérez UPC. Mayo 2012

Cloud computing - Architecting in the cloud

Technology and Cost Considerations for Cloud Deployment: Amazon Elastic Compute Cloud (EC2) Case Study

/ Cloud Computing. Recitation 5 September 29 th & October 1 st 2015

Deltacloud. Michal Fojtik Cloud Computing. Software Engineer Red Hat, Inc

Tcl and Cloud Computing Automation

How To Choose Between A Relational Database Service From Aws.Com

Cloud Computing with Amazon Web Services and the DevOps Methodology.

Design for Failure High Availability Architectures using AWS

Introduction to Cloud : Cloud and Cloud Storage. Lecture 2. Dr. Dalit Naor IBM Haifa Research Storage Systems. Dalit Naor, IBM Haifa Research

Scalable Architecture on Amazon AWS Cloud

IPFW Innovate Cloud Service Task Force

Building Success on Acquia Cloud:

Platforms in the Cloud

An Introduction to Cloud Computing Concepts

CLOUD COMPUTING WITH AWS An INTRODUCTION. John Hildebrandt Solutions Architect ANZ

GreenSQL AWS Deployment

AWS Account Setup and Services Overview

!"#$%&'()*'+),-./)0' 9##+':,%-.;),0'

Using ArcGIS for Server in the Amazon Cloud

Amazon Web Services Primer. William Strickland COP 6938 Fall 2012 University of Central Florida

Chapter 9 PUBLIC CLOUD LABORATORY. Sucha Smanchat, PhD. Faculty of Information Technology. King Mongkut s University of Technology North Bangkok

How AWS Pricing Works May 2015

Sun Cloud API: A RESTful Open API for Cloud Computing

Cloud Computing and Amazon Web Services. CJUG March, 2009 Tom Malaher

Opsview in the Cloud. Monitoring with Amazon Web Services. Opsview Technical Overview

Integrated Management of IaaS Resources

Zend Server Amazon AMI Quick Start Guide

Running Oracle on the Amazon Cloud

JAVA IN THE CLOUD PAAS PLATFORM IN COMPARISON

Alfresco Enterprise on AWS: Reference Architecture

How AWS Pricing Works

Estimating the Cost of a GIS in the Amazon Cloud. An Esri White Paper August 2012

An Esri White Paper January 2011 Estimating the Cost of a GIS in the Amazon Cloud

Subash Krishnaswamy Applications Software Technology Corporation

Cloud Computing for Research. Jeff Barr - January 2011

OpenShift on you own cloud. Troy Dawson OpenShift Engineer, Red Hat November 1, 2013

HADOOP BIG DATA DEVELOPER TRAINING AGENDA

Amazon Web Services. Elastic Compute Cloud (EC2) and more...

ArcGIS for Server: In the Cloud

Introduction to Amazon EC2 Running IBM

DISTRIBUTED SYSTEMS [COMP9243] Lecture 9a: Cloud Computing WHAT IS CLOUD COMPUTING? 2

Web Application Hosting in the AWS Cloud Best Practices

Backup and Recovery of SAP Systems on Windows / SQL Server

ST 810, Advanced computing

Healthstone Monitoring System

Designing Apps for Amazon Web Services

HDFS Cluster Installation Automation for TupleWare

Building a Private Cloud Cloud Infrastructure Using Opensource

Web Application Hosting in the AWS Cloud Best Practices

Scaling in the Cloud with AWS. By: Eli White (CTO & mojolive) eliw.com - mojolive.com

AdWhirl Open Source Server Setup Instructions

Best Practices for Sharing Imagery using Amazon Web Services. Peter Becker

Security Gateway R75. for Amazon VPC. Getting Started Guide

Run SAP for Savings and Speed in the Cloud Presentation for ASUG, September 28, 2011

Automated Application Provisioning for Cloud

Scalable Application. Mikalai Alimenkou

Cloud Computing In Reality: Experience sharing in cloud solution developments and evaluations

Introduction to Cloud Computing on Amazon Web Services (AWS) with focus on EC2 and S3. Horst Lueck

Introduction to Cloud computing. Viet Tran

NEXT-GENERATION, CLOUD-BASED SERVER MONITORING AND SYSTEMS MANAGEMENT

Tibbr Installation Addendum for Amazon Web Services

Cloud Computing and Amazon Web Services

MICROSTRATEGY ON AWS

ArcGIS for Server in the Amazon Cloud. Michele Lundeen Esri

Deploying and Managing SolrCloud in the Cloud ApacheCon, April 8, 2014 Timothy Potter. Search Discover Analyze

MarkLogic Server. MarkLogic Server on Amazon EC2 Guide. MarkLogic 8 February, Copyright 2015 MarkLogic Corporation. All rights reserved.

Transcription:

Who am I? Chirag Jog CTO, Clogeny Technologies - Cloud Computing Experts Python developer Open Source Contributor Linux Test Project, Linux Kernel, boto etc

Innovation Execution Solution Delivered MANAGE YOUR AMAZON AWS ASSETS USING BOTO Presentation - Talks Email: chirag@clogeny.com Web: http://www.clogeny.com

What is boto? A Python interface to Amazon Web Services

Agenda Basics of Cloud Computing, Amazon Web Services Building blocks of one's cloud infrastructure EC2, EBS, S3, ELB Introduction to Boto Using Boto EC2, EBS, S3, ELB Sample scripts Coding Guidelines Manage Non-AWS Clouds

Cloud Computing in a Nutshell Next generation of computing after Mainframe, Personal computers, Client- Server and the Web New platform & delivery model providing dynamically scalable & often virtualized resources No CAPEX, only OPEX 1000 servers for 1 hour = 1 server for 1000 hours! Commoditization of IT Economies of Scale Elasticity On-Demand

Infrastructure-as-a-Service Pay-as-you-go Virtualized Resources CPU, Storage, Network Infrastructure management services & tools Application cannot dynamically scale on-demand Local Server moved into the cloud managing, patching, securing, monitoring is still a responsibility Extremely flexible Very little vendor lock-in Examples: Amazon EC2, Terremark vcloud, GoGrid Cloud, Rackspace Cloud

Amazon Web Services

Building Blocks of an infrastructure Compute Amazon EC2 Storage Amazon S3, EBS, SimpleDB, RDS Network - Elastic Load Balancer, Auto Scaling

Introduction to boto An integrated interface to current and future infrastructural services offered by Amazon Web Services Website: http://boto.cloudhackers.com/ Source Code: http://github.com/boto IRC: #boto on FreeNode License: MIT License

How easy is it to use boto? easy_install boto >>> from boto.ec2.connection import EC2Connection >>> conn = EC2Connection('<aws access key>', '<aws secret key>') >>> images = conn.get_all_images() >>> image = images[0] >>> reservation = image.run() >>> instance = reservation.instances[0] >>> instance.state >>> instance.update()

How easy is it to use boto? Demo & Explanation

Managing instances Starting an instance Image.run( instance_type, # server size m1.large, c1.medium key_name, # SSH Keypair Name to access the machine placement, # Region us-east-1, us-west-1 security_groups # List Firewall rules disable_api_termination # Avoid termination errors )

Managing instances Listing Instances conn = EC2Connection('<aws access key>', '<aws secret key>') conn.get_all_instances() Stopping an instance Instance.stop() Terminating an instance Instance.terminate()

Automate Server Creation/Termination Sample Script and Demo

Managing Volumes (Elastic Block Storage) Create Volumes volume = conn.create_volume(size, zone) Attach Volumes volume.attach(instanceid, device) Backup Volumes Create Snapshots conn.create_snapshot(volume.volume_id) Detach Volumes volume.detach() Delete Volumes volume.delete() Create Volumes from snapshots volume = conn.create_volume(size, zone, snapshot_id)

Automate backups of server/datastore Sample script and Demo

Managing Elastic Load Balancers Create Load Balancer conn.create_load_balancer( Name, Zone List, Port Mapping List ) eg. conn.create_load_balancer('my_lb', ['us-east-1a', 'us-east-1b'], [(80, 80, 'http'), (443, 8443, 'tcp')]) Attach Load Balancer elb_conn = ELBConnection( ) elb_conn.get_all_load_balancers() elb.register_instances(instance_id) Detach Load Balancer elb.deregister_instances(instance_id)

Automate Load Balancer Setup Sample script and Demo

Automate Load Balancer Setup Sample script and Demo

Amazon Cloud Watch Monitoring of AWS Cloud resources in real-time Basic 5-min monitoring free Detailed monitoring at 1 minute interval charged Create Custom Metrics Memory, Free Space Users in my DB Set alarms & notifications View graphs and statistics

Amazon Cloud Watch Monitoring of AWS Cloud resources in real-time Basic 5-min monitoring free Detailed monitoring at 1 minute interval charged Create Custom Metrics Memory, Free Space Users in my DB Set alarms & notifications View graphs and statistics

Amazon Cloud Watch Custom Metrics Custom metrics - use case Custom metrics using boto cw_connect = CloudWatchConnection( aws_access_key, aws_secret_access_key) cw_connect.put_metric_data( namespace, metric_name, count, unit="count")

Putting all the pieces together Demo and scripts Provision servers Create snapshots Create AMIs

Coding Precautions Retry, retry and retry Check for status always Attach Detach Create Delete Clean up after any exceptions Servers Volumes

Libraries besides boto Apache Libcloud Python library abstracts away cloud provider API A unified interface to the clouds Amazon AWS, Rackspace, Gogrid and IBM Non Python libraries Jcloud Deltacloud

Questions and Discussions