amazon-web-servicesamazon-app-runner

Does AWS App Runner support accessing values in secrets manager


I'm using Terraform to create both the App Runner instance and Secrets manager.

I'm getting a socket timeout error when trying to access secret manager from App Runner.
I'm new to App runner but I assumed that App runner would have access to secrets manager.

The application requires access to the database on startup but can't retrieve db connection stored in secret manager on start so deployment of App Runner fails.

Error: Caused by: org.apache.http.conn.ConnectTimeoutException: 
Connect to sts.us-east-1.amazonaws.com:443 
[sts.us-east-1.amazonaws.com/54.239.24.200] failed: Connect timed out

Solution

  • EDIT: As of Jan 2023, this is supported now: https://aws.amazon.com/about-aws/whats-new/2023/01/aws-app-runner-secrets-configuration-aws-secrets-systems-manager.

    They've also added CDK support: https://github.com/aws/apprunner-roadmap/issues/6#issuecomment-1399768598

    OLD ANSWER BELOW:

    It doesn't look like it is currently supported, but is on the roadmap. See the AWS App Runner roadmap here:

    https://github.com/aws/apprunner-roadmap

    You can also vote for this specific feature request:

    https://github.com/aws/apprunner-roadmap/issues/6