Closed nickphbrown closed 1 year ago
I'm happy to attempt a PR for this btw, as long as I get the OK that there's nothing against the idea
Hey @nickphbrown. Doesn't https://github.com/ruimarinho/gsts/blob/bde055fa130ca0e99097c8e0aee0b3c05325920e/credentials-manager.js#L203-L222 serve that purpose already?
@ruimarinho It doesn’t. The part you’ve quoted shows the credentials being saved to the aws credentials file.
What I’d like is to be able to run the command ‘gsts —aws-profile {profile-name}’ and it picks up the ‘aws-role-arn’, ‘sp-id’, ‘idp-id’ and ‘username’ from the aws config file.
That way I don’t need to use the aws ‘credential_process’ feature but can still easily get credentials for any profile without having to know any other information than the profile name
Rui! Esta functionalidade está a tornar-se uma questão de orgulho nacional! Trabalho nos EUA e usavamos aws-google-auth
, mas com os problemas que essa ferramenta teve esta semana e falta de manutenção, resolvemos mudara para gsts
.
Eis a minha reacção:
mas depois:
Ok, brincadeiras à parte:
aws-google-auth
.This feature will land on the next major via https://github.com/ruimarinho/gsts/pull/82!
Using the aws config file for the google config helps with managing many profiles that assume a different role each.
Rather than having to remember the role arns for different profiles and pass them to the gsts command it would be handy for gsts to look in the aws config based on the aws-profile that I pass it.
See an example of a config item used for aws-google-auth below along with a link to the part in the code where the file is read and config is set
https://github.com/cevoaustralia/aws-google-auth/blob/19a48a54fa69e5874764b9764da3f6bac6312777/aws_google_auth/configuration.py#L163