Open Shumakriss opened 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.
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.
When using
aws-sso-util configure profile
a few things make it difficult to use: