Top Banner
Getting Started with AWS Adam Glick
36

AWS Webcast - Getting Started with Amazon Web Services

Jan 15, 2015

Download

Technology

Learn how to use Amazon Web Services (AWS). This "how-to" webinar will cover the basics to get started with AWS. After a brief overview, this session will dive into discussions of core AWS services and provide demonstrations of how to set up and utilize those services. Demonstrations and discussions will include:
- Setting up and connecting to your first Elastic Compute Cloud (EC2) virtual machine
- How to backup and restore your virtual machine instance
- How to set an email alert for changes in your virtual machine instance
- How to Upload files to Amazon's Simple Storage Service (S3) and make them publicly available on the Internet
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 Webcast - Getting Started with Amazon Web Services

Getting Started with AWS

Adam Glick

Page 2: AWS Webcast - Getting Started with Amazon Web Services

Agenda:

• Fundamental pillars of the AWS cloud

• The typical cloud user progression

• Getting started walk-thru

• Q&A

Page 3: AWS Webcast - Getting Started with Amazon Web Services

Fundamentals of the AWS Cloud

Global Presence Complete Set

of Services

Instant Access

to Resources Low Cost IT

Flexibility

Productive

Page 4: AWS Webcast - Getting Started with Amazon Web Services

What is Available from AWS

AWS Global Infrastructure

Application Services

Networking

Deployment & Administration

Database Storage Compute

Page 5: AWS Webcast - Getting Started with Amazon Web Services

Typical Startup Growth Cycle

Colocation

Server room

Cloud $

$

Create Share Deploy Scale up Scale out Manage & Optimize

Server PC

Page 6: AWS Webcast - Getting Started with Amazon Web Services

Shortcut

Elastic Beanstalk

• Supports common platforms:

• Java, Ruby, Python, PHP, Node.js, .Net

• Automatic deployment; upload and go.

• No infrastructure planning needed; handles: load

balancing, virtual machines, databases,

monitoring, etc.

• Resources are automatically allocated

• Scales automatically (horizontally)

Page 7: AWS Webcast - Getting Started with Amazon Web Services

Free tier

• Includes most of the AWS services

• Available for all new account

• Good for one year from the day the account is created

• Everything we show today can be done within the free

tier

• More details at http://aws.amazon.com/free

FREE

Page 8: AWS Webcast - Getting Started with Amazon Web Services

Let’s Get Started:

We’ll learn how to: – Set up an AWS account

– Create your SSH keys (used to log into your instances)

– Create a security group (firewall)

– Start an EC2 instance (virtual machine)

– Connect to your EC2 instance

– Create a CloudWatch alarm to email you if your server is under heavy load

– Take a snapshot (backup) of your instance and restore it

– Use S3 (Internet connected storage)

Page 9: AWS Webcast - Getting Started with Amazon Web Services

Sign Up

• Sign up though https://aws.amazon.com

• You need a CC

• There will be a phone verification

Page 10: AWS Webcast - Getting Started with Amazon Web Services

Demo Signing Up for AWS

Page 11: AWS Webcast - Getting Started with Amazon Web Services

Creating your SSH Key

• SSH stands for Secure Shell

• SSH keys are used for secured access to EC2 (Linux)

• SSH keys avoid password weaknesses

• Can import your own or use AWS created keys

Page 12: AWS Webcast - Getting Started with Amazon Web Services

Demo Creating SSH Keys

Page 13: AWS Webcast - Getting Started with Amazon Web Services

Creating a Security Group

• Security Groups are firewalls for your instances

• By default, the Security Group blocks everything

• Choose which protocols & ports are open – Can use port ranges (e.g. 22-24)

• Choose which addresses the ports are open to – Uses CIDR rules for IP address access

– (use /32 for allowing a single address)

Page 14: AWS Webcast - Getting Started with Amazon Web Services

Demo Creating a Security Group

Page 15: AWS Webcast - Getting Started with Amazon Web Services

Start a New Instance

• Instances are virtual machines running in the cloud

• You have full control of the instance and can install

any software that you choose

• In this process, you define what kind of machine you

want (processing power, HD space, etc.)

• You will need: – A Key Pair to connect to your instance via SSH

– A Security Group to put your instance in

Page 16: AWS Webcast - Getting Started with Amazon Web Services

Demo Starting an EC2 Instance

Page 17: AWS Webcast - Getting Started with Amazon Web Services

Select Choose one or more of your existing Security groups

Page 18: AWS Webcast - Getting Started with Amazon Web Services

Connecting to EC2 Instances

• SSH is used to connect to Linux – There is a Java-based terminal available in the EC2 Console

– Linux/OSX: Terminal

– Windows: PuTTY

