Skip to content

Allow configuring sso-session settings non-interactively #7835

@fitzoh

Description

@fitzoh

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    configurefeature-requestA feature should be added or improved.p2This is a standard priority issuesso

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions