EC2
• EC2 = Elastic Compute Cloud = Infrastructure as a Service
It mainly consists in the capability of :
• Renting virtual machines (EC2)
• Storing data on virtual drives (EBS)
• Distributing load across machines (ELB)
• Scaling the services using an auto-scaling group (ASG)
EC2 User Data
EC2 Naming Convention
m5.2xlarge
EC2 Instance Types – General Purpose
• for web servers or code repositories
Balance between:
• Compute
• Memory
• Networking
EC2 Instance Types – Compute Optimized
compute-intensive tasks that require high performance processors: • Batch processing workloads • Media transcoding • High performance web servers • High performance computing (HPC) • Scientific modeling & machine learning • Dedicated gaming servers
EC2 Instance Types – Memory Optimized
• Fast performance for workloads that process large data sets in memory
Use cases:
• 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 Types – Storage Optimized
• Great for storage-intensive tasks that require high, sequential read and write
access to large data sets on local storage
Use cases:
• High frequency online transaction processing (OLTP) systems
• Relational & NoSQL databases
• Cache for in-memory databases (for example, Redis)
• Data warehousing applications
• Distributed file systems
Security Groups
They regulate:
• Access to Ports
• Authorised IP ranges – IPv4 and IPv6
• Control of inbound network (from other to the instance)
• Control of outbound network (from the instance to other)
Ports to know
SSH
• allows you to control a remote machine, all using the command line
EC2 Instance Connect
EC2 On Demand
Pay for what you use:
• Linux or Windows - billing per second, after the first minute
• All other operating systems - billing per hour
EC2 Reserved Instances
Convertible Reserved Instance
• can change the EC2 instance type
• Up to 45% discount
Scheduled Reserved Instances
• launch within time window you reserve
• When you require a fraction of day / week / month
• Commitment for 1 year only
EC2 Spot Instances
EC2 Dedicated Hosts