Downloading a file from Amazon S3 Bucket

I am trying to download a file from an Amazon S3 bucket. 

I have created an Amazon S3 connector in iPaaS and configured AWS Signature credentials.  When I use the connector and credentials in a flow I can do some actions.  Get Bucket Region works, List Objects works, List Objects V2 works.  But if I try to do a Get Object I get the following error:

Re-authorization: Cannot re-authorize credentials. Unknown: . Initial response: {"?xml":{"@version":"1.0","@encoding":"UTF-8"},"Error":{"Code":"SignatureDoesNotMatch","Message":"The request signature we calculated does not match the signature you provided. Check your key and signing method.

How do I download a file from an S3 bucket?

Tags AmazonS3
Asked by Cory Morgan-Berg on Wed 11/29/23 12:15 PM Last edited Wed 11/29/23 12:16 PM
Sign In to leave feedback or contribute an answer

Answers (2)

This answer has been marked as the accepted answer
Mark Medaugh Mon 12/4/23 9:28 PM

Hi Cory,

This particular error message can have a number of causes - but the first thing I would suggest is to ensure that the user related to the access key/secret key pair in your credential has "s3:GetObjectAcl" or "READ_ACP" permissions. If you've confirmed the user in question has appropriate permissions, let me know and I'll get a ticket opened and we can dig more deeply into it

Best,
Mark Medaugh
Sr. Technical Consultant

0 of 1 users found this helpful.
The permissions the user I am using has are:
• GetBucketLocation
• GetObject
• DeleteObject
• PutObject
• ListBucket
I am told it is not possible to have the permissions changed for this user
- Cory Morgan-Berg Thu 12/14/23 3:27 PM
Mark,
Do you have any suggestions on how I could download files from an S3 bucket?
- Cory Morgan-Berg Tue 1/2/24 2:40 PM

Brevan Jorgenson Thu 7/25/24 9:22 PM

Hello Cory,

It is nice to meet you. I am one of the new iPaaS consultants at TDX. I was working with one of your colleagues on this and wanted to post the update here in case others stumble upon it. We believe this issue should now be resolved. There was a problem with our standard Get Object was encoding the / character in path names. 

I hope this helps. Please let me know if you have any additional questions we can assist with. 

Best, 

-Brevan Jorgenson

No feedback
Is there something I need to do to refresh the connector or something?

When I try the Get Object action I am still getting the error message:

Re-authorization: Cannot re-authorize credentials.
- Cory Morgan-Berg Fri 7/26/24 5:18 PM
Hello Cory,

No, there is nothing you need to do to get this new version of the connector; however, upon your report of it not functioning, I was able to identify a bug related to the spacing of characters in the name of your object. I am working with our engineers to resolve that. I will keep you updated as I hear more from them.

Please let me know if there are any other questions I can assist with.

Best,

-Brevan Jorgenson
- Brevan Jorgenson Sat 8/3/24 2:58 PM