EC2 Flashcards
EC2
Elastic compute cloud capabilities, rent VM’s
Bootstrapping
Launching commands when a machine starts
User Data section
Script you add that launches on first boot of instance
General Purpose (Instance Type/Class)
Great for diverse workload (ex:webservers).
Good balance of compute, memory, networking.
Compute Optimized (Instance Type/Class)
Good for compute intensive tasks, high performance.
Ex: batch processing, high performance web servers.
Memory Optimized (Instance Type/Class)
Fast performance workloads processing large data sets in memory
Storage Optimized (Instance Type/Class)
For storage intensive tasks.
Ex: data and warehousing apps.
Security Groups
acts as a firewall for EC2 instances, controlling inbound and outbound traffic at the instance level
SSH
allows you to control a remote machine using command line interface (CLI)
EC2 Purchase Options
On-demand = for short term workloads, predictable pricing.
Reserved = for long workloads, commit 1-3 yrs (ex: db’s)
Scheduled reserved = scheduled, ex: every thurs @3pm.
Convertible reserved = flexible instance, can change the instance type.
Spot Instance = short workloads, less reliable, good for batch jobs.
Dedicated Hosts = book entire physical server, supports BYOL (Bring Your Own License)
Dedicated Instances = instances running on hardware dedicated to you, can share w/ other instances in your acct.
Shared Responsibility Model (EC2)
aws = responsible for infrastructure, hardware, compliance
us = security groups rule, OS updates, software install on EC2 instances, data security
Dedicated Instances
instances running on hardware dedicated to you, can share w/ other instances in your acct.
Dedicated Hosts
book entire physical server, supports BYOL (Bring Your Own License)
Spot Instance
short workloads, less reliable
Convertible reserved
flexible instance, can change the instance type.