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

awsutil: add GetCallerIdentity #9

Merged
merged 2 commits into from
Sep 17, 2021
Merged

Conversation

vancluever
Copy link
Contributor

This adds the GetCallerIdentity call, which allows for a set of
credentials/session to get information on its effective account ID and
principal ARN.

This can be useful in checking the validity of credentials, as it
requires no permissions to run other than the access key to be usable.

For info on the call, see:
https://docs.aws.amazon.com/STS/latest/APIReference/API_GetCallerIdentity.html

This adds the GetCallerIdentity call, which allows for a set of
credentials/session to get information on its effective account ID and
principal ARN.

This can be useful in checking the validity of credentials, as it
requires no permissions to run other than the access key to be usable.

For info on the call, see:
  https://docs.aws.amazon.com/STS/latest/APIReference/API_GetCallerIdentity.html
This adds a backoff and timeout option to GetCallerIdentity, allowing it
to be used in "waiter" context, where wait for success on the call to
ensure valid credentials.
Copy link
Member

@jefferai jefferai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@vancluever
Copy link
Contributor Author

@jefferai looks like I can't merge to this repository - can I get permission or can you do it?

Thanks!

@jefferai jefferai merged commit 29a9a55 into main Sep 17, 2021
@jefferai jefferai deleted the vancluever-get-caller-identity branch September 17, 2021 17:31
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

Successfully merging this pull request may close these issues.

None yet

2 participants