Reputation: 193
I'm creating a VPC in aws, and plan to add dynamodb and lambda to access to dynamo. If dynamodb is in a private subnet, what else do i need for lambda to connect to the dynamo. If lambda is invoked by API gateway , can lambda and dynamodb be under same private subnet?
Upvotes: 0
Views: 1826
Reputation: 5403
DynamoDB is not located in your VPC. If you want to access DynamoDB via the private network from Lambda, you can use the DynamoDB VPC Gateway endpoint. A route will be added to your subnet route table, all traffic to DynamoDB will route through AWS internal network.
Things to setup:
Upvotes: 2