-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Better error message on invalid AMI ID #230
Comments
I ran into this when an old trusty64 AMI This issue appears to be reproducible by specifying an AMI which exists, but is inaccessible to your IAM credentials. Specifying a non-existent AMI or a badly-formatted AMI results in helpful feedback, e.g.:
|
Now all errors during instance launch give a message about wrong
Note that AMI was actually found and even launched. Kitchen wrongfully says that Would be good if error messages were consistent. |
@grv87 without your kitchen.yml or versions (any more detail) it's hard to say if that's a bad error message or a mis-configuration. |
I just ran into this one. If you give a bogus AMI in your region you get a pretty useless error. We should figure out how to catch that and return a friendly message: This is with an invalid AMI for the region I specified:
|
We should improve this with a message like this: "The AMI ABCXYZ specified cannot be found in the specified region XYZ. Please check this AMI is available in this region." |
Hey I debug in this and found out if we are giving any false or invalid AMI, it already pops out the below exception:
Also, If the AMI does not exist it is throwing below exception.
So, Just need to confirm do we need to update this error message(Invalid id: "ami-0affd4508a5d2482b") when the invalid AMI is given to like "The AMI ABCXYZ specified cannot be found in the specified region XYZ. Please check this AMI is available in this region." |
If you specify an invalid image_id within the config, running
kitchen create
results in a stack trace with no useful information as to what the problem is.It would be useful to have a more meaning message/pre-check to aid in debugging the issue when it arises.
Versions:
Log:
The text was updated successfully, but these errors were encountered: