Dynamodb Cross account and cross region private access

0

Hi all, I have a DynamoDB table managed in account A in the region R1. A client (Lambda) in account B in region R2 has to read this table from account A/R1 The requirement is that the traffic shall not go over the public Internet. What is the best way to establish it? I'm trying to use VPC peering between A and B accounts and connect to VPC endpoint for Dynamodb. But as far as I understand it's not possible :(

2 Answers
0
AWS
EXPERT
answered a year ago
0

From the VPC FAQ:

Q. Does traffic go over the internet when two instances communicate using public IP addresses, or when instances communicate with a public AWS service endpoint?

No. When using public IP addresses, all communication between instances and services hosted in AWS use AWS's private network. Packets that originate from the AWS network with a destination on the AWS network stay on the AWS global network

The use of a public IP address on a network does not mean the traffic is necessarily going across the internet. What the statement above is saying is that the public IP addressing AWS uses is routed on the AWS network. If the traffic is between two IP addresses that are owned by AWS then it does not go over the internet.

So for your situation: You can have a Lambda function in one region access DynamoDB in another region and it stays on the AWS network - it does not go over the internet.

As for the DynamoDB VPC Gateway Endpoint: It is only accessible from within the VPC that it is created in which is why VPC peering won't work in this case.

profile pictureAWS
EXPERT
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions