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

"populate" command has hidden required argument "--sso-start-util" and "--region"

Open Shumakriss opened this issue 4 years ago • 1 comments
trafficstars

When running aws-sso-util configure populate an error is thrown:

No AWS SSO instance found

This provides no indication that the --sso-start-util option is needed which then immediately throws

Error: Missing arguments: --region

It's easy to find the --sso-region option first and attempt to use it to specify the region.

After providing both --sso-start-util and --region, I was able to successfully log into AWS. Subsequent calls to populate without any arguments provide an error:

`aws-sso-util configure populate Usage: aws-sso-util configure populate [OPTIONS]

Error: Missing arguments: --region `

Once provided, the start URL is reused and populate completes successfully.

What I would expect to happen:

  • Populate command has positional arguments for region and start url which are always required
  • Populate command either assumes both arguments or neither
  • When assuming arguments, the values are displayed to the user or the user is prompted to confirm reuse

Shumakriss avatar Sep 17 '21 14:09 Shumakriss

The docs cover how the AWS SSO instance can be specified, and that a region is required. It also states the --verbose flag can be used to display the details of the AWS SSO instance finding.

Can you provide some examples of the combinations of input and resulting error message you're looking for?

benkehoe avatar Sep 18 '21 18:09 benkehoe