Top Banner
Amazon Web Services: Amazon Elastic Compute Cloud (EC2) Jeevan Dongre Associate Organizer- AWS B’lore UG
70
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Aws coi7

Amazon Web Services:Amazon Elastic Compute Cloud (EC2)

Jeevan DongreAssociate Organizer- AWS B’lore UG

Page 2: Aws coi7

What is cloud?

• “Cloud computing is a style of computing where scalable and elastic IT-enabled capabilities are delivered as a service to external customers using Internet technologies.”-Gartner

Page 3: Aws coi7

Other definitions of Cloud:

• “A pool of abstracted, highly scalable, and managed compute infrastructure capable of hosting end-customer applications and billed by consumption”.

• “Cloud computing is an emerging approach to shared infrastructure in which large pools of systems are linked together to provide IT services.” – IBM press release on “Blue Cloud”

• “Cloud computing describes a systems architecture. Period. This particular architecture assumes nothing about the physical location, internal composition or ownership of its component parts.” – James Urquhart blog post

Page 4: Aws coi7

Categories of Cloud:

• Iaas: Infrastructure as a service• Paas:Platform as a service• Saas:Software as a service• Daas:Desktop as a service

• And many more services.

Page 5: Aws coi7

Cloud Stack:

Page 6: Aws coi7

Points to Remember:

• Iaas forms the basic building blocks.• Paas is built on Iaas:• Saas is build on Paas:• So in this regard any services are either built

on Paas or Iaas.

Page 7: Aws coi7

Types of Cloud:

• Public Cloud• Private Cloud• Hybrid Cloud• Community Cloud/Gov Cloud

Page 8: Aws coi7

What is Driving Cloud Computing?

Customer Perspective:• In one word: economics • Faster, simpler, cheaper to use cloud apps • No upfront capital required for servers and storage • No ongoing operational expenses for running datacenter • Applications can be accessed from anywhere, anytime

Page 9: Aws coi7

What is Driving Cloud Computing

Vendor Perspective:• Easier for application vendors to reach new customers • Lowest cost way of delivering and supporting applications • Ability to use commodity server and storage hardware • Ability to drive down data center operational cots • In one word: economics

Page 10: Aws coi7

Common factor:

Page 11: Aws coi7

Issues Facing Developers

• 70% of Web Development Effort is “Muck”:o Data Centerso Bandwidth / Power / Coolingo Operationso Staffing

• Scaling is Difficult and Expensive:o Large Up-Front Investmento Invest Ahead of Demando Load is Unpredictable

Page 12: Aws coi7

Solution: Web-Scale Computing

• Scale capacity on demand• Turn fixed costs into variable costs• Always available• Rock-solid reliability• Simple APIs and conceptual models• Cost-effective• Reduced time to market• Focus on product & core competencies

Page 13: Aws coi7

Driving factors for Amazon:

Page 14: Aws coi7

The Differences That Distinguish AWS

• Flexible: AWS enables organizations to use the programming model, operating system, databases, and architectures they are already familiar with. In addition, this flexibility helps companies mix and match architectures in order to serve their diverse business needs.

Page 15: Aws coi7

The Differences That Distinguish AWS

• Cost-effective: With AWS, organizations pay only for what they use, with no up-front commitments or longterm commitments.

Page 16: Aws coi7

The Differences That Distinguish AWS

• Scalable and elastic: Businesses can quickly add and subtract AWS resources to their applications in order to meet customer demand and manage costs.

Page 17: Aws coi7

The Differences That Distinguish AWS

• Secure: In order to provide end-to-end security and end-to-end privacy, AWS builds services in accordance with security best practices, provides appropriate security features in those services, and documents how to use those features.

• http://aws.amazon.com/security/

Page 18: Aws coi7

The Differences That Distinguish AWS

• Experienced. When using AWS, you leverage over fifteen years of Amazon’s experience in delivering largescale, global infrastructure in a reliable, secure fashion.

Page 19: Aws coi7

Lets have a deep dive:

Page 20: Aws coi7

Do you have a credit card?

Page 21: Aws coi7

Any guess?

Page 22: Aws coi7

Amazon Simple Storage Service

S3

Page 23: Aws coi7

Overview of S3

• Amazon S3 is storage for the Internet. It is designed to make web-scale computing easier for developers.

• It gives any developer access to the same highly scalable, reliable, secure, fast, inexpensive infrastructure that Amazon uses to run its own global network of web sites.

Page 24: Aws coi7

Amazon S3 Functionality

• Write, read, and delete objects containing from 1 byte to 5 terabytes of data each. The number of objects you can store is unlimited.

• Each object is stored in a bucket and retrieved via a unique, developer-assigned key.

• Uses standards-based REST and SOAP interfaces designed to work with any Internet-development toolkit.

Page 25: Aws coi7

Getting Started with Amazon S3

• Create a Bucket to store your data. You can choose a Region where your bucket and object(s) reside to optimize latency, minimize costs, or address regulatory requirements.

• Upload Objects to your Bucket. Your data is durably stored and backed by the Amazon S3 Service Level Agreement.

