我正在尝试通过 Python 查询 RDS(Postgres)数据库,更具体地说是 Jupyter Notebook。总的来说,我现在一直在尝试的是:
import boto3
client = boto3.client('rds-data')
response = client.execute_sql(
awsSecretStoreArn='string',
database='string',
dbClusterOrInstanceArn='string',
schema='string',
sqlStatements='string'
)
我一直收到的错误是:
BadRequestException: An error occurred (BadRequestException) when calling the ExecuteSql operation: ERROR: invalid cluster id: arn:aws:rds:us-east-1:839600708595:db:zprime
精慕HU
相关分类