Skip to content

docs(credential-provider-node): correct example code for EKS IAM roles #2909

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

Merged
merged 1 commit into from
Aug 9, 2023

Conversation

scottybrisbane
Copy link
Contributor

Issue

N/A

Description

The example code for EKS roles in the credential-provider-node README currently passes the getDefaultRoleAssumerWithWebIdentity function itself as the roleAssumerWithWebIdentity when setting up the default credentials provider. Instead, it should be calling this function and passing the returned value (also a function).

Testing

The current example code does not work as intended. By instead calling the getDefaultRoleAssumerWithWebIdentity and passing its returned value as roleAssumerWithWebIdentity, I was able to get a working example going.

Additional context

N/A


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

The example code for EKS roles in the `credential-provider-node` README incorrectly passes the `getDefaultRoleAssumerWithWebIdentity` function itself as the `roleAssumerWithWebIdentity` when setting up the default provider. Instead, it should be calling this function and passing the returned value instead (also a function).
@codecov-commenter

This comment was marked as outdated.

@scottybrisbane scottybrisbane changed the title Correct example code in credential-provider-node README docs(credential-provider-node): Correct example code for EKS IAM roles Oct 18, 2021
@scottybrisbane scottybrisbane requested a review from a team as a code owner January 28, 2022 23:34
@siddsriv siddsriv self-assigned this Aug 9, 2023
@trivikr trivikr changed the title docs(credential-provider-node): Correct example code for EKS IAM roles docs(credential-provider-node): correct example code for EKS IAM roles Aug 9, 2023
@siddsriv siddsriv merged commit edf49b3 into aws:main Aug 9, 2023
@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants