我想重命名AWS RDS中的现有mysql数据库
import boto3
rds_client = boto3.client('rds')
target_reports_db = "myproject"
rds_client.modify_db_instance(DBInstanceIdentifier=target_reports_db,
ApplyImmediately=True,
NewDBInstanceIdentifier=f"{target_reports_db}-to-drop")
rds_waiter = rds_client.get_waiter('db_instance_available')
rds_waiter.wait(DBInstanceIdentifier=f"{target_reports_db}-to-drop")
但是它会引发错误:
[ERROR] WaiterError: Waiter DBInstanceAvailable failed: DBInstance myproject-to-drop not found.
为什么boto3会引发此错误?