Table: aws_elasticache_reserved_cache_node - Query AWS ElastiCache Reserved Cache Nodes using SQL
AWS ElastiCache Reserved Cache Nodes are a type of node that you can purchase for a one-time, upfront payment in order to reserve capacity for future use. These nodes provide you with a significant discount compared to standard on-demand cache node pricing. They are ideal for applications with steady-state or predictable usage and can be used in any available AWS region.
Table Usage Guide
The aws_elasticache_reserved_cache_node
table in Steampipe provides you with information about the reserved cache nodes within AWS ElastiCache. This table allows you, as a DevOps engineer, to query reserved cache node-specific details, including the reservation status, start time, and duration. You can utilize this table to gather insights on reserved cache nodes, such as their current status, the time at which the reservation started, the duration of the reservation, and more. The schema outlines the various attributes of the reserved cache node for you, including the reserved cache node ID, cache node type, start time, duration, fixed price, usage price, cache node count, product description, offering type, state, recurring charges, and associated tags.
Examples
Basic info
Explore which AWS ElastiCache reserved nodes are currently active, and gain insights into their type and associated offering IDs. This can help in managing resources and planning for future capacity needs.
select reserved_cache_node_id, arn, reserved_cache_nodes_offering_id, state, cache_node_typefrom aws_elasticache_reserved_cache_node;
select reserved_cache_node_id, arn, reserved_cache_nodes_offering_id, state, cache_node_typefrom aws_elasticache_reserved_cache_node;
List reserved cache nodes with offering type All Upfront
Identify the reserved cache nodes that have been fully paid for upfront. This can help to manage costs and understand the financial commitment made for these resources.
select reserved_cache_node_id, arn, reserved_cache_nodes_offering_id, state, cache_node_typefrom aws_elasticache_reserved_cache_nodewhere offering_type = 'All Upfront';
select reserved_cache_node_id, arn, reserved_cache_nodes_offering_id, state, cache_node_typefrom aws_elasticache_reserved_cache_nodewhere offering_type = 'All Upfront';
List reserved cache nodes order by duration
Determine the areas in which cache nodes are reserved for the longest duration. This can help prioritize which nodes to investigate for potential cost savings or performance improvements.
select reserved_cache_node_id, arn, reserved_cache_nodes_offering_id, state, cache_node_typefrom aws_elasticache_reserved_cache_nodeorder by duration desc;
select reserved_cache_node_id, arn, reserved_cache_nodes_offering_id, state, cache_node_typefrom aws_elasticache_reserved_cache_nodeorder by duration desc;
List reserved cache nodes order by usage price
Identify the reserved cache nodes within your AWS ElastiCache service, organized by their usage price. This can help prioritize cost management efforts by highlighting the most expensive nodes first.
select reserved_cache_node_id, arn, reserved_cache_nodes_offering_id, state, cache_node_typefrom aws_elasticache_reserved_cache_nodeorder by usage_price desc;
select reserved_cache_node_id, arn, reserved_cache_nodes_offering_id, state, cache_node_typefrom aws_elasticache_reserved_cache_nodeorder by usage_price desc;
List reserved cache nodes which are not active
Determine the areas in which reserved cache nodes are not currently active, allowing for an assessment of resources that may be underutilized or potentially misallocated within your AWS ElastiCache service.
select reserved_cache_node_id, arn, reserved_cache_nodes_offering_id, state, cache_node_typefrom aws_elasticache_reserved_cache_nodewhere state <> 'active';
select reserved_cache_node_id, arn, reserved_cache_nodes_offering_id, state, cache_node_typefrom aws_elasticache_reserved_cache_nodewhere state != 'active';
Schema for aws_elasticache_reserved_cache_node
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form. | |
account_id | text | =, !=, ~~, ~~*, !~~, !~~* | The AWS Account ID in which the resource is located. |
akas | jsonb | Array of globally unique identifier strings (also known as) for the resource. | |
arn | text | The Amazon Resource Name (ARN) of the reserved cache node. | |
cache_node_count | bigint | The number of cache nodes that have been reserved. | |
cache_node_type | text | = | The cache node type for the reserved cache nodes. |
duration | bigint | = | The duration of the reservation in seconds. |
fixed_price | double precision | The fixed price charged for this reserved cache node. | |
offering_type | text | = | The offering type of this reserved cache node. |
partition | text | The AWS partition in which the resource is located (aws, aws-cn, or aws-us-gov). | |
product_description | text | The description of the reserved cache node. | |
recurring_charges | jsonb | The recurring price charged to run this reserved cache node. | |
region | text | The AWS Region in which the resource is located. | |
reserved_cache_node_id | text | = | The unique identifier for the reservation. |
reserved_cache_nodes_offering_id | text | = | The offering identifier. |
sp_connection_name | text | =, !=, ~~, ~~*, !~~, !~~* | Steampipe connection name. |
sp_ctx | jsonb | Steampipe context in JSON form. | |
start_time | timestamp with time zone | The time the reservation started. | |
state | text | The state of the reserved cache node. | |
title | text | Title of the resource. | |
usage_price | double precision | The hourly price charged for this reserved cache node. |
Export
This table is available as a standalone Exporter CLI. Steampipe exporters are stand-alone binaries that allow you to extract data using Steampipe plugins without a database.
You can download the tarball for your platform from the Releases page, but it is simplest to install them with the steampipe_export_installer.sh
script:
/bin/sh -c "$(curl -fsSL https://steampipe.io/install/export.sh)" -- aws
You can pass the configuration to the command with the --config
argument:
steampipe_export_aws --config '<your_config>' aws_elasticache_reserved_cache_node