-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Allow configuring sso-session settings non-interactively #7835
Description
Describe the feature
As mentioned in this comment, you cannot use aws configure set to set sso-session parameters in the AWS config file.
The CLI should provide a mechanism to non-interactively set these values
Use Case
I'm trying to set up command line tools for multiple users in an organization, making it easy to use AWS SSO for their tooling.
I would like to be able to give them a script to run to add SSO config to their config files vs manual instructions.
Proposed Solution
Update aws configure to work with sso-session prefixes like this:
aws configure set sso-session.session-name.sso_region eu-west-1 (As shown by @ezzatron in #7364 (comment)).
Alternatively, update aws configure sso-session to allow non-interactive operation by allowing flags instead of passing in values interactively (this might make sense as a separate issue)
Other Information
No response
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
CLI version used
2.9.6
Environment details (OS name and version, etc.)
Mac OS Ventura