AWS Elastic Compute Cloud (EC2) - Quick Notes


Bhaskar S 05/28/2017


Introduction

AWS Elastic Compute Cloud, also referred to as EC2, is a web service that provides a secure and an auto scalable compute capacity in the cloud.

The following is the summary of the various features/capabilities of EC2:

EC2 Options

EC2 provides the following options for instances:

On-Demand

Reserved

Spot

Dedicated Hosts

EC2 Instance Types

EC2 provides the following types of instances:

Type Description Purpose
D2 Dense Storage File servers, Data Warehouses, Hadoop
R4 Memory Optimized Memory intensive applications, Databases
M4 General Purpose Application servers
C4 Compute Optimized CPU intensive applications, Databases
G2 Graphics Intensive Video encoding, Graphics processing
I2 High Speed Storage NoSQL, Data Warehouses, Databases
F1 Field Programmable Gate Array Hardware accelerated processing
T2 Low-cost General Purpose Application servers, Small databases
P2 Graphics General Purpose Machine learning, Computational processing
X1 Xtreme Memory Optimized SAP HANA, Apache Spark

One easy way to remember - DRM, CGI, FTP, X.

Elastic Block Store (EBS)

EBS provides block level storage volume that can be attached to a single EC2 instance.

The following are some of the notable points of EBS:

The following are the various EBS volume types:

General Purpose SSD (GP2)

Provisioned IOPs SSD (IO1)

Throughput Optimized HDD (ST1)

Cold HDD (SC1)

Magnetic (Standard)

Hands-on with EC2

In this section, we will list the steps to create and launch an EC2 instance running an NGINX webserver.

References

Official AWS EC2 Documentation

Official AWS EC2 FAQs