在chalice路由中,我使用boto3对我的RDS Aurora无服务器DB集群执行查询。这在本地($ chalice local
)可以像预期的那样工作,但是在Lamdba上部署时,我收到错误:An error occurred (BadRequestException) when calling the ExecuteStatement operation: Failed to fetch secret arn:aws:secretsmanager:us-west-2...
我已经按照这里的说明更新了VPC之间的各种策略https://docs.aws.amazon.com/lambda/latest/dg/configuration-vpc.html?icmpid=docs_lambda_help
boto3.client('rds-data').execute_statement( resourceArn = cluster_arn, secretArn = secret_arn, database = 'XXX', sql = sql, # sql string )
目前没有回答
相关问题 更多 >
编程相关推荐