Instance types and families
📖 Scenario: You are setting up a cloud environment and need to organize information about different AWS EC2 instance types and their families. This will help you choose the right instance for your applications.
🎯 Goal: Create a dictionary that holds AWS EC2 instance types grouped by their families. Then, add a configuration variable to select a family, filter the instance types by that family, and finally output the filtered list.
📋 What You'll Learn
Create a dictionary called
instance_families with exact keys and valuesAdd a variable called
selected_family with a specific family nameUse a list comprehension called
filtered_instances to select instances from the chosen familyAdd a final line that assigns
result to filtered_instances💡 Why This Matters
🌍 Real World
Organizing instance types by family helps cloud architects quickly select the right compute resources for different workloads.
💼 Career
Understanding instance types and families is essential for roles like cloud engineer, solutions architect, and DevOps specialist.
Progress0 / 4 steps