EC2 Fundamentals Flashcards
(28 cards)
AWS Budgets
Allow you to define a budget that send you an email if you go over
Amazon EC2
Elastic Compute Cloud
EC2 Config Option
Linux, Windows, or MacOS
CPU
RAM
Storage space
Network card
Firewall rules
Bootstrap script
EC2 User data script
Run only once at the instance first start, allows you to install updates, software, download files
For EC2 instances, what will happen when you stop and start an instance?
Public IPv4 address will change but private IPv4 will stay the same
What does the following naming convention mean?
m5.2xlarge
m = instance class
5 = generation
2xlarge - size within the instance class
What are General Purpose EC2 instances good for?
- Diversity of workloads eg. web server, code repo
- Balance between compute, memory, networking
What are Compute Optimised EC2 instances good for?
- Compute intensive tasks eg. batch processing, media transcoding, high performance web servers, HPC, scientific modelling, game servers
What are Memory Optimised EC2 instances good for?
- Large data sets in memory
- High performance databases, in memory databases optimised for BI, real time processing of big unstructured data
What are Storage Optimised EC2 instances good for?
- High sequential read and write access to large data sets on local storage
- High frequency online transaction processing, in memory databases, data warehousing applications, distributed file systems
Security groups in EC2
- Control how traffic is allowed into or out of EC2 instances
- Only contain allow rules
- Rules reference by IP or by security group
All inbound traffic is ______ by default and all outbound traffic is ______ by default
blocked
authorised
Port 22
SSH (secure shell) - log into a Linux instance
SFTP (secure file transfer protocol) - upload files using SSH
Port 21
FTP (file transfer protocol) - upload files into a file share
Port 80
HTTP - access unsecured websites
Port 443
HTTPS - access secured websites
Port 3389
RDP (remote desktop protocol) - log into windows instance
What does it mean if you try to connect to your EC2 instance but there is a timeout?
Security group issue
EC2 Instance connect
Allows you to ssh to your EC2 instance from your web browser
Should you do aws configure on EC2 instances?
No, never put your personal credentials into EC2 instances as others could access them. Instead, attach IAM roles to the EC2 instance for permissions.
EC2 Instances Purchasing Options
- On demand instances (short workload, predictable pricing, pay by second)
- Reserved (1 and 3 years) - long workloads
- Savings plans (short workloads, cheap, can lose instances)
- Dedicated hosts - book entire physical server
- Dedicated instances - no other customer using
- Capacity reservations
EC2 on demand
- Pay for what you use
- Highest cost but no upfront payment
- No long-term commitment
- Good for short-term and un-interrupted workloads where you can’t predict how the application will behave
EC2 Reserved Instances
- Reserve instance type, region, tenancy OS
- Reservation period either 1 year or 3 years
- Pay no upfront, partial upfront or all upfront
- Good for steady state applications eg. databases
- Convertible reserved instance = allows you to change EC2 instance type
EC2 Savings Plans
- Get a discount based on long term uses (similar to reserved instances)
- Commit to a certain type of usage
- Locked to specific instance family and AWS region
- Usage beyond EC2 savings plans is billed at on demand price