Open nchammas opened 4 years ago
Chiming in here...
gimme-aws-creds
is used to generate tokens for the AWS CLI.
The AWS CLI has the option to use environment variable AWS_PROFILE
to select the tokens from the credentials file that gimme-aws-creds manages.
So why not use AWS_PROFILE
for this purpose? If that env variable is set, then take that as the default profile for gimme-aws-creds
.
There's a PR open for this:
https://github.com/Nike-Inc/gimme-aws-creds/issues/271
I have my own implementation in my fork and it seems to be working fine:
https://github.com/jcreyf/gimme-aws-creds/tree/env_vars/gimme_aws_creds
Expected Behavior
I'm looking for a feature that looks like this:
This would be equivalent to:
Current Behavior
There is currently no way to select a non-default profile without using
--profile
.GIMME_AWS_CREDS_CRED_PROFILE
is for selecting the AWS credentials profile to write to, not for selecting the gimme-aws-creds profile.Possible Solution
This new config environment variable would roughly mirror how the existing
GIMME_AWS_CREDS_*
variables work. If--profile
is not specified, the tool would checkGIMME_AWS_CREDS_PROFILE
. If that's not specified either, then it uses the default profile.Context
We have different members of our team working in different AWS accounts. They want to be able to set a default profile for their terminal sessions so they can just call
gimme-aws-creds
without any parameters. Everything would be captured in the gimme-aws-creds config file and, as proposed here, inGIMME_AWS_CREDS_PROFILE
.Your Environment
gimme-aws-creds 2.3.3