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

查看:440
本文介绍了允许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天全站免登陆