-
We are using the AWS SDK to obtain credentials for reading files from S3. The implementation works correctly in a local environment but fails in our cloud environment.
We rely on a Node IAM role to grant access to S3. However, in the cloud environment, we encounter the following issue:
This indicates that the call to IMDS (get-token) is not accessable after an excessively long duration (~3.4 hours). We suspect that this issue is due to a misconfiguration, such as a missing sleep_impl. However, it would be better if the SDK reported an error instead of hanging indefinitely, as this behavior makes the issue harder to diagnose and resolve. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
After reviewing the code, I found that the issue is not related to the SDK. Instead, it stems from a bug caused by improper use of block_on with the Tokio runtime. Therefore, I will close the question for now. |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
After reviewing the code, I found that the issue is not related to the SDK. Instead, it stems from a bug caused by improper use of block_on with the Tokio runtime. Therefore, I will close the question for now.