【问题标题】:AWS ElastiCache Describe CacheClustersAWS ElastiCache 描述 CacheClusters
【发布时间】: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


    【解决方案1】:

    我发现了我的问题。由于有多个节点,我需要在 cachecluseterid 中添加一个 -001(或 2,3,)。然后该功能起作用

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-05-06
      • 1970-01-01
      • 2017-03-16
      • 1970-01-01
      • 1970-01-01
      • 2016-07-08
      • 1970-01-01
      • 2016-11-04
      相关资源
      最近更新 更多