Lambda Function not connecting to DynamoDB via VPC

0

Have set up a Lambda function (which works). However, when a VPC is added it no longer can access DynamoDB. Permissions exist. Route table exists. Subnets exist. VPC endpoints exist. Everything seems to have required permissions. Lambda function has necessary IAM permissions to access DynamoDB. IAM role associated with the Lambda function has the required permissions to access DynamoDB. VPC configuration includes the necessary route table entries and subnets. Also configured VPC endpoint for DynamoDB. Looking for ideas on how to resolve. No CloudWatch logs or anything useful as attempted to connect to DB just times out.

2개 답변
0

Hi,

About the networking configuration that you mention: is access to public Internet possible (i.e existence of a default route) and allowed (via proper sec groups? ? Unless you make special provision (VPC endpoint for DDB), DDB will be accessed by the lambda via the public AWS service endpoints.

Best,

Didier

profile pictureAWS
전문가
답변함 한 달 전
  • Thanks Didier. Yes it is possible and there is a route and the security group has the permissions and I don't have an issue with it going through the public service endpoints - it just won't connect and as far as I can see everything is permissioned correctly and has the right policies attached. I created an EC2 instance to check the VPC could allow that to connect to DynamoDB and that worked - I can only assume the lambda function aspects are the issue. Not so much the security group but the lambda function execution role.

0

What about DNS? Do you have EnableDnsSupport set to true for the VPC?

profile pictureAWS
전문가
답변함 한 달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