Array of family names to fetch
Map of family name to family data
import { getEC2Families } from 'aws-instance-info'
const families = getEC2Families(['M5', 'C7', 'R6i'])
for (const [name, data] of families) {
console.log(`${name}: ${data.category}, ${data.instanceTypes.length} types`)
}
// M5: general_purpose, 24 types
// C7: compute_optimized, 12 types
// R6i: memory_optimized, 16 types
Get multiple EC2 families at once. More efficient than calling getEC2Family multiple times for batch operations.