允许 AWS Lambda 访问 RDS 数据库 [英] Allow AWS Lambda to access RDS Database

查看:50
本文介绍了允许 AWS Lambda 访问 RDS 数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从 AWS Lambda (Java) 连接到 RDS 数据库.

I am trying to connect to RDS Database from an AWS Lambda (Java).

我应该从 RDS 安全组规则启用哪个 IP?

Which IP should I enable from the RDS Security group rules?

推荐答案

您无法通过 IP 启用此功能.首先,您需要为 Lambda 函数启用 VPC 访问,在此期间您将为其分配一个安全组.然后,在分配给 RDS 实例的安全组中,您将为分配给 Lambda 函数的安全组启用访问权限.

You can't enable this via IP. First you will need to enable VPC access for the Lambda function, during which you will assign it a Security Group. Then, within the Security Group assigned to the RDS instance you will enable access for the Security Group assigned to the Lambda function.

这篇关于允许 AWS Lambda 访问 RDS 数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