aws / opsworks-cookbooks

Chef Cookbooks for the AWS OpsWorks Service
Other
1.05k stars 1.23k forks source link

Application deployment from S3 archive does not work from eu-central-1 #325

Open jdahlke opened 9 years ago

jdahlke commented 9 years ago

I tried to deploy an application from an S3 bucket, which is located in eu-central-1. It seems the deployment cookbooks cannot work with the newest AWS signature method (V4). The complete error message is:

---- Begin output of /opt/aws/opsworks/current/bin/extract /tmp/opsworks20150803-27795-166r8k7/archive ----
STDOUT: The download from S3 failed. See below for S3 error:
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>InvalidRequest</Code><Message>The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256.</Message><RequestId>4F4B7680E5068B5E</RequestId><HostId>Q2Pt3zmdwh7rFtT1VS5XHPXNu4JY5rZBQ0vw46Z7MI3HGB0EQHmPS/0BHjDBQE0qY9bnemvNE48=</HostId></Error>
STDERR: 
---- End output of /opt/aws/opsworks/current/bin/extract /tmp/opsworks20150803-27795-166r8k7/archive ----

After some digging through the sources, I think the perl wrapper around curl (s3curl.pl) cannot handle the new V4 authentication mechanism. Are there any plans to fix this? Otherwise, in my opinion, the opsworks documentation should mention, that deployment from S3 does not work for eu-central-1.

Arau commented 9 years ago

Same issue here. Any prevision to solve it?