More Related Content More from Amazon Web Services (20) AWSome Day MODULE 2 - Compute and Storage Services1. © 2018, Amazon Web Serv ices, Inc. or its Af f iliates. All rights reserv ed.
Module 2 – AWS Infrastructure
@AWS_UKI
@AWS_actus
#AWSomeDay
2. © 2018, Amazon Web Serv ices, Inc. or its Af f iliates. All rights reserv ed.
Module 2 - Overview
AWS S3 and Glacier
Hands on Demo with S3
Amazon EC2
Hands on Demo creating a simple website
Understanding EC2 pricing and lifecycle
Storage options for compute
3. © 2018, Amazon Web Serv ices, Inc. or its Af f iliates. All rights reserv ed.
AWS S3 and Glacier – Object Storage
Simple Storage Service S3 Glacier
Archive
Bucket Vault
Object
Unlimited Capacity
No need to pre-provision
99.999999999% Durability
Pay for what you use
Multiple options for data encryption:
SSE with S3 Keys
KMS managed keys or
Customer provided keys (BYOK)
Automate withLambda
4. © 2018, Amazon Web Serv ices, Inc. or its Af f iliates. All rights reserv ed.
Demo – Create S3 CLI & Console
5. © 2018, Amazon Web Serv ices, Inc. or its Af f iliates. All rights reserv ed.
A single EC2 is called an Instance
General Purpose Compute
Optimized
Memory
Optimized
Accelerated
Computing
Storage
Optimized
T2 instances are
Burstable
Performance Instances
that provide a
baseline level of CPU
performance with the
ability to burst above
the baseline. The
baseline performance
and ability to burst are
governed by CPU
Credits.
C4 instances are
optimized for
compute-intensive
workloads and
delivers very cost-
effective high
performance at a low
price/compute
performance in EC2.
X1 Instances are
optimized for large-
scale, enterprise-
class, in-memory
applications and
high-performance
databases, and have
the lowest price per
GiB of RAM among
Amazon EC2 instance
types.
P3 instances are the
next generation of
general purpose GPU
computing instances.
This family includes
the High Storage
Instances that provide
Non-Volatile Memory
Express (NVMe) SSD
backed instance
storage optimized for
low latency, very high
random I/O
performance, high
sequential read
throughput and
provide high IOPS at a
low cost.
Over 60+ EC2 types
Elastic Cloud Compute – EC2
6. © 2018, Amazon Web Serv ices, Inc. or its Af f iliates. All rights reserv ed.
A single EC2 is called an Instance
Choose from 1 vCPU to 128 and
from 0.5Gb to 4Tb memory
CloudWatch &
Alarms
Use CloudWatch
graphs to rightsize
the EC2
EC2 (Elastic Cloud Compute)
Choose an Operating System
Linux / Windows / Custom
At AWS we call these AMI’s
(Amazon Machine Image)
You can use AWS managed AMI’s or
you can build your own
EBS (Elastic Block Store)
1Gb to 16 Tb
Multiple types available
offeringdifferent IOP’s
performance
EC2 Launch Process
7. © 2018, Amazon Web Serv ices, Inc. or its Af f iliates. All rights reserv ed.
EC2 (Elastic Cloud Compute)
EBS (Elastic Block Store)
Before launching our new server we can add some
scripting called UserData. This script will run the first
time we launch this new EC2 instance.
#!/bin/bash
yum update –y
yum install -y httpd24 php56
service httpd start
This is supported for both Linux (bash script) and Windows (powershell)
Launch
Customize EC2 at first boot
<powershell>
Import-Module ServerManager
Install-WindowsFeature web-server, web-webserver
Install-WindowsFeature web-mgmt-tools
</powershell>
8. © 2018, Amazon Web Serv ices, Inc. or its Af f iliates. All rights reserv ed.
EC2 (Elastic Cloud Compute)
pending
running
Reboot
rebooting
terminated
shutting-
down
Terminate
Terminate
EBS-backed instances only
Start
Stop
stopping stopped
Launch
EC2 – Billed per second
(Minimum duration 1 minute)
When on demand EC2 is
stopped or terminated you
stop paying for it. (But still
paying for the EBS volumes)
EC2 Lifecycle
9. © 2018, Amazon Web Serv ices, Inc. or its Af f iliates. All rights reserv ed.
Demo – Create simple EC2 website
10. © 2018, Amazon Web Serv ices, Inc. or its Af f iliates. All rights reserv ed.
Amazon EBS
Amazon EBS
Multiple types available with range of performance up to 32,000 IOPS & 500
MiBs per volume.
Pay for what you commission. Rightsize for cost efficiency
Volume
From 500 GiB to 16 TiB depending onEBS type.
You can connectmultiple volumes to a single EC2
Snapshot
EBS volumes exist in a single Availability Zone AZ so it is important to
snapshot. Multiple snapshots are incremental.
EBS snapshots are stored in S3 for increased durability. New EBS volumes
can be created from snapshots
11. © 2018, Amazon Web Serv ices, Inc. or its Af f iliates. All rights reserv ed.
Amazon EC2 Instance Storage
Size and number of disks is dependent on the type of EC2 being used.
Is optimized for up to 365,000 Read IOPS and 315,000 First Write IOPS.
Has no persistence.
Automatically deletes data when an EC2 instance stops, fails or is terminated.
Example use cases are for caching, swap files, temporaryfiles or scratch disks.
12. © 2018, Amazon Web Serv ices, Inc. or its Af f iliates. All rights reserv ed.
Amazon EFS Elastic File Service
Amazon EFS EC2 Instance
Amazon EFS is elastic, growing and shrinking
automatically as you add and remove files.
Mounted on EC2 via the NFSv4.1 protocol EC2 Instance
EC2 Instance
13. © 2018, Amazon Web Serv ices, Inc. or its Af f iliates. All rights reserv ed.
Demo – Snapshot and Resize EBS
14. © 2018, Amazon Web Serv ices, Inc. or its Af f iliates. All rights reserv ed.
End of Module 2
@AWS_UKI
@AWS_actus
#AWSomeDay