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

    Function isValidEC2InstanceType

    • Check if an EC2 instance type exists in the dataset.

      Parameters

      • instanceType: string

        The instance type to check

      Returns Promise<boolean>

      Promise resolving to true if the instance type exists, false otherwise

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

      console.log(await isValidEC2InstanceType('m5.large')) // true
      console.log(await isValidEC2InstanceType('m5.invalid')) // false
      console.log(await isValidEC2InstanceType('t3.micro')) // true