Array of node types to fetch
Map of node type to details
import { getElastiCacheNodes } from 'aws-instance-info'
const nodes = getElastiCacheNodes(['cache.m5.large', 'cache.m5.xlarge', 'cache.r6g.2xlarge'])
for (const [type, details] of nodes) {
console.log(`${type}: ${details.vCPUs} vCPUs, ${details.memoryGiB} GiB`)
}
// cache.m5.large: 2 vCPUs, 6.38 GiB
// cache.m5.xlarge: 4 vCPUs, 12.93 GiB
// cache.r6g.2xlarge: 8 vCPUs, 52.82 GiB
Get multiple Elasticache node types at once. More efficient than calling getElastiCacheNodeInfo multiple times for batch operations.