aws-instance-info - v1.0.0
    Preparing search index...

    Function getEC2Family

    • Get all data for an EC2 instance family. Includes the family metadata and list of instance types in the family. Results are served from LRU cache after the first bulk fetch.

      Parameters

      • family: string

        The instance family (e.g., "M5")

      Returns Promise<EC2FamilyData>

      Promise resolving to family data including metadata and instance type list

      import { getEC2Family } from 'aws-instance-info/async'

      const family = await getEC2Family('M5')
      console.log(family.category) // 'general_purpose'
      console.log(family.instanceTypes) // ['m5.large', 'm5.xlarge', ...]
      console.log(family.hypervisor) // 'Nitro v2'
      console.log(family.processorArchitecture) // 'Intel (x86_64)'