Get detailed information for a specific EC2 instance type. Loads only the JSON file for the requested instance. Results are cached using LRU.
The instance type (e.g., "m5.large")
Instance details including performance, networking, EBS, and security specs
import { getEC2InstanceInfo } from 'aws-instance-info'const instance = getEC2InstanceInfo('m5.large')console.log(instance.instanceType) // 'm5.large'console.log(instance.vCPUs) // 2console.log(instance.memoryGiB) // 8console.log(instance.hypervisor) // 'Nitro v2' Copy
import { getEC2InstanceInfo } from 'aws-instance-info'const instance = getEC2InstanceInfo('m5.large')console.log(instance.instanceType) // 'm5.large'console.log(instance.vCPUs) // 2console.log(instance.memoryGiB) // 8console.log(instance.hypervisor) // 'Nitro v2'
Get detailed information for a specific EC2 instance type. Loads only the JSON file for the requested instance. Results are cached using LRU.