Se ha denunciado esta presentación.
Utilizamos tu perfil de LinkedIn y tus datos de actividad para personalizar los anuncios y mostrarte publicidad más relevante. Puedes cambiar tus preferencias de publicidad en cualquier momento.
1© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Hands-on Workshop
Amazon EC2 and Amazon VPC
...
2© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Welcome to the Workshop!
Wi-Fi: Guest
PWD: Echo@...
3© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Agenda
9:00am - 9:30am Registration
9:30am - 10:...
4© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Introductions and Logistics
Welcome!
Lab Guide
L...
5© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Who am I?
Kwun-Hok Chan
SA - Solutions Architect
6© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Overview
7© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
* As of 1 January 2017
2010
61
516
1,017
159
201...
Technical
& Business
Support
Hybrid
Architecture
Application Marketplace
Analytics
Application
Services
Mobile
Services
De...
ENTERPRISE
APPS
DEVELOPMENT & OPERATIONSMOBILE SERVICESAPP SERVICESANALYTICS
Data
Warehousing
Hadoop/
Spark
Streaming Data...
16 Regions – 42 Availability Zones – 74 Edge Locations
Region & Number of Availability Zones
AWS GovCloud (2) EU
Ireland (...
11© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Global Infrastructure
Regions
Geographic lo...
12© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Availability Zones (AZs)
At least 2 AZs per reg...
13© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
AZ – Availability Zone
Single
digit
ms
Network
...
14© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
AZ – Availability Zone
Network
multiple tier‐1 ...
15© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Edge Locations
70+ AWS Edge Locations:
Local po...
16© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Any questions?
17© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Elastic Compute
Cloud (EC2)
18© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Elastic Compute Cloud (EC2)
Resizable co...
19© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon EC2 Facts
Scale capacity as your computi...
20© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Launching an Amazon EC2 Instance via the Web
Co...
21© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Machine Image (AMI) Details
An AMI inclu...
22© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Instances and AMIs
Select an AMI based on:
Regi...
23© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon EC2 Instances
OS, Applications,
& Config...
24© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon EBS vs. Amazon EC2 Instance Store
Amazon...
25© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon EBS vs. Amazon EC2 Instance Store
Amazon...
26© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
AMI Types - Storage for the Root Device
Charact...
27© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Instance Lifecycle
AMI
pending
Launch
runningre...
28© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Marketplace – IT Software Optimized for the...
29© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Choosing the Right Amazon EC2 Instance
EC2 inst...
30© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
M4
General
purpose
Compute
optimized
C3
C1 CC2
...
31© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
C4.xlarge (Compute-Optimized)
FamilyGeneration
...
32© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
r3.large
2
15
m3.large
2
7.5
c3.large
2
3.7
c3....
33© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
2006 2008 2010 2012 2014 2016
m1.small
m1.large...
34© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
M2
2nd Generation
Compute
M4
4th Generation
Com...
35© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Current Generation Instances
Instance Family So...
36© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Instance Metadata & User Data
Instance Metadata...
37© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Retrieving Instance Metadata
To view all catego...
38© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Adding User Data
You can specify user data when...
39© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
User Data Example Linux
User data shell scripts...
40© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
User Data Example Windows
<powershell>
Import-M...
41© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Retrieving User Data
To retrieve user data,
use...
42© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon EC2 Purchasing Options
On-Demand
Instanc...
43© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Any questions about
Amazon EC2?
44© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Simple Storage Service (S3)
Amazon S3
St...
45© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Common Use Scenarios
Storage and Backup
Applica...
46© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon S3 Pricing
Pay only for what you use
No ...
47© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon S3 Concepts
Amazon S3 stores data as obj...
48© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Object Keys
An object key is the unique identif...
49© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon S3 Security
You can control access to bu...
50© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon S3 Object Lifecycle
Lifecycle management...
51© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon S3 + Amazon Glacier
S3 Lifecycle policie...
52© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Elastic Block Store (EBS)
Persistent blo...
53© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon EBS Lifecycle
Vast amounts of
unused spa...
54© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon EBS Facts
You can create:
 EBS Magnetic...
55© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon EBS Use Cases
OS – Use for boot/root vol...
56© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon EBS Pricing
* Check Amazon EBS Pricing p...
57© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon EBS and Amazon S3
Amazon EBS Amazon S3
P...
58© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Any questions
about Amazon S3 and
Amazon EBS?
59© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Networking
Amazon VPC
60© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Virtual Private Cloud (VPC)
Provision a ...
61© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
VPCs and Subnets
A subnet defines a range of IP...
62© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon VPC Example
Availability Zone A
Virtual ...
63© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Security in Your VPC
Security groups
Network ac...
64© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
VPN Connections
VPN Connectivity option Descrip...
65© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Any questions about
networking?
66© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Hands-on Lab
Build your VPC and launch a web se...
67© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Welcome to the Workshop!
Wi-Fi: Guest
PWD: Echo...
68© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Lab Overview
1
• Create a VPC
• 2 Public Subnet...
69© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Lab 1 – Build your VPC and launch a web server
...
70© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Lab 1 FAQ
Step 1.1.7
 For Key pair name, selec...
71© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Course Wrap-Up
72© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Learning Path
Cloud Computing
Concepts
• The AW...
73© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Expand Your Cloud Skills with AWS
Certification...
74© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Self-Paced Labs
For more information, see aws.a...
75© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Training Courses
For more information about...
76© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Certification
AWS Certified Solutions
Archi...
77© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Business Development,
Solutions Architect,
Trai...
78© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
What’s next
Terminate your AWS lab resources
Tr...
79© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
Remember to complete
your evaluations!
80© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
http://bit.ly/2uyXh7m
Email: khchan@amazon.com
81© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2016 Amazon Web Services, Inc. or its affilia...
Próxima SlideShare
Cargando en…5
×

Amazon EC2 and Amazon VPC Hands-on Workshop

1.130 visualizaciones

Publicado el

AWS Infrastructure Services

Amazon infrastructure services (Amazon EC2, Amazon S3, Amazon EBS, and Amazon VPC) form the backbone platform for hundreds of thousands of AWS customers. In this hands-on workshop we will take you to walk through these infrastructure services and how you can use them to match capacity and costs requirement. This hands-on workshop is designed to combine best practices with the sharing of practical implementation experience.
Reasons to Attend:

Understand how to use Amazon EC2 and related considerations
Understand the differences between Amazon S3 and Amazon EBS and related use cases
Learn how to optimise your costs by combining On Demand, Reserved and Spot Instances
Learn how to create a VPC and subnets and related configurations
Discover additional resources that you can access to learn more
Discover news and updates of AWS infrastructure services

  • Sé el primero en comentar

Amazon EC2 and Amazon VPC Hands-on Workshop

  1. 1. 1© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Hands-on Workshop Amazon EC2 and Amazon VPC Kwun-Hok Chan, Solutions Architect
  2. 2. 2© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Welcome to the Workshop! Wi-Fi: Guest PWD: Echo@@179 1. Make sure you can connect to Internet 2. Download • Lab guide: http://bit.ly/2gYMUF4 3. Sign in or create an AWS Account • How to create: http://bit.ly/create-aws-account • IAM Best Practices: http://docs.aws.amazon.com/IAM/latest/UserGuide/best- practices.html#create-iam-users
  3. 3. 3© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Agenda 9:00am - 9:30am Registration 9:30am - 10:30pm Amazon EC2, Amazon S3 and Amazon EBS 10:30am - 10:45am Break 10:45am - 11:15am Amazon VPC 11:15am - 12:15pm Lab: Build a VPC and Deploy a Web Server 12:15pm - 12:30pm Workshop Wrap Up
  4. 4. 4© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Introductions and Logistics Welcome! Lab Guide Logistics, Bathrooms, Breaks Please limit your network usage to work & classroom-related activities Questions Welcome!
  5. 5. 5© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Who am I? Kwun-Hok Chan SA - Solutions Architect
  6. 6. 6© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Overview
  7. 7. 7© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. * As of 1 January 2017 2010 61 516 1,017 159 2012 2014 2016 AWS has been continually expanding its services to support virtually any cloud workload, and it now has more than 90 services that range from compute, storage, networking, database, analytics, application services, deployment, management, developer, mobile, Internet of Things (IoT), Artificial Intelligence (AI), security, hybrid and enterprise applications. AWS has launched a total of 1,017 new features and/or services year to date* - for a total of 2,913 new features and/or services since inception in 2006. AWS Pace of Innovation
  8. 8. Technical & Business Support Hybrid Architecture Application Marketplace Analytics Application Services Mobile Services Development & Operations Internet of Things Enterprise Applications Security & Compliance Core Services Infrastructure
  9. 9. ENTERPRISE APPS DEVELOPMENT & OPERATIONSMOBILE SERVICESAPP SERVICESANALYTICS Data Warehousing Hadoop/ Spark Streaming Data Collection Machine Learning Elastic Search Virtual Desktops Sharing & Collaboration Corporate Email Backup Queuing & Notifications Workflow Search Email Transcoding One-click App Deployment Identity Sync Single Integrated Console Push Notifications DevOps Resource Management Application Lifecycle Management Containers Triggers Resource Templates TECHNICAL & BUSINESS SUPPORT Account Management Support Professional Services Training & Certification Security & Pricing Reports Partner Ecosystem Solutions Architects MARKETPLACE Business Apps Business Intelligence Databases DevOps Tools NetworkingSecurity Storage Regions Availability Zones Points of Presence INFRASTRUCTURE CORE SERVICES Compute VMs, Auto-scaling, & Load Balancing Storage Object, Blocks, Archival, Import/Export Databases Relational, NoSQL, Caching, Migration Networking VPC, DX, DNS CDN Access Control Identity Management Key Management & Storage Monitoring & Logs Assessment and reporting Resource & Usage Auditing SECURITY & COMPLIANCE Configuration Compliance Web application firewall HYBRID ARCHITECTURE Data Backups Integrated App Deployments Direct Connect Identity Federation Integrated Resource Management Integrated Networking API Gateway IoT Rules Engine Device Shadows Device SDKs Registry Device Gateway Streaming Data Analysis Business Intelligence Mobile Analytics
  10. 10. 16 Regions – 42 Availability Zones – 74 Edge Locations Region & Number of Availability Zones AWS GovCloud (2) EU Ireland (3) US West Frankfurt (2) Oregon (3) London (2) Northern California (3) Asia Pacific US East Singapore (2) N. Virginia (5), Ohio (3) Sydney (3), Tokyo (3), Seoul (2), Mumbai (2) Canada Central (2) China Beijing (2) South America São Paulo (3) Announced Regions Paris, Ningxia, Stockholm, Hong Kong AWS Global Infrastructure
  11. 11. 11© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Global Infrastructure Regions Geographic locations Consists of at least two Availability Zones (AZs) Availability Zones Clusters of data centers Isolated from failures in other Availability Zones
  12. 12. 12© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Availability Zones (AZs) At least 2 AZs per region. Examples:  US East (N. Virginia) • us-east-1a • us-east-1b • us-east-1c • us-east-1d • us-east-1e  Asia Pacific (Tokyo) • ap-northeast-1a • ap-northeast-1b • ap-northeast-1c Note: Conceptual drawing only. The number of Availability Zones (AZ) may vary. US East (VA) AZ - A AZ - B AZ - C AZ - D AZ - E Asia Pacific (Tokyo) AZ - A AZ - B AZ - C
  13. 13. 13© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. AZ – Availability Zone Single digit ms Network multiple tier‐1 transit providers Power isolated electrical grids, UPS, onsite backup generator Geo isolated fault lines flood plains Network multiple tier‐1 transit providers Power isolated electrical grids, UPS, onsite backup generator Geo isolated fault lines flood plains
  14. 14. 14© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. AZ – Availability Zone Network multiple tier‐1 transit providers Power isolated electrical grids, UPS, onsite backup generator Geo isolated fault lines flood plains Network multiple tier‐1 transit providers Power isolated electrical grids, UPS, onsite backup generator Geo isolated fault lines flood plains Web DB Master Load Balancer DB Slave Web Storage StorageSingle digit ms
  15. 15. 15© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Edge Locations 70+ AWS Edge Locations: Local points-of-presence commonly supporting AWS services including:  Amazon Route 53  Amazon CloudFront
  16. 16. 16© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Any questions?
  17. 17. 17© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon Elastic Compute Cloud (EC2)
  18. 18. 18© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon Elastic Compute Cloud (EC2) Resizable compute capacity Complete control of your computing resources Reduces the time required to obtain and boot new server instances to minutesAmazon EC2
  19. 19. 19© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon EC2 Facts Scale capacity as your computing requirements change Pay only for capacity that you actually use Choose Linux or Windows Deploy across AWS Regions and Availability Zones for reliability
  20. 20. 20© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Launching an Amazon EC2 Instance via the Web Console 1. Determine the AWS Region in which you want to launch the Amazon EC2 instance. 2. Launch an Amazon EC2 instance from a pre-configured Amazon Machine Image (AMI). 3. Choose an instance type based on CPU, memory, storage, and network requirements. 4. Configure network, IP address, security groups, storage volume, tags, and key pair.
  21. 21. 21© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon Machine Image (AMI) Details An AMI includes the following: A template for the root volume for the instance (for example, an operating system, an application server, and applications). Launch permissions that control which AWS accounts can use the AMI to launch instances. A block device mapping that specifies the volumes to attach to the instance when it's launched.
  22. 22. 22© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Instances and AMIs Select an AMI based on: Region Operating system Architecture (32-bit or 64-bit) Launch permissions Storage for the root device AMI Instances Instance Launch instances of any type Host computer Host computer
  23. 23. 23© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon EC2 Instances OS, Applications, & Configuration AMI Running or Stopped VM Instances AZ VPC Region EBS S3 EBS Snapshots S3 Buckets EBS EBS EBS EBS EBS AZ Instances Instances
  24. 24. 24© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon EBS vs. Amazon EC2 Instance Store Amazon EBS  Data stored on an Amazon EBS volume can persist independently of the life of the instance.  Storage is persistent. Amazon EC2 Instance Store  Data stored on a local instance store persists only as long as the instance is alive.  Storage is ephemeral.
  25. 25. 25© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon EBS vs. Amazon EC2 Instance Store Amazon EC2 Instance StoreAmazon EBS
  26. 26. 26© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. AMI Types - Storage for the Root Device Characteristic Amazon EBS-Backed Amazon Instance Store-Backed Boot time Usually < 1 minute Usually < 5 minutes Size limit 16 TiB 10 GiB Data persistence The root volume is deleted when the instance terminates. Data on any other Amazon EBS volumes persists after instance termination. Data on any instance store volumes persists only during the life of the instance. Charges Instance usage, Amazon EBS volume usage, and storing your AMI as an Amazon EBS snapshot. Instance usage and storing your AMI in Amazon S3. Stopped state Can be stopped. Cannot be stopped.
  27. 27. 27© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Instance Lifecycle AMI pending Launch runningrebooting Reboot Start terminated shutting-down Terminate Terminate EBS-backed instances only Stop stopping stopped
  28. 28. 28© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Marketplace – IT Software Optimized for the Cloud An online store to discover, purchase, and deploy IT software on top of the AWS infrastructure.  Catalog of 2300+ IT software solutions • Including Paid, BYOL, Open Source, SaaS, & free to try options  Pre-configured to operate on AWS • Software checked by AWS for security and operability  Deploys to AWS environment in minutes  Flexible, usage-based billing models  Software charges billed to AWS account Includes AWS Test Drive
  29. 29. 29© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Choosing the Right Amazon EC2 Instance EC2 instance types are optimized for different use cases and come in multiple sizes. This allows you to optimally scale resources to your workload requirements. AWS uses Intel® Xeon® processors for EC2 instances, providing customers with high performance and value. Consider the following when choosing your instances: Core count, memory size, storage size and type, network performance, and CPU technologies. Hurry Up and Go Idle - A larger compute instance can save you time and money, therefore paying more per hour for a shorter amount of time can be less expensive.
  30. 30. 30© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. M4 General purpose Compute optimized C3 C1 CC2 Storage and IO optimized D2I2 G2 GPU enabled CG1 Memory optimized R3 M2 CR1 C4 M3T1 HS1 INSTANCE TYPES
  31. 31. 31© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. C4.xlarge (Compute-Optimized) FamilyGeneration TypeFamily
  32. 32. 32© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. r3.large 2 15 m3.large 2 7.5 c3.large 2 3.7 c3.xlarge 4 7.5 c4.xlarge 4 7.5 Instance Type vCPU Mem (GiB) General Purpose Compute Optimized Memory Optimized 1 - 40 0.5 - 244
  33. 33. 33© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. 2006 2008 2010 2012 2014 2016 m1.small m1.large m1.xlarge c1.medium c1.xlarge m2.xlarge m2.4xlarge m2.2xlarge cc1.4xlarge t1.micro cg1.4xlarge cc2.8xlarge m1.medium hi1.4xlarge m3.xlarge m3.2xlarge hs1.8xlarge cr1.8xlarge c3.large c3.xlarge c3.2xlarge c3.4xlarge c3.8xlarge g2.2xlarge i2.xlarge i2.2xlarge i2.4xlarge i2.4xlarge m3.medium m3.large r3.large r3.xlarge r3.2xlarge r3.4xlarge r3.8xlarge t2.micro t2.small t2.med c4.large c4.xlarge c4.2xlarge c4.4xlarge c4.8xlarge d2.xlarge d2.2xlarge d2.4xlarge d2.8xlarge g2.8xlarge t2.large m4.large m4.xlarge m4.2xlarge m4.4xlarge m4.10xlarge History
  34. 34. 34© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. M2 2nd Generation Compute M4 4th Generation Compute Upgrade
  35. 35. 35© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Current Generation Instances Instance Family Some Use Cases General purpose (t2, m4, m3) • Low-traffic websites and web applications • Small databases and mid-size databases Compute optimized (c4, c3) • High performance front-end fleets • Video-encoding Memory optimized (x1, r4, r3) • High performance databases • Distributed memory caches Storage optimized (i2, d2) • Data warehousing • Log or data-processing applications GPU instances (p2, g2) • 3D application streaming • Machine learning
  36. 36. 36© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Instance Metadata & User Data Instance Metadata: Is data about your instance. Can be used to configure or manage a running instance. Instance User Data: Can be passed to the instance at launch. Can be used to perform common automated configuration tasks. Runs scripts after the instance starts.
  37. 37. 37© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Retrieving Instance Metadata To view all categories of instance metadata from within a running instance, use the following URI: http://169.254.169.254/latest/meta- data/ On a Linux instance, you can use:  $ curl http://169.254.169.254/latest/meta-data/  $ GET http://169.254.169.254/latest/meta-data/ All metadata is returned as text (content type text/plain).
  38. 38. 38© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Adding User Data You can specify user data when launching an instance. User data can be:  Linux script – executed by cloud-init  Windows batch or PowerShell scripts – executed by EC2Config service User data scripts run once per instance-id by default.
  39. 39. 39© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. User Data Example Linux User data shell scripts must start with the #! characters and the path to the interpreter you want to read the script. Install Apache web server Enable the web server Start the web server #!/bin/sh yum -y install httpd chkconfig httpd on /etc/init.d/httpd start
  40. 40. 40© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. User Data Example Windows <powershell> Import-Module ServerManager Install-WindowsFeature web-server, web-webserver Install-WindowsFeature web-mgmt-tools </powershell> Import the Server Manager module for Windows PowerShell. Install IIS Install Web Management Tools
  41. 41. 41© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Retrieving User Data To retrieve user data, use the following URI: http://169.254.169.254/ latest/user-data On a Linux instance, you can use:  $ curl http://169.254.169.254 /latest/user-data/  $ GET http://169.254.169.254 /latest/user-data/
  42. 42. 42© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon EC2 Purchasing Options On-Demand Instances Pay by the hour. Reserved Instances Purchase at significant discount. Instances are always available. 1-year to 3-year terms. Scheduled Instances Purchase a 1- year RI for a recurring period of time. Spot Instances Highest bidder uses instance at a significant discount. Spot blocks supported. Dedicated Hosts Physical host is fully dedicated to run your instances. Bring your per-socket, per-core, or per- VM software licenses to reduce cost.
  43. 43. 43© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Any questions about Amazon EC2?
  44. 44. 44© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon Simple Storage Service (S3) Amazon S3 Storage for the Internet Natively online, HTTP access Store and retrieve any amount of data, any time, from anywhere on the web Highly scalable, reliable, fast and durable
  45. 45. 45© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Common Use Scenarios Storage and Backup Application File Hosting Media Hosting Software Delivery Store AMIs and Snapshots
  46. 46. 46© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon S3 Pricing Pay only for what you use No minimum fee Prices based on location of your Amazon S3 bucket Estimate monthly bill using the AWS Simple Monthly Calculator Pricing is available as:  Storage Pricing  Request Pricing  Data Transfer Pricing: data transferred out of Amazon S3
  47. 47. 47© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon S3 Concepts Amazon S3 stores data as objects within buckets An object is composed of a file and optionally any metadata that describes that file You can have up to 100 buckets in each account You can control access to the bucket and its objects Amazon S3 Bucket with Objects Bucket Object
  48. 48. 48© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Object Keys An object key is the unique identifier for an object in a bucket. http://doc.s3.amazonaws.com/2006-03-01/AmazonS3.html Bucket Object/Key
  49. 49. 49© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon S3 Security You can control access to buckets and objects with:  Access Control Lists (ACLs)  Bucket policies  Identity and Access Management (IAM) policies You can upload or download data to Amazon S3 via SSL encrypted endpoints. You can encrypt data using AWS SDKs.
  50. 50. 50© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon S3 Object Lifecycle Lifecycle management defines how Amazon S3 manages objects during their lifetime. Some objects that you store in an Amazon S3 bucket might have a well-defined lifecycle: Log files Archive documents Digital media archives Financial and healthcare records Raw genomics sequence data Long-term database backups Data that must be retained for regulatory compliance
  51. 51. 51© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon S3 + Amazon Glacier S3 Lifecycle policies allow you to delete or move objects based on age and set rules per S3 bucket. bucket with objects 30 Days Glacier archive 365 Days
  52. 52. 52© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon Elastic Block Store (EBS) Persistent block level storage volumes offering consistent and low-latency performance Automatically replicated within its Availability Zone Snapshots stored durably in Amazon S3 Amazon EBS
  53. 53. 53© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon EBS Lifecycle Vast amounts of unused space Create Call CreateVolume 1 GB to 16 TB Attach Call AttachVolume to affiliate with one Amazon EC2 instance Attached and In Use • Format from Amazon EC2 instance OS • Mount formatted drive CreateSnapshot Snapshot to Amazon S3 Detach Call DetachVolume Deleted Call DeleteVolume
  54. 54. 54© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon EBS Facts You can create:  EBS Magnetic volumes from 1 GiB to 1 TiB in size.  EBS General Purpose (SSD) and Provisioned IOPS (SSD) volumes up to 16 TiB in size. You can use encrypted EBS volumes to meet a wide range of data at-rest encryption requirements for regulated/audited data and applications. You can create point-in-time snapshots of EBS volumes, which are persisted to Amazon S3.
  55. 55. 55© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon EBS Use Cases OS – Use for boot/root volume, secondary volumes Databases – Scales with your performance needs Enterprise applications – Provides reliable block storage to run mission-critical applications Business continuity – Minimize data loss and recovery time by regularly backing up using EBS Snapshots Applications – Install and persist any application
  56. 56. 56© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon EBS Pricing * Check Amazon EBS Pricing page for current pricing for all regions. Pay for what you provision: Pricing based on region AWS GovCloud (US) Pricing page Review Pricing Calculator online Pricing is available as: Storage IOPS
  57. 57. 57© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon EBS and Amazon S3 Amazon EBS Amazon S3 Paradigm Block storage with file system Object store Performance Very fast Fast Redundancy Across multiple servers in an Availability Zone Across multiple facilities in a Region Security EBS Encryption – Data volumes and Snapshots Encryption Access from the Internet? No (1) Yes (2) Typical use case It is a disk drive Online storage (1) Accessible from the Internet if mounted to server and set up as FTP, etc. (2) Only with proper credentials, unless ACLs are world-readable
  58. 58. 58© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Any questions about Amazon S3 and Amazon EBS?
  59. 59. 59© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Networking Amazon VPC
  60. 60. 60© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon Virtual Private Cloud (VPC) Provision a private, isolated virtual network on the AWS cloud. Have complete control over your virtual networking environment. Amazon VPC
  61. 61. 61© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. VPCs and Subnets A subnet defines a range of IP addresses in your VPC. You can launch AWS resources into a subnet that you select. A private subnet should be used for resources that won’t be accessible over the Internet. A public subnet should be used for resources that will be accessed over the Internet. Each subnet must reside entirely within one Availability Zone and cannot span zones.
  62. 62. 62© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon VPC Example Availability Zone A Virtual Private Cloud AWS Cloud Public Subnet Internet Virtual Private Cloud Availability Zone B Private Subnet Availability Zone C VPN Only Subnet DB Server DB Server App Server DB Server DB Server DB Server Web Server Web Server NAT Customer Network R
  63. 63. 63© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Security in Your VPC Security groups Network access control lists (ACLs) Subnet 10.0.0.0/24 Internet GatewayVPN Gateway VPC Router 10.0.0.0/16 Security Group Security Group Security Group Network ACL Network ACL Routing Table Routing Table Instance Instance Instance Instance Subnet 10.0.1.0/24
  64. 64. 64© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. VPN Connections VPN Connectivity option Description AWS Hardware VPN You can create an IPsec, hardware VPN connection between your VPC and your remote network. AWS Direct Connect AWS Direct Connect provides a dedicated private connection from a remote network to your VPC. AWS VPN CloudHub You can create multiple AWS hardware VPN connections via your VPC to enable communications between various remote networks. Software VPN You can create a VPN connection to your remote network by using an Amazon EC2 instance in your VPC that’s running a software VPN appliance.
  65. 65. 65© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Any questions about networking?
  66. 66. 66© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Hands-on Lab Build your VPC and launch a web server (Use your AWS account)
  67. 67. 67© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Welcome to the Workshop! Wi-Fi: Guest PWD: Echo@@179 1. Make sure you can connect to Internet 2. Download • Lab guide: http://bit.ly/2gYMUF4 3. Sign in or create an AWS Account • How to create: http://bit.ly/create-aws-account
  68. 68. 68© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Lab Overview 1 • Create a VPC • 2 Public Subnets • 2 Private Subnets • Across 2 Availability Zones 2 • Create an Application Server • Create a Security Group for your instance • Launch your instance
  69. 69. 69© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Lab 1 – Build your VPC and launch a web server Region Availability Zone A Web Server 1 Public Subnet 2 (10.0.2.0/24) NAT Server security group 10.0.0.0/16 security group Availability Zone B Private Subnet 2 (10.0.4.0/24) Public Subnet 1 (10.0.1.0/24) Private Subnet 1 (10.0.3.0/24)
  70. 70. 70© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Lab 1 FAQ Step 1.1.7  For Key pair name, select the No key pair. Step 1.2.8  Select Public Subnet 2, ensure all other subnets are cleared, and then click Route Table in the lower pane. Scroll down and verify that the Target for Destination 0.0.0.0/0 contains the prefix igw. If it does not, …  Wi-Fi: Guest  PWD: Echo@@179 1. Make sure you can connect to Internet 2. Download • Lab guide: http://bit.ly/2gYMUF4
  71. 71. 71© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Course Wrap-Up
  72. 72. 72© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Learning Path Cloud Computing Concepts • The AWS Cloud • History • Global Infrastructure • AWS Management Console AWS Foundational Services • Compute: • Amazon EC2 • Networking: • Amazon VPC • Storage: • Amazon EBS • Amazon S3 • Security • IAM • Databases: • Amazon DynamoDB • Amazon RDS AWS Management Tools • Trio of Services: • Auto Scaling • ELB • Amazon CloudWatch • AWS Trusted Advisor
  73. 73. 73© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Expand Your Cloud Skills with AWS Certification aws.amazon.com/certification Validate your proven technical expertise with the AWS platform and gain recognition for your skills Online videos and labs aws.amazon.com/training/ self-paced-labs Start working with an AWS service in minutes with free online instructional videos and labs aws.amazon.com/training Instructor-led courses Learn how to design, deploy, and operate highly available, cost-effective, and secure applications on AWS
  74. 74. 74© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Self-Paced Labs For more information, see aws.amazon.com/training/self-paced-labs/ Learn an individual AWS Service topic Follow a Learning Quest by AWS Service Area or Use Case Practice working with AWS as you prepare for an exam
  75. 75. 75© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Training Courses For more information about course description, see aws.amazon.com/training. AWS Technical Essentials Instructor-Led | 1 day Architecting on AWS Instructor-led | 3 days Developing on AWS Instructor-led | 3 days Systems Operations on AWS Instructor-led | 3 days Big Data Fundamentals Online | 3 hours Big Data on AWS Instructor-led | 3 days Advanced Architecting on AWS Instructor-led | 3 days DevOps Engineering on AWS Instructor-led | 3 days Security Operations on AWS Instructor-led | 3 days
  76. 76. 76© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Certification AWS Certified Solutions Architect - Associate AWS Certified Developer - Associate AWS Certified SysOps Administrator- Associate AWS Certified Solutions Architect - Professional AWS Certified DevOps Engineer - Professional For more information, see aws.amazon.com/certification
  77. 77. 77© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Business Development, Solutions Architect, Training Team AWS + AWS Consulting Partners Architecture review SA coaching Office hour Training Consulting Workshop System integration Managed service
  78. 78. 78© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. What’s next Terminate your AWS lab resources Training  Http://run.qwiklabs.com  https://www.aws.training Engage AWS team if you have any architecture enquiry
  79. 79. 79© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. Remember to complete your evaluations!
  80. 80. 80© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. http://bit.ly/2uyXh7m Email: khchan@amazon.com
  81. 81. 81© 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2016 Amazon Web Services, Inc. or its affiliates. All rights reserved. This work may not be reproduced or redistributed, in whole or in part, without prior written permission from Amazon Web Services, Inc. Commercial copying, lending, or selling is prohibited. Errors or corrections? Email us at aws-course-feedback@amazon.com. For all other questions, contact us at: https://aws.amazon.com/contact-us/aws-training/. All trademarks are the property of their owners.

×