Get the category for an EC2 instance family.
The instance family (e.g., "M5")
The category (e.g., "general_purpose")
import { getEC2FamilyCategory } from 'aws-instance-info'const category = getEC2FamilyCategory('M5')console.log(category) // 'general_purpose'const category2 = getEC2FamilyCategory('C7')console.log(category2) // 'compute_optimized' Copy
import { getEC2FamilyCategory } from 'aws-instance-info'const category = getEC2FamilyCategory('M5')console.log(category) // 'general_purpose'const category2 = getEC2FamilyCategory('C7')console.log(category2) // 'compute_optimized'
Get the category for an EC2 instance family.