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

已提問 2 年前檢視次數 1576 次
1 個回答
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
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南