Professional Documents
Culture Documents
Module 2
AWS Foundational Services
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Module 2 Layout
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
Amazon Elastic Compute Cloud
(EC2)
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon Elastic Computer Cloud (EC2)
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
Amazon EC2 Facts
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
Launching an Amazon EC2 Instance via the
Management Console
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
Amazon Machine Image (AMI) Details
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
Instances and AMIs
• Launch permissions
AMI
• Storage for the root device
Instances
Host computer
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
Amazon EC2 Instances
EBS
S3 Buckets
Snapshots
S3
Region
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
Instance Lifecycle
Launch Start
pending
AMI
Reboot
Stop
rebooting running stopping stopped
Terminate
shutting-down
Terminate
terminated
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
AWS Marketplace – IT Software Optimized for the
Cloud
• Online store to discover, purchase, and deploy IT
software on top of the AWS infrastructure.
• Catalog of 4000+ IT software solutions including
Paid, BYOL, Open Source, SaaS, and 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.
https://aws.amazon.com/marketplace
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
Choosing the Right Amazon EC2 Instance
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
X1 Instance – Tons of Memory
The X1 instance:
• Features up to 2TB of memory and 100 vCPU.
• Uses Intel E7 v3 Haswell processors.
• Is designed for demanding enterprise workloads, including
production installations of SAP HANA, Microsoft SQL Server, Apache
Spark, and Presto.
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
EC2 Instances With Intel® Technologies
EC2 Instance Compute Optimized General Purpose Memory Optimized Storage Optimized
Type C5 C4 M5 M4 T2 X1 X1e R4 H1 I3 D2
Xeon Xeon Xeon E5
Xeon E5 Xeon Xeon E7 Xeon E7 Xeon E5 Xeon E5 Xeon E5 Xeon E5
Intel Processor Platinum Platinum 2686 v4
2666 v3 Family 8880 v3 8880 v3 2686 v4 2686 v4 2686 v4 2676 v3
8175M 8175M 2676 v3
Intel AVX Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes
Intel AVX2 Yes Yes Yes Yes - Yes Yes Yes Yes Yes Yes
Intel Turbo
Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes
Boost
SSD SSD
Storage EBS-only EBS-only EBS-only EBS-only EBS-only - HDD SSD HDD
EBS-Opt EBS-Opt
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
C5: Compute Optimized Instances
• Based on 3.0 GHz Intel Xeon Scalable
Processors (Skylake)
25% price/performance • Up to 72 vCPUs and 144 GiB of memory
improvement over C4 (2:1 Memory:vCPU ratio)
• 25 Gbps NW bandwidth
• Support for Intel AVX-512
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
M5: Next-Gen General Purpose instance
14% price/performance
improvement With M5 • Powered by 2.5 GHz Intel Xeon Scalable
Processors (Skylake)
• New larger instance size—m5.24xlarge
with
96 vCPUs and 384 GiB of memory
(4:1 Memory:vCPU ratio)
• Improved network and EBS performance
on smaller instance sizes
• Support for Intel AVX-512 offering up to
twice the performance for vector and
M4 M5 floating point workloads
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
Current Generation Instances
Instance Family Some Use Cases
General purpose (t2, m4) • Low-traffic websites and web applications
• Small databases and mid-size databases
Compute-optimized (c4) • High performance front-end fleets
• Video-encoding
Memory-optimized (r4) • High performance databases
• Distributed memory caches
Storage-optimized (i3, d2) • Data warehousing
• Log or data-processing applications
GPU instances (p2, g3) • 3D application streaming
• Machine learning
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
Retrieving Instance Metadata
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
Instance User Data
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
Adding User Data
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
User Data Example Linux
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
User Data Example Windows
Install IIS
Install Web Management Tools
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
Retrieving User Data
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
Amazon EC2 Purchasing Options
Purchase, at a
significant
discount, Purchase Bid on unused
instances that instances that instances, Pay, by the Pay for a
are always are always which can run hour, for physical host
Pay by the available available on as long as they instances that that is fully
hour. the specified are available run on single- dedicated to
recurring and your bid is tenant running your
schedule, for a above the hardware. instances.
1-year to 3- one-year term. Spot price.
year terms.
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
Networking – Amazon VPC
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon Virtual Private Cloud (VPC)
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
VPCs and Subnets
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
Amazon VPC Example
Internet Customer
Network
Virtual
Internet Private
Gateway Gateway
R
AWS Cloud
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
Security in Your VPC
• Network access
control lists (ACLs) Security Security Security Security
Group Group Group Group
• Key Pairs
Subnet Subnet
10.0.0.0/24 10.0.1.0/24
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
Instructor Demo Amazon EC2
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Storage Services Amazon S3 and
Amazon EBS
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon Simple Storage Service (S3)
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
Amazon S3 Facts
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
Common Use Scenarios
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
Amazon S3 Concepts
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
Object Keys
http://doc.s3.amazonaws.com/2006-03-01/AmazonS3.html
Bucket Object/Key
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
Amazon S3 Security
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
Amazon S3 Versioning
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
Versioning Enabled
Amazon S3 Object Lifecycle
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
Amazon Glacier
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
Amazon S3 Storage Classes
Storage Class Durability Availability Other Considerations
Amazon S3
99.999999999% 99.99%
Standard
Amazon S3 • Retrieval fee associated with
Standard - objects
99.999999999% 99.9%
Infrequent • Most suitable for infrequently
accessed data
Access (IA)
• Not available for real-time
access
99.99% • Must restore objects before you
Glacier 99.999999999%
(once restored) can access them
• Restoring objects can take 3-5
hours
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
Amazon Elastic Block Store (EBS)
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
Amazon EBS Lifecycle
Call CreateVolume
1 GiB to 16 TiB
Vast amounts of
unused space Create
Call AttachVolume to affiliate with
Attach one Amazon EC2 instance
Deleted
CreateSnapshot
Snapshot to
Call DeleteVolume Amazon S3
Detach
Call DetachVolume
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
Amazon EBS Volume Types
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
Amazon EBS Volume Types
SSD HDD
General Purpose SSD Provisioned IOPS Throughput Optimized
Volume Type (gp2) SSD (io1) HDD (st1)
Cold HDD (sc1)
Highest-
Balances price and Low-cost HDD designed Lowest cost HDD
performance SSD
performance for a for frequently accessed, designed for less
Description wide variety of
volume designed for
throughput-intensive frequently accessed
mission-critical
transactional loads. workloads. workloads.
applications.
Volume Sizes 1 GiB – 16 TiB 4 GiB – 16 TiB 500 GiB – 16 TiB 500 GiB – 16 TiB
Dominant
Performance IOPS IOPS MiB/s MiB/s
Attribute
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
Amazon EBS Facts
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
Amazon EBS Use Cases
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
Amazon EBS Pricing
* Check Amazon EBS Pricing page for current pricing for all regions.
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
Amazon EBS Scope
Amazon EBS volumes are in a single Availability Zone
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
Amazon EBS and Amazon S3
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
Amazon EC2 Instance Storage
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
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.
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
Reboot vs. Stop vs. Terminate
Characteristic Reboot Stop/Start Terminate
(EBS-backed instances only)
Elastic IP addresses EIP remains associated with EIP remains associated with the EIP is disassociated from the
(EIP) the instance. instance. instance.
Instance store
Preserved Erased Erased
volumes
Boot volume is deleted by
EBS volume Preserved Preserved
default.
You stop incurring charges as You stop incurring charges as
Instance billing hour doesn’t
Billing change.
soon as state is changed to soon as state is changed to
stopping. shutting-down.
© 2018, Amazon
© 2018, Amazon Web
Web Services,
Services,Inc.
Inc.ororitsitsAffiliates.
Affiliates.AllAllrights
rightsreserved.
reserved.
Learn from AWS experts. Advance your skills and knowledge.
Build your future in the AWS Cloud.
aws-apac-marketing@amazon.com
twitter.com/AWSCloud
facbook.com/AmazonWebServices
youtube.com/user/AmazonWebServices
slideshare.net/AmazonWebServices
twitch.tv/aws
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.