Auto-refresh temporary credentials #4411
Unanswered
marwenguesmii
asked this question in
Q&A
Replies: 1 comment
-
Hi @Marwennnne , You don't need to manually set the credentials. The Credential provider chain should read the IAM role from the environment variables if they are correctly injected, fetch and refresh the credentials when needed. so: const AWS = require('aws-sdk')
const client = new AWS.S3()
// client.getObject(.... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I am setting IAM ROLE for service account and I have a problem. The aws creds that I fetch from the token file are only valid for 12 hours. I tried to refresh them by doing this:
But it didn't seem like the right solution . Is there any way for the aws creds to auto-refresh ?
Beta Was this translation helpful? Give feedback.
All reactions