Skip to the content.

EC2: Virtual Machines

What is Amazon EC2?

Amazon Elastic Compute Cloud (Amazon EC2) provides scalable computing capacity in the Amazon Web Services (AWS) Cloud.

EC2 sizing & configuration options

EC2 User Data

EC2 Instance Types - Overview

General Purpose

Compute Optimized

Memory Optimized

Storage Optimized

EC2 Instance Types: example

Instance vCPU Mem (GiB) Storage Network Performance EBS Bandwidth (Mbps)
t2.micro 1 1 EBS-Only Low to Moderate  
t2.xlarge 4 16 EBS-Only Moderate  
c5d.4xlarge 16 32 1 x 400 NVMe SSD Up to 10 Gbps 4,750
r5.16xlarge 64 512 EBS Only 20 Gbps 13,600
m5.8xlarge 32 128 EBS Only 10 Gbps 6,800

t2.micro is part of the AWS free tier (up to 750 hours per month)

Introduction to Security Groups

Deeper Dive

Security Groups Diagram

 Security Groups Diagram

Good to know

Classic Ports to know

EC2 Instance Launch Types

On Demand Instance

Reserved Instances

Savings Plans

Spot Instances

Dedicated Hosts

Dedicated Instances

Capacity Reservations

Which purchasing option is right for me?

Price Comparison Example – m4.large – us-east-1

Price Type Price (per hour)
On-Demand $0.10
Spot Instance (Spot Price) $0.038 - $0.039 (up to 61% off)
Reserved Instance (1 year) $0.062 (No Upfront) - $0.058 (All Upfront)
Reserved Instance (3 years) $0.043 (No Upfront) - $0.037 (All Upfront)
EC2 Savings Plan (1 year) $0.062 (No Upfront) - $0.058 (All Upfront)
Reserved Convertible Instance (1 year) $0.071 (No Upfront) - $0.066 (All Upfront)
Dedicated Host On-Demand Price
Dedicated Host Reservation Up to 70% off
Capacity Reservations On-Demand Price

Shared Responsibility Model for EC2

Infrastructure (global network security) Security Groups rules
Isolation on physical hosts Operating-system patches and updates
Replacing faulty hardware Software and utilities installed on the EC2 instance
Compliance validation IAM Roles assigned to EC2 & IAM user access management, Data security on your instance

EC2 Section – Summary

IAM: Identity Access & Management            List           EC2 Instance Storage

You Can Purchase PDF :     AWS Cloud Practitioner Study Notes (PDF)