Bad ami-id gives SignatureDoesNotMatch error
If a image-id is incorrect it is giving error message indicating problem with signature.
$ aws ec2 run-instances --image-id ami-12345678 --min-count 1 --max-count 1 --instance-type t1.micro
{
"Response": {
"Errors": {
"Error": {
"Message": "The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.",
"Code": "SignatureDoesNotMatch"
}
},
"RequestID": "b622a3ee-1f97-424e-83c8-2ebdb0cbadba"
}
}
A client error (SignatureDoesNotMatch) occurred: The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.
I'm not able to reproduce this:
(awscli)3c07545ae5b6:doc garnaat$ aws ec2 run-instances --image-id ami-12345678 --min-count 1 --max-count 1 --instance-type t1.micro
{
"Instances": [],
"Errors": [
{
"Message": "The image id '[ami-12345678]' does not exist",
"Code": "InvalidAMIID.NotFound"
}
],
"ResponseMetadata": {
"RequestId": "4c2d7a5c-cc3e-44dd-ab59-e21c49260ec2"
},
"Groups": []
}
A client error (InvalidAMIID.NotFound) occurred: The image id '[ami-12345678]' does not exist
Could you tell me what version of awscli you are using?
aws --version aws-cli/0.5.1 Python/2.7.3 Linux/3.2.0-31-virtual
Silly Q...but how do I find current version number in github ?
It's defined in __init__.py here.
The current released version is 0.11.0 so I'd try upgrading to the latest version and see if you're still having this issue.
Should I download and install manually ? easy_install tells me that 0.5.1 is latest version...what am I missing ?
sudo easy_install awscli Searching for awscli Best match: awscli 0.5.1 awscli 0.5.1 is already the active version in easy-install.pth
Try using:
$ easy_install --upgrade awscli
I'm still unable to reproduce this. I'm going to close this issue but if you are still having problems, please re-open and provide additional info as requested. Thanks.