Timeout in load_from_env in AWS lambda #1227
Unanswered
rlbrillband
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Could you please enable a |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a lambda that uses credentials stored in SSM. To fetch this, I have the following code. I added some extra logging to pin down the issue.
I run it on my local machine (using the AWS command line SSO and cargo lambda watch/invoke) then it works. However when I deploy the lambda into AWS and invoke it there, it times out on the
load_from_env
function. Even when allowing a much more generous timeout (120s) it still does not resolve. Logs:From my Cargo.toml:
aws-config = { version = "1.5.11", features = ["behavior-version-latest"] }
Is perhaps something wrong with my deployment? It's very unclear what is causing the config to not load. It would be useful if it could log some known causes of timeouts.
Beta Was this translation helpful? Give feedback.
All reactions