Is there any way, using the AWS CLI, to retrieve the parsed credentials the CLI will be using? I need to use these credentials in a different script to connect to S3. There are a few steps to determine which credentials should be used, as documented here: http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html but I would like to not have to parse that myself and just let the AWS CLI do it as well.
0
votes
Have you considered something like docs.aws.amazon.com/cli/latest/reference/sts/assume-role.html or docs.aws.amazon.com/cli/latest/reference/sts/… ?
– ceejayoz
You could maybe read the underlying boto source code to see if there's some way to retrieve either the credential provider or the credentials themselves directly.
– jarmod