Lambda cannot connect to RDS: Task timed out after 60.01 seconds in the same account

问题描述 投票:0回答:0
  1. 我的 lambda 和
    RDS
    驻留在同一个帐户中,但在不同的
    VPCs
    ;
  2. 我已经添加了所有必要的权限,我有权访问我的 Lambda
    RDS
  3. 凭据是正确的,因为我可以使用完全相同的凭据直接从我的
    RDS
    客户端访问/读取/写入
    SQL
    中的表,但不是通过此 Lambda 函数;
    我在我的 Lambda 
  4. MacBook
  5. VPC
    VPC
    之间创建了一个
    RDS
    对等;
    我在 
  6. VPC
  7. DNS
    对等连接上都启用了
    VPCs
    解析
    
    
  8. 问题仍然存在,从我的 Lambda 日志中,它只是说:

VPC

这是我的
2023-05-18T23:12:09.199Z abcad-cbd-129084-jcdosibn-cdascds Task timed out after 60.03 seconds

访问代码

Python
RDS


amazon-web-services aws-lambda amazon-rds amazon-vpc
© www.soinside.com 2019 - 2024. All rights reserved.