gpt4 book ai didi

python - 如何使用 boto3 删除 aws elasticache redis 类型的集群?

转载 作者:太空宇宙 更新时间:2023-11-04 04:02:38 24 4
gpt4 key购买 nike

我想使用 boto3 删除 aws elasticache redis 集群。

我期望的语法是:

response = client.delete_cache_cluster(
CacheClusterId='string'
)

但它不起作用。事实上,文档指出:

This operation is not valid for:

  • Redis (cluster mode enabled) clusters

我找不到如何删除 redis 集群...

最佳答案

有一个 Redis 专用命令,delete_replication_group。参见 This .


找到文档后。对于 create_replication_group,然后它说

Creates a Redis (cluster mode disabled) or a Redis (cluster mode enabled) replication group.

对于 delete_replication_group

Deletes an existing replication group. By default, this operation deletes the entire replication group, including the primary/primaries and all of the read replicas. If the replication group has only one primary, you can optionally delete only the read replicas, while retaining the primary by setting RetainPrimaryCluster=true .

关于python - 如何使用 boto3 删除 aws elasticache redis 类型的集群?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57940023/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com