What are the action and resource to connect the RDS

最后都变了- 提交于 2021-02-11 14:25:29

问题


Lambda role have below permissions

"Action" : "rds-db:connect"

"Resource":  "arn:aws:rds:*:6548938434:cluster:*"

Code is below

import pg8000
#region is us-east-2b
client = boto3.client(service_name='rds',
                      region_name='us-east-2')

def lambda_handler(event,context):
   conn = pg8000.connect(database='postgres', user='test_user',\
                          password='1234567', \
                          host='abc-dev-chhd674.us-east-2.rds.amazonaws.com', \
                          port=5432, ssl_context=True)

I have connection timed out issue

来源:https://stackoverflow.com/questions/65245051/what-are-the-action-and-resource-to-connect-the-rds

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!