-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
manage a aws-sso
profile in ~/.aws/config
#157
Comments
* Local cache was not saving during auto-refresh causing future runs to not use the cache and slowing execution after 24hrs. * Add support for AWS `credential_process` output in ~/.aws/config files Refs #157
* Local cache was not saving during auto-refresh causing future runs to not use the cache and slowing execution after 24hrs. * Add support for AWS `credential_process` output in ~/.aws/config files Refs #157
* Local cache was not saving during auto-refresh causing future runs to not use the cache and slowing execution after 24hrs. * Add support for AWS `credential_process` output in ~/.aws/config files Refs #157
So the question is basically, should the user have:
Only the 3rd option seems useful? Basically turns into a question can we edit the As of AWS CLI v2, it honors |
what about just using a template marker like terraform-docs does? aka:
and generate a series of entries like:
then users can just use the typical |
also should support |
* Roles now support specifying a custom `Profile` value which is used as `AWS_SSO_PROFILE` and for the profile name in ~/.aws/config * Add support for the `config` command which generates the necessary profile entries in ~/.aws/config * Add StringReplace function for ProfileFormat * Refactor *AWSRoleFlat & *Roles into cache_roles.go * Add a bunch of unit tests Refs: #157, #212
* Roles now support specifying a custom `Profile` value which is used as `AWS_SSO_PROFILE` and for the profile name in ~/.aws/config * Add support for the `config` command which generates the necessary profile entries in ~/.aws/config * Add StringReplace function for ProfileFormat * Refactor *AWSRoleFlat & *Roles into cache_roles.go * Add a bunch of unit tests Refs: #157, #212
* Fix diffing across multiple runs * Consistent ordering based on SSO instance & ARN * Now updates the config file Refs: #157
* Fix diffing across multiple runs * Consistent ordering based on SSO instance & ARN * Now updates the config file Refs: #157
* Fix diffing across multiple runs * Consistent ordering based on SSO instance & ARN * Now updates the config file Refs: #157
* `eval` now supports `--url-action=print` because we now print to STDERR * Clarify that `process` does _NOT_ support print, because the AWS tooling eats STDERR. * `config` now takes an `--open` flag for overriding `UrlAction` in the config file with the `--url-action` flag on the CLI. Refs: #157
The idea here is that rather than setting a bunch of variables in the environment, it may just be easier to manage named profiles in the aws config files. per the docs we can even pass in the AWS_SESSION_TOKEN in the config file and of course the region as well. Seems very similar to #15.
You could then even run
aws-sso
as a daemon and it can auto-refresh credentials before they expire.AWS even has support for doing this via external processes: https://docs.aws.amazon.com/cli/latest/topic/config-vars.html#sourcing-credentials-from-external-processes (Fixed in #158)
Depends on #212
The text was updated successfully, but these errors were encountered: