You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
Amazon Elastic Compute Cloud (EC2) is a web service that provides resizable compute capacity in the cloud. It lets you launch virtual servers (called "instances") in minutes and scale capacity up or down as your needs change.
An EC2 instance is a virtual server running in AWS. You choose:
AWS offers a wide variety of instance types optimised for different use cases:
| Family | Optimised For | Example Types | Use Case |
|---|---|---|---|
| t | General purpose (burstable) | t3.micro, t3.medium | Web servers, dev/test |
| m | General purpose | m6i.large, m6i.xlarge | Application servers |
| c | Compute optimised | c6i.large | Batch processing, HPC |
| r | Memory optimised | r6i.large | In-memory databases |
| g/p | Accelerated computing | g5.xlarge, p4d.24xlarge | Machine learning, graphics |
| i/d | Storage optimised | i3.large, d3.xlarge | Data warehousing |
Instance type names follow a pattern: <family><generation>.<size>
t, generation 3, size microm, generation 6, Intel processor, size largeAn AMI is a template that contains the software configuration (OS, application server, applications) needed to launch an instance.
Sources of AMIs:
Launch → Running → (Stop) → Stopped → (Start) → Running → (Terminate) → Terminated
| State | Description | Billing |
|---|---|---|
| Running | Instance is active | Charged per second |
| Stopped | Instance is off but EBS volumes persist | EBS storage charges only |
| Terminated | Instance is deleted | No charges |
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.