– Note: If you are using an Linux distribution that has a GUI, you can use a remote GUI tool like VNC

• Remote Desktop is used to connect to Windows – Windows: MSTSC (Microsoft Terminal Services Client)

– Linux/OSX: 2X client

– Note: you can also use Remote PowerShell or a 3rd party shell extension with Windows.

Page 19: AWS Webcast - Getting Started with Amazon Web Services

Connecting to a Linux Instance (from Linux/OSX)

• Open a terminal window

• ssh -i {ssh private key location} ec2-

user@{public DNS name}

Page 20: AWS Webcast - Getting Started with Amazon Web Services

Connecting to a Linux Instance (from Windows)

• Download/Install PuTTY – http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

• Convert .pem file to .ppk with puttygen

• Create a connection in PuTTY

Page 21: AWS Webcast - Getting Started with Amazon Web Services

Connecting to a Windows Instance (from Windows)

• Open a Remote Desktop connection

• Windows + r or start and then the “run” option

• mstsc /v:{EC2 instance public DNS Name}

Page 22: AWS Webcast - Getting Started with Amazon Web Services

Demo Connecting to a Linux EC2 Instance

from Windows

Page 23: AWS Webcast - Getting Started with Amazon Web Services

Demo Connecting to a Linux EC2 Instance

Page 24: AWS Webcast - Getting Started with Amazon Web Services

CloudWatch

• CloudWatch provides monitoring information for your EC2 instances

• CloudWatch allows you to specify actions to take when a condition is met – Example 1: Send an email when CPU Utilization >80% for 5

minutes

– Example 2: Add another machine to an Auto-Scaling Group if Average Disk Read IOPS across an Auto-Scaling Group exceeds 500

– Example 3: Remove a machine from an Auto-Scaling Group if Network input drops below 2,000 Bytes

Page 25: AWS Webcast - Getting Started with Amazon Web Services

Demo Creating a CloudWatch Alarm

Page 26: AWS Webcast - Getting Started with Amazon Web Services

Additional Information

• CloudWatch works with Auto-Scaling

• When you have defined an Auto-Scaling Group,

CloudWatch Alarms can be used to increase

and decrease the resources in the Auto-Scaling

Group.

Page 27: AWS Webcast - Getting Started with Amazon Web Services

Elastic Block Storage

• Elastic Block Storage (EBS) is block level

storage for EC2 instances (think HDD)

• EBS volumes can be removed and re-attached

• Custom volume sizes from 1TB – 1 GB (RAID

for larger)

• Use Provisioned IOPS for predictable I/O

Page 28: AWS Webcast - Getting Started with Amazon Web Services

Demo Backing up an EBS volume

Page 29: AWS Webcast - Getting Started with Amazon Web Services

Restoring a Snapshot / Creating an AMI

• AMIs are Amazon Machine Images

• AMIs are bootable versions of a snapshot (backup)

• AMIs are private, but you can choose to share them

with others

Page 30: AWS Webcast - Getting Started with Amazon Web Services

Demo Creating an AMI / Restoring a Snapshot

Page 31: AWS Webcast - Getting Started with Amazon Web Services

S3

• S3 is Amazon’s Simple Storage Service

• Store and retrieve almost any amount of data – 1 Byte to 5 Terabytes

• Highly scalable

• Highly durable – Regular S3 has 99.999999999% durability

– Reduced Redundancy Storage (RRS) offers 99.99% durability at discount

• Encryption available – At rest and for ingest/delivery

• Storage is isolated by region

• Object level permissions

• Easily Accessible – Web (HTTP/HTTPS)

– P2P (BitTorrent)

– APIs (REST & SOAP)

Page 32: AWS Webcast - Getting Started with Amazon Web Services

Demo Using S3

Page 33: AWS Webcast - Getting Started with Amazon Web Services

Summary

• We covered: – Signing up (and in) with AWS

– Creating SSH Keys (not needed for Windows)

– Configuring a Security Group (setting firewall rules)

– Creating an EC2 instance

– Connecting to an EC2 instance

– Creating a snapshot of your instance (Taking a backup)

– Restoring a snapshot of your instance (Creating an AMI)

– Setting a CloudWatch Alarm

– Creating an S3 bucket, uploading a file, & making the file public

Page 34: AWS Webcast - Getting Started with Amazon Web Services

Thank You!

Page 35: AWS Webcast - Getting Started with Amazon Web Services

Interested to Learn More?

Sign up for the next webinar in the series at:

http://aws.amazon.com/about-aws/events/

Page 36: AWS Webcast - Getting Started with Amazon Web Services

Questions?

Also engage with us at:

Twitter: @AWSCloud

Forums: https://forums.aws.amazon.com