[chef] Errors running knife ec2: SignatureDoesNotMatch


Chronological Thread 
  • From: Ran Tavory < >
  • To:
  • Subject: [chef] Errors running knife ec2: SignatureDoesNotMatch
  • Date: Thu, 13 Sep 2012 11:15:07 +0300

I'm having trouble running knife ec2, I hope this is the right place for this question...

I get the following error:

ERROR: Fog::Compute::AWS::Error: SignatureDoesNotMatch => 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.

This happens no matter what I try...

I followed the guide at http://www.agileweboperations.com/amazon-ec2-instances-with-opscode-chef-using-knife

I get this error for all knife ec2 sub commands (server create, server list etc)
But when using the same key ID and secret access key with the EC2 command line tools provided by amazon, all is well! So I’m confused…
I tried two different amz accounts and the same problem.
I tried using -A and -K explicitly, didn’t work. I tried putting them in ~/.chef/knife.rb and still no dice.

The error clearly states that this is a key error, or a signature method, but I checked and verified that the keys are OK, used two different accounts for that and the same exact keys do actually work when using amazon's ec2 command line tools.

I haven’t found anyone else with the same error on google. Any idea how to proceed?

$ knife -v
Chef: 10.14.2

It's the first time I use chef, knife etc, so maybe it's something really basic...

thank you!



  • [chef] Errors running knife ec2: SignatureDoesNotMatch, Ran Tavory, 09/13/2012

Archive powered by MHonArc 2.6.16.

§