benkehoe / aws-sso-util

Smooth out the rough edges of AWS SSO (temporarily, until AWS makes it better).
Apache License 2.0
970 stars 72 forks source link

aws-sso-util configure profile is hard to use #40

Open Shumakriss opened 3 years ago

Shumakriss commented 3 years ago

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

benkehoe commented 3 years ago

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 commented 3 years ago

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.