RDS故障切换API问题

0

【以下的问题经过翻译处理】 当我使用Python boto3 API执行failover_db_cluster操作时,传递了writer DB实例标识符,但是它给我以下错误。但是,我能够成功使用其他API,比如describe_db_clusters。

注意:我是从EC2实例运行代码的。

以下是示例代码 -

import boto3
session = boto3.Session()
client = session.client('rds')
response = client.failover_db_cluster(DBClusterIdentifier="test-instance-2")
print(response)

botocore.errorfactory.DBClusterNotFoundFault: An error occurred (DBClusterNotFoundFault) when calling the FailoverDBCluster operation: The source cluster could not be found or cannot be accessed: test-instance-2

请问为什么我会遇到这个问题,应该怎么解决?

profile picture
ESPECIALISTA
feita há 8 meses19 visualizações
1 Resposta
0

【以下的回答经过翻译处理】 那个集群标识符看起来像是一个实例“test-instance-2”。你确定输入了正确的标识符吗?

profile picture
ESPECIALISTA
respondido há 8 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas