aws-sso-util icon indicating copy to clipboard operation
aws-sso-util copied to clipboard

aws-sso-util configure profile is hard to use

Open Shumakriss opened this issue 3 years ago • 2 comments

When using aws-sso-util configure profile a few things make it difficult to use:

  • Prompt for start URL and region (I think this can be safely assumed by the time we start setting up profiles)
  • After providing a valid account Id and role, a selector box still pops up and requires me to find the role again
  • The roles in the selector don't appear to be sorted or searchable and the list can be quite long
  • CLI default client region and format are requested at each new profile without any default option. The region and format must be entered each time.

Shumakriss avatar Sep 17 '21 15:09 Shumakriss

These are all good requests. Currently, aws-sso-util configure profile delegates to aws configure sso if not all the required information is provided, and there isn't a way to provide any of the partial information that aws-sso-util configure profile has to that CLI command, so it reprompts for everything. So, you should probably open one or more issues on the CLI repo for improvements there. But you can leave this one open as well, as it's possible aws-sso-util configure profile will get its own implementation in the future.

You can also disable the delegation to aws configure sso with the --non-interactive flag, in which case it will error out if not all the required information is provided.

benkehoe avatar Sep 18 '21 18:09 benkehoe

Also, you can use AWS_CONFIGURE_DEFAULT_REGION to set the default region (though again, this won't help if it gets delegated to aws configure sso). I hear you on the format, though.

benkehoe avatar Sep 18 '21 18:09 benkehoe