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
전문가
답변함 한 달 전
profile picture
전문가
검토됨 한 달 전
  • This was it! Created a VPC endpoint for DynamoDB interface and gateway and it's working now. Thanks so much!

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

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

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

관련 콘텐츠