14
Introduction and Getting Started guide Alex Zlotnik Technion

Introduction and Getting Started guide Alex Zlotnik Technion

Embed Size (px)

DESCRIPTION

Introduction and Getting Started guide Alex Zlotnik Technion. Products & Services. IAM Secure AWS Access Control  RDS Managed Relational Database Service Route 53 Scalable Domain Name System S3 Scalable Storage in the Cloud SES Email Sending Service SNS Push Notification Service SQS - PowerPoint PPT Presentation

Citation preview

Introduction and Getting Started guide

Alex ZlotnikTechnion

Products & ServicesCloudFormationTemplated AWS Resource CreationCloudFrontGlobal Content Delivery NetworkCloudSearch (NEW)Fully Managed Search Service for Websites and AppsCloudWatchResource & Application MonitoringDynamoDBPredictable and Scalable NoSQL Data StoreEC2Virtual Servers in the CloudElastiCacheIn-Memory CacheElastic BeanstalkAWS Application ContainerElastic MapReduceManaged Hadoop Framework

IAMSecure AWS Access Control RDSManaged Relational Database ServiceRoute 53Scalable Domain Name SystemS3Scalable Storage in the CloudSESEmail Sending ServiceSNSPush Notification ServiceSQSMessage Queue ServiceStorage GatewayIntegrates on-premises IT environments with Cloud storageSWFWorkflow Service for Coordinating Application ComponentsVPCIsolated Cloud Resources

Regions

North America Virginia Oregon North CaliforniaEurope IrelandAsia-Pacific Singapore TokyoSouth America Sao Paulo

EC2 Instance typesClass Type CPU Memory IO Price*

Standard m1.

Micro* <2 EC2 613 MB Low Free* (750h)

Small 1 EC2 1.7 GB Moderate $0.08

Medium 2 EC2 3.75 GB Moderate $0.16

Large 4 EC2 7.5 GB High $0.32

Extra Large 8 EC2 15 GB High $0.64

High Memory m2.

Extra Large 6.5 EC2 17.1 GB Moderate $0.45

2xExtra Large 13 EC2 34.2 GB High $0.9

4xExtra Large 26 EC2 68.4 GB High $1.8

High CPU c1.

Medium 5 EC2 1.7 GB Moderate $0.165

Extra Large 20 EC2 7 GB High $0.66

Cluster cc1.

4xExtra Large 33.5 EC2 23 GB Very High $1.61

8xExtra Large 88 EC2 60.5 GB Very High $2.97

1 EC2 ~ 1.0-1.2 GHz 2007 Opteron or 2007 XeonPrices are of Linux instances in US-East (Virginia)

More details

• Service Level Agreement (SLA)– 99.95% up time per region

• Availability Zones within regions– Insulate failures– Low latency connectivity within zone and region

• Storage– EBS– S3

Even more details

• Auto Scaling• Elastic Load Balancing – Between zones

• Amazon Machine Images– Save, scale out, test, rollback, share, VM import

• Amazon Cloudwatch• Virtual Private Cloud• AWS Market Place

Live demo

1. Login to AWS consoleFor Danny’s account users:– Go to URL in e-mailFor personal account users:– http://aws.amazon.com/

2. Login3. Go to Amazon EC2 tab

Demo

Launching Instances

1. Click “Launch Instance”2. Select Classic Wizard3. Select an AMI (machine image)

Suggestion: Start with Ubuntu Server 12.04 LTS (AMI #4 on quick start)

4. Select instance type (Suggestion: Start with Micro) 5. Check “Termination Protection” box 6. Set tags:

Name: G1_XXX Owner: G1

7. Select your key pair (Create if needed) 8. Select security policy (Suggestion: default) 9. Overview & Launch

Instances View

Connecting to machines

• Use the downloaded key pair file <XYZ>.pem• Unix:

1. Upload <XYZ>.pem2. chmod 400 <XYZ>.pem (read only, only by you)3. ssh -i <XYZ>.pem ubuntu@<Machine public DNS>Eureka!!!

• Windows:1. Use puttygen: Load <XYZ>.pem, Save private key: <XYZ>.ppk2. Use putty SSH Auth <XYZ>.ppk

Using the machines

• javacThe program 'javac' can be found in the following packages: * default-jdk * ecj * gcj-4.6-jdk * openjdk-6-jdk * gcj-4.5-jdk * openjdk-7-jdkTry: sudo apt-get install <selected package>

• sudo apt-get install openjdk-7-jdk• Secure copy files

scp -i <XYZ>.pem <files> ubuntu@<Machine’s DNS>:/home/ubuntu/

• Download fileswget <URL>

• Don’t forget to Stop the machines!

Using AWS Eclipse Plugin• Install “AWS toolkit for Eclipse”

http://aws.amazon.com/eclipse/– (If there is an installation problem) Install data tools from http

://download.eclipse.org/datatools/updates (DTP Update Site)• “Eclipse Data Tools Platform SDK 1.9.2”, And repeat step 1.

• Open “Preferences” from drop down menu

– Fill “Access Key ID” and “Secret Access Key” according to the ones you get in e-mail

• Open AWS Perspective by clicking the orange box– See that Amazon EC2 Instances view is populated

Questions