Get all instance types belonging to a specific EC2 family. This loads the family file but only returns the list of instance types.
The instance family (e.g., "M5")
Array of instance type names in the family
import { getEC2FamilyInstanceTypes } from 'aws-instance-info'const types = getEC2FamilyInstanceTypes('M5')console.log(types) // ['m5.large', 'm5.xlarge', 'm5.2xlarge', ...] Copy
import { getEC2FamilyInstanceTypes } from 'aws-instance-info'const types = getEC2FamilyInstanceTypes('M5')console.log(types) // ['m5.large', 'm5.xlarge', 'm5.2xlarge', ...]
Get all instance types belonging to a specific EC2 family. This loads the family file but only returns the list of instance types.