EC2 Elastic Cloud Compute Flashcards
Amazon EC2
- Infrastructure as a Service
- Core functions
Rent VM (EC2)
Store Data (EBS)
Distribute load (ELB)
Scale services (ASG)
EC2 configuration options
- OS (Linux, Windows, or Mac)
- CPU
- RAM
- Network card
- Firewall rules (security group)
- Bootstarp script
Bootstrapping
- Launching commands when the machine starts
- Run once
EC2 User Data
Scripts to automate boot tasks
* Install updates and software
* Download common files from the internet
* Anything you can think of
Always run as the root user
EC2 Instance Types
- General Purpose
- Compute Optimized
- Memory Optimized
- Storage Optimized
- HPC Optimized
- Accelerated Computing
EC2 naming convention
m5.2xlarge
* M: Instance class
* 5: generation
* 2xlarge: size within the instance class
EC2 Instance Type: General Purpose
- Great for diversity of workloads (like webserver or code repositories)
- Balance between:
compute
memory
networking
EC2 Instance Type: Compute Optimized
Tasks require high performance processors:
* Batch processing
* Media transcoding
* High performance web servers
* High performance computing (HPC)
* Scientific modeling & machine learning
* Dedicated gaming servers
EC2 Instance Type: Memory Optimized
Fast performance, process large data sets in memory
* High performance, relational/non-relational databases
* Distributed web scale cache stores
* In-memory databases optimized for BI (business intelligence)
* Applications performing real-time processing of big unstructured data
EC2 Instance Type: Storage Optimized
Storage-intensive tasks
High, sequential read-write access to large data sets on logical storage
* High frequency online transaction processing (OLTP) systems
* Relational & NoSQL databases
* Cahche for in-memory databases (like Redis)
* Data warehousing
* Distributed file systems
Security Groups
(EC2)
Fundamental to network security
* Like firewall
* Only allow rules
* Reference by IP or security group
* Locked to region or VPC combo
* Inbound blocked by default
* Outbound allowed by default
Security Groups Regulate:
(EC2)
- Ports & IP ranges - v4 & v6
- Inbound and outbound traffic
- Like a firewall
SSH can remote to which OSs
- Mac
- Linux
- Win 10 or higher
EC2 Instance Connect can remote to which OSs
Any
Putty can remote to which OSs
- Any version of windows
- Uses SSH Protocol