DevOpsLesson
DevOpsLesson

Free, comprehensive DevOps tutorials and learning roadmaps. Master Docker, Kubernetes, CI/CD, and more.

Stay Updated

Get notified about new tutorials and features.

Tutorials

  • What is DevOps?
  • Docker Tutorial
  • Terraform Tutorial
  • CI/CD Pipeline
  • All Tutorials

Roadmaps

  • DevOps Engineer
  • Cloud Engineer
  • SRE Path
  • All Roadmaps

Company

  • About Us
  • Blog
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 DevOpsLesson. All rights reserved.

DOCKERKUBERNETESTERRAFORMAWSCI/CDLINUXGITDEVOPS ROADMAPCLOUD ROADMAPSRE ROADMAPGIT CHEATSHEETDOCKER CHEATSHEETK8S CHEATSHEETTF CHEATSHEETLINUX CHEATSHEETDOCKERFILE LINTERYAML VALIDATORCRON PARSERREGEX TESTER

Aws Tutorial

Introduction to AWS
AWS Global Infrastructure
Setting Up AWS
AWS IAM
AWS EC2
AWS VPC
AWS S3
AWS RDS
AWS Lambda
AWS ECS and EKS
AWS CloudWatch
AWS CodePipeline
AWS Cost Optimization
AWS Elastic Load Balancing
AWS Auto Scaling
AWS CloudFront
AWS Route 53
AWS DynamoDB
AWS ElastiCache
AWS SQS
AWS SNS
AWS EventBridge
AWS Step Functions
AWS API Gateway
AWS ECR
AWS EKS
AWS CloudFormation
AWS Elastic Beanstalk
AWS KMS
AWS Secrets Manager
AWS WAF and Shield
AWS CloudTrail
AWS Config
AWS Systems Manager
AWS Organizations
AWS EFS
AWS EBS Deep Dive
AWS Kinesis
AWS Athena
AWS CodeDeploy
AWS CodeCommit
AWS CDK
AWS SAM

AWS EC2 Instance Types

PreviousPrev
Next

Understand EC2 instance family names and choose between general purpose, compute-optimized, memory-optimized, and specialized hardware.

EC2 instance types are AWS’s way of packaging CPU, memory, networking, and sometimes local storage into predictable server shapes. The naming looks intimidating at first, but there is a useful pattern. A family letter hints at the workload class, the generation number shows relative age, and the size suffix indicates scale within that family.

For example, t3 and t4g are burstable general-purpose families suited for low to moderate workloads. m5 or m6i instances are balanced general-purpose options for many applications. c5 and c6i focus on CPU-heavy workloads such as builds or compute services. r5 and r6i emphasize memory for caches, analytics, or in-memory databases. p3, g5, and similar families target GPU workloads.

FamilyBest fit
tBurstable, low-cost general workloads
mBalanced general-purpose servers
cCompute-optimized processing
rMemory-heavy applications
i, d, hStorage-focused patterns
p, gGPU and accelerator workloads

Choosing the right type starts with understanding the application rather than memorizing families. If a service is CPU-bound, moving from m to c may improve performance more than simply scaling up size. If the application caches heavily or uses large heaps, memory becomes the limiting factor instead. CloudWatch metrics help confirm what the workload actually uses after deployment.

Cost matters too. Over-sizing wastes money, but under-sizing creates unstable systems and noisy scaling behavior. Many teams start with a conservative instance, observe CPU, memory, disk, and network usage, then right-size after a few days of real traffic. That feedback loop is better than guessing forever.

Pair this lesson with AWS EC2 and AWS Cost Optimization so instance selection stays aligned with both performance and spend.

aws ec2 describe-instance-types --instance-types t3.micro m5.large c5.large r5.large --output table
aws ec2 describe-instance-type-offerings --location-type region --filters Name=location,Values=us-east-1

Operational note

Treat EC2 instances as managed infrastructure, not pets. Capture launch settings in infrastructure as code, keep bootstrap steps repeatable, and monitor CPU, memory, disk, and patch level from the start. That way replacing an instance is a routine operation instead of a risky manual repair exercise. Shared standards like this make future environments easier to launch, review, and support.

Exercise

Family meaning

Which EC2 family is commonly associated with compute-optimized workloads?

Exercise

Right sizing

What is a practical way to choose a better EC2 instance type after initial deployment?

PreviousPrev
Next

Continue Learning

AWS IAM Best Practices

Apply practical IAM security habits such as MFA, access key rotation, role-based access, and regular permission review with AWS analyzers.

10 min·Intermediate

AWS EC2

Learn how Amazon EC2 provides virtual machines in the cloud and how AMIs, instance types, storage, and pricing models affect deployments.

20 min·Intermediate

AWS EC2 Launch Instance

Launch an EC2 instance step by step by choosing an AMI, instance type, networking, security group, and key pair, then connect over SSH.

12 min·Easy

Explore Related Topics

Te

Terraform Tutorials

Manage AWS infrastructure as code

Li

Linux Tutorials

Essential Linux skills for working with EC2

On This Page

Operational note