I am trying to run the describe_cache_clusters command on Python using boto3. This command works when my ElastiCache Cluster has one node, but it does not work when there are multiple nodes. I get the same error as well when I use the AWS CLI command which is that the cluster is not found.
client = boto3.client('elasticache')
paginator = client.get_paginator('describe_cache_clusters')
response = paginator.paginate(
CacheClusterId='xxxxx',
ShowCacheNodeInfo=True,
ShowCacheClustersNotInReplicationGroups=False,)
Is this a shortcoming of the function itself? I am trying to get the cachecluster endpoint without having to use the UI.
Here are some of the ElastiCache configuration:
Redis: 3.2.4
NodeType cache.r3.large
1 Shard, 3 Nodes
I figured out my problem. Since there are multiple nodes I need a -001 (or2,3,) in the cachecluseterid. Then the function works
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.