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 réponse
1
Réponse acceptée

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
EXPERT
répondu il y a un mois
profile picture
EXPERT
vérifié il y a un mois
  • This was it! Created a VPC endpoint for DynamoDB interface and gateway and it's working now. Thanks so much!

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions