Skip to content

Commit a4a2287

Browse files
authored
Merge pull request #37 from ouranos/feature/aws-s3v4
[MARLIN-882] Enable S3 Signature Version 4 for aws
2 parents eb66276 + b90839b commit a4a2287

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

shared/docker-entrypoint.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ elif [ -n "$S3_URI" ]; then
3030
if [ -z "$S3_SECRET_ACCESS_KEY" ]; then
3131
opts="--no-sign-request"
3232
fi
33+
# Setting Signature Version 4 for S3 Request Authentication
34+
aws configure set s3.signature_version s3v4
3335
AWS_ACCESS_KEY_ID=$S3_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY=$S3_SECRET_ACCESS_KEY AWS_DEFAULT_REGION=$S3_REGION aws s3 cp $opts $S3_URI ./
3436
archive_file=${S3_URI##*/}
3537
echo "Unzipping $archive_file"

0 commit comments

Comments
 (0)