Day - 03 | EC2: Amazon Elastic Compute Cloud | AWS Cloud Practitioner Certification
Anshul Agarwal
? SDET + DevOps ? | Selenium/Appium (Java & Python) | API testing (Postman + RestAssured) | Cypress | WebdriverIO | Playwright | Robot Framework | CI/CD | Python | AWS | Docker | Linux | Terraform | Jenkins |
EC2: Virtual Machines
? What is Amazon EC2?
? EC2 sizing & configuration options
? EC2 User Data
? EC2 Instance Types - Overview
? General Purpose
? Compute Optimized
? Memory Optimized
? Storage Optimized
? EC2 Instance Types: example
? Introduction to Security Groups
? Deeper Dive
? 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
? Shared Responsibility Model for EC2
? EC2 Section – Summary
What is Amazon EC2?
Amazon Elastic Compute Cloud (EC2) is a web service that provides resizable compute capacity in the cloud. It is designed to make web-scale cloud computing easier for developers. EC2 allows users to rent virtual computers on which they can run their applications.
? 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 sizing & configuration options
EC2 User Data
? Installing updates
? Installing software
? Downloading common files from the internet
? Anything you can think of
EC2 Instance Types - Overview
EC2 instance types are categorized into different families based on their intended use cases:
? AWS has the following naming convention: m5.2xlarge
? m: instance class
? 5: generation (AWS improves them over time)
? 2xlarge: size within the instance class
General Purpose
General Purpose instances provide a balance of compute, memory, and networking resources and can be used for a variety of diverse workloads. Examples include:
Compute Optimized
Compute Optimized instances are ideal for compute-bound applications that benefit from high-performance processors. Examples include:
Memory Optimized
Memory Optimized instances are designed for workloads that require large amounts of memory. Examples include:
Storage Optimized
Storage Optimized instances are designed for workloads that require high, sequential read and write access to large datasets on local storage. Examples include:
领英推荐
EC2 Instance Types: example
Introduction to Security Groups
Security groups act as virtual firewalls for your EC2 instances to control inbound and outbound traffic. You can specify allowed protocols, ports, and source IP ranges.
Deeper Dive
? 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)
Security Groups Diagram
Good to know
Classic Ports to Know
EC2 Instance Launch Types
There are several purchasing options for EC2 instances, each suited for different use cases:
On Demand Instance
? Linux or Windows - billing per second, after the first minute
? All other operating systems - billing per hour
Reserved Instances
? Can change the EC2 instance type, instance family, OS, scope and tenancy
? Up to 66% discount
Savings Plans
? Instance Size (e.g., m5.xlarge, m5.2xlarge)
? OS (e.g., Linux, Windows)
? Tenancy (Host, Dedicated, Default)
Spot Instances
? Batch jobsData analysisImage processing
? Any distributed workloads
? Workloads with a flexible start and end time
Dedicated Hosts
? On-demand – pay per second for active Dedicated Host
? Reserved - 1 or 3 years (No Upfront, Partial Upfront, All Upfront)
Dedicated Instances
Capacity Reservations
? Which purchasing option is right for me?
? Price Comparison Example – m4.large – us-east-1
? Shared Responsibility Model for EC2
? EC2 Section – Summary
Happy Learning !