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

    Function getElastiCacheNodes

    • Get multiple ElastiCache node types at once.

      Parameters

      • nodeTypes: string[]

        Array of node types to fetch

      Returns Promise<Map<string, ElastiCacheNodeDetails>>

      Promise resolving to Map of node type to details

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

      const nodes = await 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