aws-cli icon indicating copy to clipboard operation
aws-cli copied to clipboard

Bad ami-id gives SignatureDoesNotMatch error

Open aquanyc opened this issue 13 years ago • 6 comments

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.

aquanyc avatar May 31 '13 02:05 aquanyc

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?

garnaat avatar May 31 '13 03:05 garnaat

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 ?

aquanyc avatar May 31 '13 03:05 aquanyc

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.

jamesls avatar May 31 '13 04:05 jamesls

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

aquanyc avatar May 31 '13 17:05 aquanyc

Try using:

$ easy_install --upgrade awscli

garnaat avatar May 31 '13 17:05 garnaat

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.

garnaat avatar Jul 18 '13 13:07 garnaat