3. House Keeping
Silence your phones
Restrooms / Emergency Exits
Your instructor:
Joe Ziegler, zieglerj@amazon.com
AWS Technical Evangelist
@jiyosub
4. Setting Up, if you want to follow along
Install Firefox or Chrome
Sign up for AWS
@jiyosub
5. Audience for this Presentation
System Administrators
Solutions Architects / Cloud Architects
IT Professionals
Software Developers
...With enough experience using AWS
6. AWS Technical Workshop 101
Objective
Provide a basic understanding of:
Cloud Computing, Amazon Web Services
Provide a basic hands-on experience on:
Amazon EC2 and EBS
Amazon S3
Amazon CloudFront
Amazon RDS
6
10. Cloud Computing
1) Elastic Capacity
2) Faster time to market
3) No CapEx
4) Pay as you go, pay for what you use
5) Focus on your business
10
11. Amazon Web Services
Amazon Web Services provides a
+ Highly reliable
+ Scalable
+ Low-cost
Infrastructure Platform in the cloud that
powers hundreds of thousands of
businesses in 190 countries around the
world. 11
14. Amazon EC2
Availability Zones (AZ)
you can run your virtual servers in each AZ
19 Availability Zones in total (as of Dec 2012)
15. CloudFront + Route53
Content Delivery
Edge Locations DNS Service
South New York Amsterdam
Seattle (2) London
Bend
Newark Stockholm
Palo Alto Dublin
Tokyo
San Jose
Frankfurt
Paris
Los Angeles
Ashburn
(2) Hong
Jacksonville Kong
Dallas Sydney
St.Louis Miami Singapore
Sao
Paulo
38 Edge Locations in total (as of Dec 2012)
21. Amazon S3
Simple Storage Service
Object-based storage (no Filesystem)
Easily store/retrieve data
Durability of 99.999999999% or 99.99%
Integrated with other AWS Services
Scalable
Redundancy is managed transparently
File (Object): up to 5 TB each
HTTP, HTTPS, BitTorrent protocols
21
22. Amazon S3 Redundancy
Your Data
Any Amazon S3 Region
Data
Data
Data is replicated
multiple times Data
In case of failure,
data is replicated again, Data
Data
transparently
24. Amazon S3
Demo
Create an S3 Bucket
Upload/Download files
Work with access permissions
24
25. Amazon S3
Lab Exercise
Create a new S3 bucket in the Singapore region to store log files. E.g.
2012-jiyosub-logs (use your name)
Create a new S3 bucket in Singapore to store public content, and
configure logging using the previously created bucket, in a
subdirectory called my-s3-logs.
E.g. 2012-jiyosub-public
Upload a picture file, open it with a browser.
Play with permissions, make it private or public.
Also try Reduced Redundancy as an option.
25
29. Regions, Availability Zones,
Edge Locations
Amsterdam
Seattle South Bend New York (2)
London
Newark Stockholm
Palo Alto Dublin
Tokyo
San Jose
Frankfurt
Pari
Los Angeles s
Ashbur
(2) n
Jacksonvill Hong
Dalla e Kong
s
St.Loui Miam Singapor Sydney
s i e
Sao
Paulo
38 Edge Locations in total (as of Dec 2012)
30. Let’s simplify a bit:
we consider only a few of them
Stockholm
San Jose
Hong
Kong
Sao
Paulo
Your web servers
in Singapore
31. Content Delivery Network:
How it works
Stockholm
San Jose
Hong
Kong
Sao
Paulo
Dynamic pages (PHP, Java) (from web
Your web servers
servers)
in Singapore
Static content or streaming (with CloudFront)
32. Content Delivery Network:
How it works in details
1) A person opens a website, e.g.
http://www.amazon.com
2) The browser performs a DNS query
3) DNS responds: go to 72.21.214.128
4) A web server responds with a web page
5) Some objects inside the page require further queries
6) Some are hosted on CloudFront “distributions”
7) The browser will be directed to the closest location
8) Content will be served quickly and reliably
32
The user doesn’t need to know anything about CDNs
33. CloudFront + Route53
Edge Locations
Amsterdam
Seattle South Bend New York (2)
London
Newark Stockholm
Palo Alto Dublin
Tokyo
San Jose
Frankfurt
Pari
Los Angeles s
Ashbur
(2) n
Jacksonvill Hong
Dalla e Kong
s
St.Loui Miam Singapor Sydney
s i e
Sao
Paulo
38 Edge Locations in total (as of Dec 2012)
34. Amazon CloudFront
Use cases
Accelerated web content delivery
Off-load traffic from web servers
Big spikes in traffic
Event streaming
Marketing campaigns
34
35. Amazon CloudFront
Demo
Create a static distribution
Test the content
35
36. Amazon CloudFront
Lab Exercise
Use your S3 bucket 2012-jiyosub-public to create a
distribution using it as the origin.
Delivery method is Downloading.
Logging is into the S3 bucket: 2012-jiyosub-public
Place the logs under the directory my-cf-logs
Select one of your pictures, then open it with a browser.
Test it with your Cloud Buddy. (it might take 10-15 mins)
Once finished, destroy the CloudFront distribution.
36
39. Amazon EC2
Elastic Compute Cloud
Linux / Windows virtual machines
Elastic (scale in minutes)
Many Instance types (micro, small, large...)
AMI: Amazon Machine Image
VPC: Virtual Private Cloud
Security (Groups, Keys...)
VM Import
Auto Scaling, Elastic Load Balancing
39
40. Amazon EC2
Availability Zones (AZ)
21 Availability Zones in total (as of Dec 2012)
41. Amazon EC2
Use cases
Media
Hosting
High Performance Computing
Dev & Test
Internal Applications
Gaming
... Everything that needs computing!
41
42. Amazon EC2
Demo #1 (from Linux to Linux)
Create a new Security Group
Launch an Amazon EC2 instance (Linux)
Log in with SSH as ec2-user@
Install a web server
Create a simple web page
Test it on a browser: it works!
Create and attach an Elastic IP
Create an AMI from an EC2 Instance
42
43. Amazon EC2
Demo #2 (from Windows to
Windows)
Create a new Security Group for Windows
Launch a new EC2 instance (Windows)
Log in with RDP
If from Windows: log in with RDP
44
44. Amazon EC2
Lab Exercise
Create a new Security Group, “linux-web”
Enable SSH, HTTP, HTTPS
Create a new Keypair, and download it
Launch a t1.micro or t1.small using a Linux AMI
Enable CloudWatch
Associate it with Keypair and Security Group
Log in, install a web server, create a web page
Activate the web server, test it on a browser
Assign an Elastic IP to the Instance
Stop it. Create an AMI from the Instance.
Boot a second Instance from that AMI. Test it.
45
47. Amazon EBS
Elastic Block Store
Block Level Storage for use with EC2
Volume: 1 GB to 1 TB
Raw unformatted block device
Local to an Availability Zone
Redundant
Persistent
Point-in-time snapshots to Amazon S3
Integration with CloudWatch
48
48. Amazon EBS
Demo
Create a new EBS volume
Attach it to an EC2 Instance
Partition it and create a File System
Mount it; create a file in it
Create an EBS Snapshot
Create a new volume from the Snapshot
49
49. Amazon EBS
Lab Exercise
Create a new 5 GB volume, in the same AZ as your running
EC2 Instance
Attach it
Log into the EC2 Instance, confirm the volume is visible
Partition the volume, create a File System (ext3)
Mount the volume
Create a file in it
Unmount it
Create a snapshot from the Management Console
Create a volume from the snapshot
Mount the new snapshot, verify that the file is there
50
52. Amazon RDS
Relational Database Service
Relational Database “as a Service”
Simple to Deploy
Managed by the AWS team
MySQL, SQLServer or Oracle (as of 2012)
Scalable
Optional: automatic Standby Replica
Optional: multiple Read-Only copies
Easy DB Snapshots and automated backup
53
53. Amazon RDS
Demo
Create a DB Instance on RDS (MySQL)
Enable Multi-AZ Deployment
Enable one Read Replica
Optional: connect to the DB Instance
54
54. Amazon RDS
Lab Exercise
From the AWS Management Console, under Amazon
RDS, create a new DB Instance (MySQL)
Enable Multi-AZ Deployment
Once the DB Instance is running, enable Read Replica
Perform a manual DB Snapshot
Optional: connect to the DB Instance, create a new
Database, a new Table, enter some values
55
56. IMPORTANT!
To avoid unwanted running costs:
+ Delete your S3 objects
+ Destroy your CloudFront distributions
+ Stop or Shut Down your EC2 and RDS instances
The customer is responsible for the resources he’s using.
AWS declines any responsibility if the customer forgets
to shut down resources.
57