App Runner DynamoDB Timeout (rust)

0

I have a rust API container deployed using App Runner, and when I try to use the DynamoDB rust package to make calls to DynamoDB, I get http timeout errors.

This works fine locally when authenticated through the CLI, so the implementation seems correct.

I have a VPC set up with security groups all set to allow all outbound traffic and a VPC connector on the App Runner.

I have a role attached to the App Runner service config that allows full access to Elasticache and DynamoDB.

I'm able to connect to Elasticache Redis serverless in the same instance.

If anybody has any insight into this, it would be very helpful.

1 個回答
1
已接受的答案

Hello.

When you use the AppRunnerVPC connector, communication will be performed via the connected VPC.
In other words, I think you can connect by setting up a NAT Gateway or DynamoDB VPC endpoint in the VPC to which AppRunner is connected.
https://aws.amazon.com/jp/blogs/aws/new-for-app-runner-vpc-support/

When connected to a VPC, all outbound traffic from your AppRunner service will be routed based on the VPC routing rules. Services will not have access to the public internet (including AWS APIs) unless allowed by a route to a NAT Gateway. You can also set up VPC endpoints to connect to AWS APIs such as Amazon Simple Storage Service (Amazon S3) and Amazon DynamoDB to avoid NAT traffic.

profile picture
專家
已回答 1 個月前
profile picture
專家
已審閱 1 個月前
  • This was it! Created a VPC endpoint for DynamoDB interface and gateway and it's working now. Thanks so much!

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南