I’m generating a CSV file and sending it to S3.
Due to compliancy my credentials only allow me to PUT an object and this can be done successfully using the aws-cli in the command line. My credentials doesnt allow me to GET object or bucket.
Note that the region is informed in the node configuration - and doing it like it is being done brings me some points:
cant the region inputed in the node configuration be used here?
in order to PUT an object I need extra permissions that in some cases (like mine) isn’t possible due to compliance reasons to have;
Any thoughts about this?
UPDATE 1:
I had to add the permission “s3:GetBucketLocation” to the credentials in order to use the node. I believe this permission should not be required if the location used was from the node configuration.
That is an interesting problem, I am not sure why we make that call as it just seems to get the bucket location which looks to be the same as the region.
I am not sure if you can have an S3 account in one region and buckets in another region, As a temporary solution using the get bucket location permission should work and should hold up for most compliance frameworks.
How do you have n8n installed / running? If you are running from source in theory changing it to use the credential option to test would be fairly quick.
I think that this should be an option on the S3 action to either use credentials region, action-specified region, or maybe look it up. I’m using Cloudflare R2, and the region lookup causes permissions errors when I don’t have bucket-admin permissions enabled on the credentials.
The AWS/S3 nodes are specifically for AWS and it is just version 1 and the overhaul in version 2. The S3 node is meant to be an S3 compatible node that will work with most services that provide an S3 API
Using n8n w/AWS S3 node version 2 (Latest) and the requirement for this permission still exists which is a pain since we are converting a workflow from another system where upload only needs PutObject - organizationally changing the permissions for these accounts is sufficiently time consuming that I can take time to post things here without delaying anything… but overall, how can we request that the region be exposed as an input and only do a lookup if it is not provided, similar to the filename for upload? Is this the forum for that or should I be opening a support case?