I have a Java application which is deployed in EC2 and communicate with Dynamodb. I have enable VPC endpoint (Gateway endpoint) for Dynamodb. But I didn't notice any performance improvement with this change. Theoretically I should see less latency via VPC endpoint compared to public access.
Also based on the tcpdump, I can see our application is still using public IP of dynamodb to communicate.
Here 52.119.232.38
is dynamodb public IP.
How can I verify that our application in EC2 is using VPC endpoint to communicate with Dynamodb ?
- Both EC2 and VPC endpoint enable for same VPC.