aws-google-auth icon indicating copy to clipboard operation
aws-google-auth copied to clipboard

Usability: print credentials success message

Open tjbaker opened this issue 7 years ago • 2 comments

I'd love to see a summary success message like the following:

https://github.com/ThoughtWorksInc/aws_role_credentials/blob/master/aws_role_credentials/actions.py#L27-L33

Related, this project prints an export statement though I wonder how often it is used. This project encourages the use of the profile best practice, so wonder why people need to export the vars.

tjbaker avatar Jan 19 '18 14:01 tjbaker

That's a very valid question. I think we could add a flag -e, --export to output only the export line, and by default print something more human friendly.

That would also make it easier to use this tool with other scripts:

...
$(aws-google-auth ...)
...

instead of

...
$(aws-google-auth ... | tail -n 1)
...

mide avatar Jan 19 '18 14:01 mide

yes, I added that because my initial workflow was to do something like eval $(aws-google-auth | grep export) (not exactly, but you get the idea). Having it an option flag would make this cleaner while retaining the functionality.

nonspecialist avatar Jan 29 '18 21:01 nonspecialist