Top Banner
Amazon S3/EC2 Thomas Fankhänel, Dominik Hurtienne, Georg Wicherski Web Technologies – Prof. Dr. Ulrik Schroeder – WS 2010/11 1 The slides are licensed under Creative Commons Attribution 3.0 Licen
21
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: Amazon s3ec2

Amazon S3/EC2

Thomas Fankhänel, Dominik Hurtienne, Georg Wicherski

Web Technologies – Prof. Dr. Ulrik Schroeder – WS 2010/111The slides are licensed under a

Creative Commons Attribution 3.0 License

Page 2: Amazon s3ec2

Overview AWS (amazon web services) offers over

20 different web services The Amazon Cloud is one of the

largest clouds on the web Founded in 2002 Amazon S3 (Amazon Simple Storage Service) is a scalable and

fast way for data storage Amazon EC2 (Amazon Elastic Computing Cloud) provides

computing capacity Trivia: Wikileaks used AWS to manage traffic spikes during

the recent disclosures of secret data

Web Technologies2

Page 3: Amazon s3ec2

Amazon S3: Basics

Amazon account and a credit card is sufficient to use S3

Write, read, delete objects from 1 byte up to 5 terabytes

Objects can be stored in different regions (US Standard, US West, EU, Asia Pacific)

Uses standards-based REST and SOAP interfaces

Web Technologies3

Page 4: Amazon s3ec2

Amazon S3: Features & Use Cases Multipart Upload

Common use cases: Storage and distribution data analysis periodic backups

Grant, restrict access to certain parties

Various download protocols (HTTP, BitTorrent, ...)

Web Technologies4

Page 5: Amazon s3ec2

Amazon S3: Basic Operations Manually uploading a file by using the AWS Management

Console

Web Technologies5

Page 6: Amazon s3ec2

Amazon S3: REST

Example Authentication Amazon S3 REST Request

The Authorization Header consists of:

The AWSAccessKeyID is a 20-character, alphanumeric string that uniquely identifies an AWS accout

Web Technologies6

Page 7: Amazon s3ec2

Amazon S3: Signature

Pseudo grammar for the construction of the Authorization Header

The SecretAccessKeyID is a 40-character string that should be known only by you and AWS

Web Technologies7

Page 8: Amazon s3ec2

Amazon S3: REST Example Object GET

Example Object PUT

Web Technologies8

Page 9: Amazon s3ec2

Amazon S3: REST Example Fetch Access Control

Example Delete

Using the alternate x-amz-date methode to specify the date

Web Technologies9

Page 10: Amazon s3ec2

Amazon S3: REST Example Upload

Using the x-amz methodes to add meta-data x-amz‘s are automatically sorted

Web Technologies10

Page 11: Amazon s3ec2

Amazon S3: Pricing

Web Technologies11

Page 12: Amazon s3ec2

Amazon S3: Summary Easy, reliable way to store data

Can handle traffic spikes

Highly scalable

Fast growing cloud

Web Technologies12

Page 13: Amazon s3ec2

Amazon EC2 (Elastic Compute Cloud)

Web Technologies13

Page 14: Amazon s3ec2

Amazon EC2: Why?You’re doing business and you:Expect high traffic on your websiteHave some computational tasks to do (simulation, math problems, image rendering, video transcoding...)Need to perform network load tests, application clustering

But:You do not want to build up your own infrastructure (data centre, broadband internet...)You need these services for a short period of time onlyYou need it right now!?

Web Technologies14

Page 15: Amazon s3ec2

Amazon EC2: Overview

Every EC2 instance is a (virtual) server: Running your choice of operating systems (Windows Server

2003/2008, Solaris, Linux) Full super-user access: install and run every software

As many instances as you need

Works in conjunction with S3

Appliances: community provided image templates or Amazon Machine Images (AMI)

Web Technologies15

Page 16: Amazon s3ec2

Amazon EC2: Additional features

VPC (Virtual Private Cloud) via VPN CloudWatch web service to monitor EC2 Elastic Block Store: persistent system storage High Performance Computing (HPC) Clusters External load balancer VM Import

Web Technologies16

Page 17: Amazon s3ec2

Amazon EC2: Limitations

No installation support No help on specific applications No automated backup

Prohibited: Spam, DOS, illegal file sharing…!

Web Technologies17

Page 18: Amazon s3ec2

Amazon EC2: Instance types and pricing

Web Technologies18

http://aws.amazon.com/ec2/pricing/

Page 19: Amazon s3ec2

Amazon EC2: Basic Operations Demo of Management Console Use EC2 instance to find a password hash (by bruteforce)

Web Technologies19

Page 20: Amazon s3ec2

Amazon EC2: Summary Advantages

High virtual server performance No hardware or connectivity issues SLA: 99.95% (10% refund) Just in time appliance deployment Number of cpus and memory size adjustable to appl. Needs

Disadvantages Paravirtualization (XEN):

Very fast but guest-system with compatible kernel is required

Security issues, sensible data?

Web Technologies20

Page 21: Amazon s3ec2

Literature - Introduction Books Paper Tutorials Links Examples Software

1 Introduction21