Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting temporary credentials via IAM role associated with instance profile #131

Open
mokshjawa opened this issue Apr 4, 2021 · 0 comments

Comments

@mokshjawa
Copy link

If I have an EC2 instance running with an IAM role attached to the instance profile that gives the instance permission to hit a certain API, I would want the temporary credentials generated by the instance be used to sign my API request. How can I do that with the sign() method? If I don't provide credentials to the function, I see "it can get credentials from process.env.AWS_ACCESS_KEY_ID, etc." However, is there any way to get the temporary credentials from the instance?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant