Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Usability: Show AWS region where the key does not exist #72

Open
earthquakesan opened this issue May 13, 2018 · 3 comments
Open

Usability: Show AWS region where the key does not exist #72

earthquakesan opened this issue May 13, 2018 · 3 comments

Comments

@earthquakesan
Copy link

When creating new deployment, if the ssh key pair is not in the region, graviton will spit an error:

Creating the new deployment stardog-cloud
Failed: The AWS keyname stardog-ssh-key does not exist

For improving the readability, I suggest to modify the error output to:

Failed: The AWS keyname stardog-ssh-key does not exist in the region Frankfurt
@earthquakesan
Copy link
Author

P.S. It took me couple of minutes to figure out that I have a keypair in the wrong region

@pdmars
Copy link
Member

pdmars commented May 14, 2018

Thanks for the suggestion. More detailed output as to the exact reason and region would definitely be helpful.

@earthquakesan
Copy link
Author

If retrieving region is not feasible, the next helpful thing would be to output all the key names to the user. They are retrieved anyway, that will be just a line of code.

i.e.
"Could not find key 'stardog-ssh-key' in the keys available on AWS. The available keys are: ['key-1', 'key-2', 'key-3'].

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants