【发布时间】:2018-01-15 00:24:09
【问题描述】:
我正在尝试使用 boto3 在 Python 上运行 describe_cache_clusters 命令。此命令在我的 ElastiCache 集群有一个节点时有效,但在有多个节点时无效。当我使用 AWS CLI 命令时,我也遇到了同样的错误,即找不到集群。
client = boto3.client('elasticache')
paginator = client.get_paginator('describe_cache_clusters')
response = paginator.paginate(
CacheClusterId='xxxxx',
ShowCacheNodeInfo=True,
ShowCacheClustersNotInReplicationGroups=False,)
这是函数本身的缺点吗?我试图在不使用 UI 的情况下获取 cachecluster 端点。
以下是一些 ElastiCache 配置:
Redis: 3.2.4
NodeType cache.r3.large
1 Shard, 3 Nodes
【问题讨论】:
标签: python amazon-web-services amazon-elasticache