benkehoe / aws-sso-util

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

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

Open Shumakriss opened 3 years ago

Shumakriss commented 3 years ago

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:

benkehoe commented 3 years ago

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?