aws / aws-cli

Universal Command Line Interface for Amazon Web Services
Other
15.58k stars 4.14k forks source link

Environment variable support for SSO #9022

Open jjshoe opened 2 years ago

jjshoe commented 2 years ago

Describe the feature

A lot of CLI configuration can be controlled via environment variables, but the SSO parameters are not available. Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html

Use Case

If I can pass in configuration via env vars it makes it easier to automate writing out the credentials file. Expanded:

  1. write a config
  2. get credentials
  3. write a config again

If I can set sso params as env vars, I can reduce it down to:

  1. get credentials
  2. write a config

Additionally this is useful in scenarios like:

Proposed Solution

No response

Other Information

No response

Acknowledgements

CLI version used

2

Environment details (OS name and version, etc.)

linux

tim-finnigan commented 2 years ago

Hi @jjshoe thanks for the feature request. Which environment variables specifically would you like to see get created for SSO? Please let me know if there is anything you want to expand on as far as how these would help your workflows.

I can reach out to the SSO team regarding your request but will probably transfer this issue to our cross-SDK repository since environment variables are shared across SDKs.

github-actions[bot] commented 2 years ago

Greetings! It looks like this issue hasn’t been active in longer than five days. We encourage you to check if this is still an issue in the latest release. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or upvote with a reaction on the initial post to prevent automatic closure. If the issue is already closed, please feel free to open a new one.

jjshoe commented 2 years ago

@tim-finnigan all necessary sso configuration values in the config.

tim-finnigan commented 2 years ago

Thanks for following up. I'll go ahead and transfer this to our cross-SDK repository as environment variables are used across AWS SDKs. If there are any further details or feedback you'd like to provide please let us know.