Using Google App Scripts to connect with Amazon S3

1

I have a Google Sheets add-on which let users get stock price in Google Sheets. I am trying to copy users' request in the spreadsheet to S3. I am using the same library as in this question on Stackoverflow and I encounter the exact same error:

AWS Error - SignatureDoesNotMatch: The request signature we calculated does not match the signature you provided. Check your key and signing method

Just wondering whether anyone has experience with this? The solution in that question does not work for me

asked 2 years ago1548 views
1 Answer
0

Hey,

When you use AWS services such as S3, your request is authenticated using an algorithm called SigV4. This should be done automatically by the library you're using (in your case S3-for-Google-Apps-Script) but this error message suggests that this process has been done incorrectly.

This is most likely an issue with the library you are using and so you'll probably have the most luck if you reach out to the authors e.g. by creating an issue on their GitHub page.

However, I've had a quick look through their code and it looks like their SigV4 code is hard-coded to use the AWS us-east-1 region Therefore, you may find it works if you try using an S3 bucket located in us-east-1 (N. Virginia)

Thanks,

Marrick.

Marrick
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions