hashicorp / go-secure-stdlib

Mozilla Public License 2.0
64 stars 24 forks source link

awsutil: add GetCallerIdentity #9

Closed vancluever closed 3 years ago

vancluever commented 3 years ago

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

vancluever commented 3 years ago

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

Thanks!