[ aws . elasticache ]
Returns information about all provisioned clusters if no cluster identifier is specified, or about a specific cache cluster if a cluster identifier is supplied.
By default, abbreviated information about the clusters is returned. You can use the optional ShowCacheNodeInfo flag to retrieve detailed information about the cache nodes associated with the clusters. These details include the DNS address and port for the cache node endpoint.
If the cluster is in the creating state, only cluster-level information is displayed until all of the nodes are successfully provisioned.
If the cluster is in the deleting state, only cluster-level information is displayed.
If cache nodes are currently being added to the cluster, node endpoint information and creation time for the additional nodes are not displayed until they are completely provisioned. When the cluster state is available , the cluster is ready for use.
If cache nodes are currently being removed from the cluster, no endpoint information for the removed nodes is displayed.
See also: AWS API Documentation
See ‘aws help’ for descriptions of global parameters.
describe-cache-clusters
is a paginated operation. Multiple API calls may be issued in order to retrieve the entire data set of results. You can disable pagination by providing the --no-paginate
argument.
When using --output text
and the --query
argument on a paginated response, the --query
argument must extract data from the results of the following query expressions: CacheClusters
describe-cache-clusters
[--cache-cluster-id <value>]
[--show-cache-node-info | --no-show-cache-node-info]
[--show-cache-clusters-not-in-replication-groups | --no-show-cache-clusters-not-in-replication-groups]
[--cli-input-json | --cli-input-yaml]
[--starting-token <value>]
[--page-size <value>]
[--max-items <value>]
[--generate-cli-skeleton <value>]
--cache-cluster-id
(string)
The user-supplied cluster identifier. If this parameter is specified, only information about that specific cluster is returned. This parameter isn’t case sensitive.
--show-cache-node-info
| --no-show-cache-node-info
(boolean)
An optional flag that can be included in the
DescribeCacheCluster
request to retrieve information about the individual cache nodes.
--show-cache-clusters-not-in-replication-groups
| --no-show-cache-clusters-not-in-replication-groups
(boolean)
An optional flag that can be included in the
DescribeCacheCluster
request to show only nodes (API/CLI: clusters) that are not members of a replication group. In practice, this mean Memcached and single node Redis clusters.
--cli-input-json
| --cli-input-yaml
(string)
Reads arguments from the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton
. If other arguments are provided on the command line, those values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally. This may not be specified along with --cli-input-yaml
.
--starting-token
(string)
A token to specify where to start paginating. This is the
NextToken
from a previously truncated response.For usage examples, see Pagination in the AWS Command Line Interface User Guide .
--page-size
(integer)
The size of each page to get in the AWS service call. This does not affect the number of items returned in the command’s output. Setting a smaller page size results in more calls to the AWS service, retrieving fewer items in each call. This can help prevent the AWS service calls from timing out.
For usage examples, see Pagination in the AWS Command Line Interface User Guide .
--max-items
(integer)
The total number of items to return in the command’s output. If the total number of items available is more than the value specified, a
NextToken
is provided in the command’s output. To resume pagination, provide theNextToken
value in thestarting-token
argument of a subsequent command. Do not use theNextToken
response element directly outside of the AWS CLI.For usage examples, see Pagination in the AWS Command Line Interface User Guide .
--generate-cli-skeleton
(string)
Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input
, prints a sample input JSON that can be used as an argument for --cli-input-json
. Similarly, if provided yaml-input
it will print a sample input YAML that can be used with --cli-input-yaml
. If provided with the value output
, it validates the command inputs and returns a sample output JSON for that command.
See ‘aws help’ for descriptions of global parameters.
To describe a cache cluster
The following describe-cache-clusters
example describes a cache cluster.
aws elasticache describe-cache-clusters
Output:
{
"CacheClusters": [
{
"CacheClusterId": "my-cluster-003",
"ClientDownloadLandingPage": "https://console.aws.amazon.com/elasticache/home#client-download:",
"CacheNodeType": "cache.r5.large",
"Engine": "redis",
"EngineVersion": "5.0.5",
"CacheClusterStatus": "available",
"NumCacheNodes": 1,
"PreferredAvailabilityZone": "us-west-2a",
"CacheClusterCreateTime": "2019-11-26T01:22:52.396Z",
"PreferredMaintenanceWindow": "mon:17:30-mon:18:30",
"PendingModifiedValues": {},
"NotificationConfiguration": {
"TopicArn": "arn:aws:sns:us-west-2:xxxxxxxxxxx152:My_Topic",
"TopicStatus": "active"
},
"CacheSecurityGroups": [],
"CacheParameterGroup": {
"CacheParameterGroupName": "default.redis5.0",
"ParameterApplyStatus": "in-sync",
"CacheNodeIdsToReboot": []
},
"CacheSubnetGroupName": "kxkxk",
"AutoMinorVersionUpgrade": true,
"SecurityGroups": [
{
"SecurityGroupId": "sg-xxxxxd7b",
"Status": "active"
}
],
"ReplicationGroupId": "my-cluster",
"SnapshotRetentionLimit": 0,
"SnapshotWindow": "06:30-07:30",
"AuthTokenEnabled": false,
"TransitEncryptionEnabled": false,
"AtRestEncryptionEnabled": false,
"ARN": "arn:aws:elasticache:us-west-2:xxxxxxxxxxx152:cluster:my-cache-cluster",
"ReplicationGroupLogDeliveryEnabled": false,
"LogDeliveryConfigurations": [
{
"LogType": "slow-log",
"DestinationType": "cloudwatch-logs",
"DestinationDetails": {
"CloudWatchLogsDetails": {
"LogGroup": "test-log"
}
},
"LogFormat": "text",
"Status": "active"
}
]
}
]
}
For more information, see Managing Clusters in the Elasticache User Guide.
Marker -> (string)
Provides an identifier to allow retrieval of paginated results.
CacheClusters -> (list)
A list of clusters. Each item in the list contains detailed information about one cluster.
(structure)
Contains all of the attributes of a specific cluster.
CacheClusterId -> (string)
The user-supplied identifier of the cluster. This identifier is a unique key that identifies a cluster.
ConfigurationEndpoint -> (structure)
Represents a Memcached cluster endpoint which can be used by an application to connect to any node in the cluster. The configuration endpoint will always have
.cfg
in it.Example:
mem-3.9dvc4r.cfg.usw2.cache.amazonaws.com:11211
Address -> (string)
The DNS hostname of the cache node.
Port -> (integer)
The port number that the cache engine is listening on.
ClientDownloadLandingPage -> (string)
The URL of the web page where you can download the latest ElastiCache client library.
CacheNodeType -> (string)
The name of the compute and memory capacity node type for the cluster.
The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.
General purpose:
Current generation: M6g node types: (available only for Redis engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward):
cache.m6g.large
,cache.m6g.xlarge
,cache.m6g.2xlarge
,cache.m6g.4xlarge
,cache.m6g.8xlarge
,cache.m6g.12xlarge
,cache.m6g.16xlarge
Note
For region availability, see Supported Node Types
M5 node types:
cache.m5.large
,cache.m5.xlarge
,cache.m5.2xlarge
,cache.m5.4xlarge
,cache.m5.12xlarge
,cache.m5.24xlarge
M4 node types:cache.m4.large
,cache.m4.xlarge
,cache.m4.2xlarge
,cache.m4.4xlarge
,cache.m4.10xlarge
T4g node types (available only for Redis engine version 6.0 onward and for Memcached engine version 1.5.16 onward):cache.t4g.micro
,cache.t4g.small
,cache.t4g.medium
T3 node types:cache.t3.micro
,cache.t3.small
,cache.t3.medium
T2 node types:cache.t2.micro
,cache.t2.small
,cache.t2.medium
Previous generation: (not recommended) T1 node types:
cache.t1.micro
M1 node types:cache.m1.small
,cache.m1.medium
,cache.m1.large
,cache.m1.xlarge
M3 node types:cache.m3.medium
,cache.m3.large
,cache.m3.xlarge
,cache.m3.2xlarge
Compute optimized:
Previous generation: (not recommended) C1 node types:
cache.c1.xlarge
Memory optimized with data tiering:
Current generation: R6gd node types (available only for Redis engine version 6.2 onward).
cache.r6gd.xlarge
,cache.r6gd.2xlarge
,cache.r6gd.4xlarge
,cache.r6gd.8xlarge
,cache.r6gd.12xlarge
,cache.r6gd.16xlarge
Memory optimized:
Current generation: R6g node types (available only for Redis engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward).
cache.r6g.large
,cache.r6g.xlarge
,cache.r6g.2xlarge
,cache.r6g.4xlarge
,cache.r6g.8xlarge
,cache.r6g.12xlarge
,cache.r6g.16xlarge
Note
For region availability, see Supported Node Types
R5 node types:
cache.r5.large
,cache.r5.xlarge
,cache.r5.2xlarge
,cache.r5.4xlarge
,cache.r5.12xlarge
,cache.r5.24xlarge
R4 node types:cache.r4.large
,cache.r4.xlarge
,cache.r4.2xlarge
,cache.r4.4xlarge
,cache.r4.8xlarge
,cache.r4.16xlarge
Previous generation: (not recommended) M2 node types:
cache.m2.xlarge
,cache.m2.2xlarge
,cache.m2.4xlarge
R3 node types:cache.r3.large
,cache.r3.xlarge
,cache.r3.2xlarge
,cache.r3.4xlarge
,cache.r3.8xlarge
Additional node type info
All current generation instance types are created in Amazon VPC by default.
Redis append-only files (AOF) are not supported for T1 or T2 instances.
Redis Multi-AZ with automatic failover is not supported on T1 instances.
Redis configuration variables
appendonly
andappendfsync
are not supported on Redis version 2.8.22 and later.Engine -> (string)
The name of the cache engine (
memcached
orredis
) to be used for this cluster.EngineVersion -> (string)
The version of the cache engine that is used in this cluster.
CacheClusterStatus -> (string)
The current state of this cluster, one of the following values:
available
,creating
,deleted
,deleting
,incompatible-network
,modifying
,rebooting cluster nodes
,restore-failed
, orsnapshotting
.NumCacheNodes -> (integer)
The number of cache nodes in the cluster.
For clusters running Redis, this value must be 1. For clusters running Memcached, this value must be between 1 and 40.
PreferredAvailabilityZone -> (string)
The name of the Availability Zone in which the cluster is located or “Multiple” if the cache nodes are located in different Availability Zones.
PreferredOutpostArn -> (string)
The outpost ARN in which the cache cluster is created.
CacheClusterCreateTime -> (timestamp)
The date and time when the cluster was created.
PreferredMaintenanceWindow -> (string)
Specifies the weekly time range during which maintenance on the cluster is performed. It is specified as a range in the format ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period.
Valid values for
ddd
are:
sun
mon
tue
wed
thu
fri
sat
Example:
sun:23:00-mon:01:30
PendingModifiedValues -> (structure)
A group of settings that are applied to the cluster in the future, or that are currently being applied.
NumCacheNodes -> (integer)
The new number of cache nodes for the cluster.
For clusters running Redis, this value must be 1. For clusters running Memcached, this value must be between 1 and 40.
CacheNodeIdsToRemove -> (list)
A list of cache node IDs that are being removed (or will be removed) from the cluster. A node ID is a 4-digit numeric identifier (0001, 0002, etc.).
(string)
EngineVersion -> (string)
The new cache engine version that the cluster runs.
CacheNodeType -> (string)
The cache node type that this cluster or replication group is scaled to.
AuthTokenStatus -> (string)
The auth token status
LogDeliveryConfigurations -> (list)
The log delivery configurations being modified
(structure)
The log delivery configurations being modified
LogType -> (string)
Refers to slow-log or engine-log..
DestinationType -> (string)
Returns the destination type, either CloudWatch Logs or Kinesis Data Firehose.
DestinationDetails -> (structure)
Configuration details of either a CloudWatch Logs destination or Kinesis Data Firehose destination.
CloudWatchLogsDetails -> (structure)
The configuration details of the CloudWatch Logs destination.
LogGroup -> (string)
The name of the CloudWatch Logs log group.
KinesisFirehoseDetails -> (structure)
The configuration details of the Kinesis Data Firehose destination.
DeliveryStream -> (string)
The name of the Kinesis Data Firehose delivery stream.
LogFormat -> (string)
Returns the log format, either JSON or TEXT
NotificationConfiguration -> (structure)
Describes a notification topic and its status. Notification topics are used for publishing ElastiCache events to subscribers using Amazon Simple Notification Service (SNS).
TopicArn -> (string)
The Amazon Resource Name (ARN) that identifies the topic.
TopicStatus -> (string)
The current state of the topic.
CacheSecurityGroups -> (list)
A list of cache security group elements, composed of name and status sub-elements.
(structure)
Represents a cluster’s status within a particular cache security group.
CacheSecurityGroupName -> (string)
The name of the cache security group.
Status -> (string)
The membership status in the cache security group. The status changes when a cache security group is modified, or when the cache security groups assigned to a cluster are modified.
CacheParameterGroup -> (structure)
Status of the cache parameter group.
CacheParameterGroupName -> (string)
The name of the cache parameter group.
ParameterApplyStatus -> (string)
The status of parameter updates.
CacheNodeIdsToReboot -> (list)
A list of the cache node IDs which need to be rebooted for parameter changes to be applied. A node ID is a numeric identifier (0001, 0002, etc.).
(string)
CacheSubnetGroupName -> (string)
The name of the cache subnet group associated with the cluster.
CacheNodes -> (list)
A list of cache nodes that are members of the cluster.
(structure)
Represents an individual cache node within a cluster. Each cache node runs its own instance of the cluster’s protocol-compliant caching software - either Memcached or Redis.
The following node types are supported by ElastiCache. Generally speaking, the current generation types provide more memory and computational power at lower cost when compared to their equivalent previous generation counterparts.
General purpose:
Current generation: M6g node types: (available only for Redis engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward):
cache.m6g.large
,cache.m6g.xlarge
,cache.m6g.2xlarge
,cache.m6g.4xlarge
,cache.m6g.8xlarge
,cache.m6g.12xlarge
,cache.m6g.16xlarge
Note
For region availability, see Supported Node Types
M5 node types:
cache.m5.large
,cache.m5.xlarge
,cache.m5.2xlarge
,cache.m5.4xlarge
,cache.m5.12xlarge
,cache.m5.24xlarge
M4 node types:cache.m4.large
,cache.m4.xlarge
,cache.m4.2xlarge
,cache.m4.4xlarge
,cache.m4.10xlarge
T4g node types (available only for Redis engine version 6.0 onward and for Memcached engine version 1.5.16 onward):cache.t4g.micro
,cache.t4g.small
,cache.t4g.medium
T3 node types:cache.t3.micro
,cache.t3.small
,cache.t3.medium
T2 node types:cache.t2.micro
,cache.t2.small
,cache.t2.medium
Previous generation: (not recommended) T1 node types:
cache.t1.micro
M1 node types:cache.m1.small
,cache.m1.medium
,cache.m1.large
,cache.m1.xlarge
M3 node types:cache.m3.medium
,cache.m3.large
,cache.m3.xlarge
,cache.m3.2xlarge
Compute optimized:
Previous generation: (not recommended) C1 node types:
cache.c1.xlarge
Memory optimized with data tiering:
Current generation: R6gd node types (available only for Redis engine version 6.2 onward).
cache.r6gd.xlarge
,cache.r6gd.2xlarge
,cache.r6gd.4xlarge
,cache.r6gd.8xlarge
,cache.r6gd.12xlarge
,cache.r6gd.16xlarge
Memory optimized:
Current generation: R6g node types (available only for Redis engine version 5.0.6 onward and for Memcached engine version 1.5.16 onward).
cache.r6g.large
,cache.r6g.xlarge
,cache.r6g.2xlarge
,cache.r6g.4xlarge
,cache.r6g.8xlarge
,cache.r6g.12xlarge
,cache.r6g.16xlarge
Note
For region availability, see Supported Node Types
R5 node types:
cache.r5.large
,cache.r5.xlarge
,cache.r5.2xlarge
,cache.r5.4xlarge
,cache.r5.12xlarge
,cache.r5.24xlarge
R4 node types:cache.r4.large
,cache.r4.xlarge
,cache.r4.2xlarge
,cache.r4.4xlarge
,cache.r4.8xlarge
,cache.r4.16xlarge
Previous generation: (not recommended) M2 node types:
cache.m2.xlarge
,cache.m2.2xlarge
,cache.m2.4xlarge
R3 node types:cache.r3.large
,cache.r3.xlarge
,cache.r3.2xlarge
,cache.r3.4xlarge
,cache.r3.8xlarge
Additional node type info
All current generation instance types are created in Amazon VPC by default.
Redis append-only files (AOF) are not supported for T1 or T2 instances.
Redis Multi-AZ with automatic failover is not supported on T1 instances.
Redis configuration variables
appendonly
andappendfsync
are not supported on Redis version 2.8.22 and later.CacheNodeId -> (string)
The cache node identifier. A node ID is a numeric identifier (0001, 0002, etc.). The combination of cluster ID and node ID uniquely identifies every cache node used in a customer’s Amazon account.
CacheNodeStatus -> (string)
The current state of this cache node, one of the following values:
available
,creating
,rebooting
, ordeleting
.CacheNodeCreateTime -> (timestamp)
The date and time when the cache node was created.
Endpoint -> (structure)
The hostname for connecting to this cache node.
Address -> (string)
The DNS hostname of the cache node.
Port -> (integer)
The port number that the cache engine is listening on.
ParameterGroupStatus -> (string)
The status of the parameter group applied to this cache node.
SourceCacheNodeId -> (string)
The ID of the primary node to which this read replica node is synchronized. If this field is empty, this node is not associated with a primary cluster.
CustomerAvailabilityZone -> (string)
The Availability Zone where this node was created and now resides.
CustomerOutpostArn -> (string)
The customer outpost ARN of the cache node.
AutoMinorVersionUpgrade -> (boolean)
If you are running Redis engine version 6.0 or later, set this parameter to yes if you want to opt-in to the next auto minor version upgrade campaign. This parameter is disabled for previous versions.
SecurityGroups -> (list)
A list of VPC Security Groups associated with the cluster.
(structure)
Represents a single cache security group and its status.
SecurityGroupId -> (string)
The identifier of the cache security group.
Status -> (string)
The status of the cache security group membership. The status changes whenever a cache security group is modified, or when the cache security groups assigned to a cluster are modified.
ReplicationGroupId -> (string)
The replication group to which this cluster belongs. If this field is empty, the cluster is not associated with any replication group.
SnapshotRetentionLimit -> (integer)
The number of days for which ElastiCache retains automatic cluster snapshots before deleting them. For example, if you set
SnapshotRetentionLimit
to 5, a snapshot that was taken today is retained for 5 days before being deleted.Warning
If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off.
SnapshotWindow -> (string)
The daily time range (in UTC) during which ElastiCache begins taking a daily snapshot of your cluster.
Example:
05:00-09:00
AuthTokenEnabled -> (boolean)
A flag that enables using an
AuthToken
(password) when issuing Redis commands.Default:
false
AuthTokenLastModifiedDate -> (timestamp)
The date the auth token was last modified
TransitEncryptionEnabled -> (boolean)
A flag that enables in-transit encryption when set to
true
.You cannot modify the value of
TransitEncryptionEnabled
after the cluster is created. To enable in-transit encryption on a cluster you must setTransitEncryptionEnabled
totrue
when you create a cluster.Required: Only available when creating a replication group in an Amazon VPC using redis version
3.2.6
,4.x
or later.Default:
false
AtRestEncryptionEnabled -> (boolean)
A flag that enables encryption at-rest when set to
true
.You cannot modify the value of
AtRestEncryptionEnabled
after the cluster is created. To enable at-rest encryption on a cluster you must setAtRestEncryptionEnabled
totrue
when you create a cluster.Required: Only available when creating a replication group in an Amazon VPC using redis version
3.2.6
,4.x
or later.Default:
false
ARN -> (string)
The ARN (Amazon Resource Name) of the cache cluster.
ReplicationGroupLogDeliveryEnabled -> (boolean)
A boolean value indicating whether log delivery is enabled for the replication group.
LogDeliveryConfigurations -> (list)
Returns the destination, format and type of the logs.
(structure)
Returns the destination, format and type of the logs.
LogType -> (string)
Refers to slow-log or engine-log.
DestinationType -> (string)
Returns the destination type, either
cloudwatch-logs
orkinesis-firehose
.DestinationDetails -> (structure)
Configuration details of either a CloudWatch Logs destination or Kinesis Data Firehose destination.
CloudWatchLogsDetails -> (structure)
The configuration details of the CloudWatch Logs destination.
LogGroup -> (string)
The name of the CloudWatch Logs log group.
KinesisFirehoseDetails -> (structure)
The configuration details of the Kinesis Data Firehose destination.
DeliveryStream -> (string)
The name of the Kinesis Data Firehose delivery stream.
LogFormat -> (string)
Returns the log format, either JSON or TEXT.
Status -> (string)
Returns the log delivery configuration status. Values are one of
enabling
|disabling
|modifying
|active
|error
Message -> (string)
Returns an error message for the log delivery configuration.