【以下的问题经过翻译处理】 当我使用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
请问为什么我会遇到这个问题,应该怎么解决?