• Optionally, set access controls. You can grants others access to your data from anywhere in the world.

Page 26: Aws coi7

Common Use Cases

• Content Storage and Distribution.• Storage for Data Analysis.• Backup, Archiving and Disaster Recovery.

Page 27: Aws coi7

DEMO

• Creating a static web site and hosting it on s3

Page 28: Aws coi7

Any guess?

Page 29: Aws coi7

Amazon Elastic Compute Cloud

EC2

Page 30: Aws coi7

Overview of EC2

• Released in the year 2006 after a huge success of S3.

• Amazon Elastic Compute Cloud (Amazon EC2) is a web service that provides resizable compute capacity in the cloud. It is designed to make web-scale computing easier for developers.

•  EC2 reduces the time required to obtain and boot new server instances to minutes.

Page 31: Aws coi7

Overview of EC2 Continued..

• allowing you to pay only for capacity that you actually use.

•  provides developers the tools to build failure resilient applications and isolate themselves from common failure scenarios.

Page 32: Aws coi7

 Regions and Availability Zones

• US East (Northern Virginia),• US West (Northern California),• EU (Ireland),• Asia Pacific (Singapore),• Asia Pacific (Tokyo), and • AWS GovCloud.

Page 33: Aws coi7

Few basic concepts of EC2

• AMI• Instance• EBS• Elastic Ip• Security group• CloudWatch• Elastic Load balancing.

Page 34: Aws coi7

Amazon Machine Image

• An Amazon Machine Image (AMI) is a special type of pre-configured operating system and virtual application software which is used to create a virtual machine within the Amazon Elastic Compute Cloud (EC2).

•  It serves as the basic unit of deployment for services delivered using EC2.

Page 35: Aws coi7

Operating systems of AMI

Page 36: Aws coi7

Instance

• instance provides a predictable amount of dedicated compute capacity and is charged per instance-hour consumed.

Page 37: Aws coi7

Types of Instance

• Micro Instance.• Small Instance.• Large Instance.• Spot Instance.• Reserved Instance.• High-Memory Instance.• High-Compute Instance.• Cluster Compute Instance.

Page 38: Aws coi7

Elastic Block Store

•  provides block level storage volumes for use with Amazon EC2 instances.

• EBS volumes are off-instance storage that persists independently from the life of an instance.

•  Elastic Block Store provides highly available, highly reliable storage volumes that can be attached to a running Amazon EC2 instance.

•  EBS is particularly suited for applications that require a database, file system, or access to raw block level storage.

Page 39: Aws coi7

Features of Amazon EBS volumes

• Amazon EBS allows you to create storage volumes from 1 GB to 1 TB that can be mounted as devices by Amazon EC2 instances.

• Multiple volumes can be mounted to the same instance.

• Storage volumes behave like raw, unformatted block devices, with user supplied device names and a block device interface.

Page 40: Aws coi7

Features of Amazon EBS volumes

• Amazon EBS also provides the ability to create point-in-time snapshots of volumes, which are persisted to Amazon S3.

• You can create a file system on top of Amazon EBS volumes, or use them in any other way you would use a block device (like a hard drive).

Page 41: Aws coi7

Elastic IP

• Elastic IP addresses are static IP addresses designed for dynamic cloud computing.

• EC2 enables you to engineer around problems with your instance or software by quickly remapping your Elastic IP address to a replacement instance.

Page 42: Aws coi7

Security group

• The Security Group defines which ports are opened in an instance's firewall to allow incoming connections to the instance.

•  Security Groups act as firewalls in the cloud.• They are designed to control who can

communicate (initiate communication) with your machine.

Page 43: Aws coi7

Cloud Watch

•  Amazon CloudWatch is a web service that provides monitoring for AWS cloud resources and applications, starting with Amazon EC2.

• It provides you with visibility into resource utilization, operational performance, and overall demand patterns—including metrics such as CPU utilization, disk reads and writes, and network traffic.

Page 44: Aws coi7

Elastic Load balancing.

•  Elastic Load Balancing automatically distributes incoming application traffic across multiple Amazon EC2 instances.

• Elastic Load Balancing detects unhealthy instances within a pool and automatically reroutes traffic to healthy instances until the unhealthy instances have been restored.

• Can be used along with the cloud watch.

Page 45: Aws coi7

Amazon EC2 Functionality

• Select a pre-configured, templated image to get up and running immediately.

• Or create an Amazon Machine Image (AMI) containing your applications, libraries, data, and associated configuration settings.

• Configure security and network access on your Amazon EC2 instance.

• Choose which instance type(s) and operating system you want, then start, terminate, and monitor as many instances of your AMI as needed, using the web service APIs or the variety of management tools provided.

Page 46: Aws coi7

Amazon EC2 Functionality

• Determine whether you want to run in multiple locations, utilize static IP endpoints, or attach persistent block storage to your instances.

• Pay only for the resources that you actually consume, like instance-hours or data transfer.

Page 47: Aws coi7

Service highlights

• Elastic• Completely Controlled.• Flexible.• Reliable.• Secure.• Inexpensive

Page 48: Aws coi7
Page 49: Aws coi7

Elastic Beanstalk

Page 50: Aws coi7

Elastic Beanstalk

•  is an even easier way for you to quickly deploy and manage applications in the AWS cloud.

• You simply upload your application, and Elastic Beanstalk automatically handles the deployment details of capacity provisioning, load balancing, auto-scaling, and application health monitoring.

•  AWS Elastic Beanstalk is easy to begin and impossible to outgrow.

Page 51: Aws coi7

AWS Elastic Beanstalk Functionality

• Create your application as you normally would using any editor or IDE (e.g. Eclipse).

• Package your deployable code into a standard Java Web Application Archive (WAR file).

• Upload your WAR file to Elastic Beanstalk using the AWS Management Console.

• Deploy your application.• access your application at a customized URL

Page 52: Aws coi7

Service Highlights

• Easy to begin.• Impossible to outgrow.• Complete control• Flexible• Reliable

Page 53: Aws coi7

Amazon Simple Queue Service

SQS

Page 54: Aws coi7

Overview

• Amazon Simple Queue Service (Amazon SQS) offers a reliable, highly scalable, hosted queue for storing messages as they travel between computers.

•  move data between distributed components of their applications that perform different tasks, without losing messages or requiring each component to be always available.

• can run independently, and do not need to be on the same network, developed with the same technologies, or running at the same time.

Page 55: Aws coi7

• A queue can be created in 5 regions.• The message body can contain up to 64 KB

of text in any format (default is 8KB).• Messages can be retained in queues for up to

14 days (default is 4 days).• Messages can be sent and read

simultaneously.

Page 56: Aws coi7

Amazon Simple Emailing Service

SES

Page 57: Aws coi7

Overview

• Amazon Simple Email Service (Amazon SES) is a highly scalable and cost-effective bulk and transactional email-sending service for businesses and developers.

• Reduces the complexity of building ih-house SMTP.

• Use amazon readily available SMTP’s to send bulk e-mails.

• Newsletters, confirmation e-mails,marketing etc.

Page 58: Aws coi7

Overview

• 2000 emails per day is free.• Scalable upto 10,000 emails per hour.• After 2000 emails charges only $0.10 per

1000 emails.

Page 59: Aws coi7

Amazon Simple Notification Service

SNS

Page 60: Aws coi7

Overview

• Amazon Simple Notification Service (Amazon SNS) is a web service that makes it easy to set up, operate, and send notifications from the cloud.

•  Amazon SNS delivers notifications to clients using a “push” mechanism that eliminates the need to periodically check or “poll” for new information and updates.

•  Amazon SNS can be highly customized by developers to meet a wide range of application needs

Page 61: Aws coi7

SNS Functionality

• Create a topic: A topic is an “access point” – identifying a specific subject or event type – for publishing messages and allowing clients to subscribe for notifications.

• Set policies for your topic: Once a topic is created, the topic owner can set policies for it such as limiting who can publish messages or subscribe to notifications.

• Add subscribers to a topic: Subscribers are clients interested in receiving notifications from topics of interest.

• Publish messages / send out notifications.

Page 62: Aws coi7

How you can leverage Amazon SNS

• Application integration.• Time-sensitive information updates.• Mobile applications

Page 63: Aws coi7

Amazon Relational DB System

RDS

Page 64: Aws coi7

Overview

• Amazon Relational Database Service (Amazon RDS) is a web service that makes it easy to set up, operate, and scale a relational database in the cloud.

• Amazon RDS gives you access to the capabilities of a familiar MySQL or Oracle database.

Page 65: Aws coi7

RDS Functionality

• Use the AWS Management Console or Amazon RDS APIs to launch a Database Instance (DB Instance), selecting the DB Engine (MySQL or Oracle).

• Since you are already familiar with mysql or oracle databases, no learning curve.

• Monitor the RDS using cloud monitor.• Pay only for what you use.

Page 66: Aws coi7

Amazon Simple DB

SDB

Page 67: Aws coi7

Overview

• Amazon SimpleDB is a highly available, flexible, and scalable non-relational data store that offloads the work of database administration.

Page 68: Aws coi7

Amazon SimpleDB Functionality

• Build your data set• Choose a Region for your Domain(s) to optimize for

latency.• CreateDomain, DeleteDomain, ListDomain, Doma

inMetadata to create and manage query domains.• Use Put, Batch Put, & Delete to create and

manage the data set within each query domain.• Retrieve your data.• Use GetAttributes to retrieve a specific item• Use Select to query your data set for items that

meet specified criteria

Page 69: Aws coi7

Customer of AWS

Page 70: Aws coi7

Thank You!

PointersTwitter:http://twitter.com/jeevandongre

Bloghttp://geekospace.com

Facebookhttp://www.facebook.com/jeevan.dongre

Linked Inhttp://in.linkedin.com/in/jeevandongre

Web:http://jeevandongre.geekospace.com

[email protected]@geekospace.com