mllrsohn / grunt-invalidate-cloudfront

Sends a invalidation request to amazon cloudfront
MIT License
26 stars 13 forks source link

Invalid request signature from CI servers #7

Closed hijonathan closed 10 years ago

hijonathan commented 10 years ago

I'm getting the following error when deploying from Wercker:

Fatal error: 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.

The Canonical String for this request should have been
'GET
/2013-11-11/distribution/%7BDistributionId%7D/invalidation

...

Works fine running it locally. I'm going to dig into it more but just curious if you've seen this before.

steffenmllr commented 10 years ago

Hmm not really, could be related https://sellercentral.amazon.com/forums/message.jspa?messageID=2527329

hijonathan commented 10 years ago

Yup. My key had a slash in it and wasn't being properly encoded. :baby: noob mistake.