kherge/rs.aws-login

A check is not performed to see if the AWS CLI is available in PATH.

Closed this issue · 0 comments

The following checks have been done.

  • I could not find another bug report that covers what I discovered.
  • This report does not request new features or enhancements.

What is the current behavior?

When using aws-login without having aws in PATH, a vague error message is displayed.

$ aws-login eks
The list of available EKS clusters could not be retrieved from the AWS CLI.
  No such file or directory (os error 2)

What is the expected behavior?

The application should detect that aws is not available and display a better error message.

$ aws-login eks
Please ensure that the AWS CLI is available in PATH.

Some additional context.