mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
🔀 Merge branch 'RicardoE105-feature/aws-s3'
This commit is contained in:
@@ -145,17 +145,14 @@ export class AwsS3 implements INodeType {
|
||||
},
|
||||
}
|
||||
};
|
||||
|
||||
// For some reasons does AWS not allow to supply "us-east-1" if you want to
|
||||
// create it there it has to be empty?!?!
|
||||
let data = '';
|
||||
// if credentials has the S3 defaul region (us-east-1) the body (XML) does not have to be sent.
|
||||
if (credentials!.region !== 'us-east-1') {
|
||||
// @ts-ignore
|
||||
body.CreateBucketConfiguration.LocationConstraint = [credentials!.region];
|
||||
}
|
||||
|
||||
const builder = new Builder();
|
||||
const data = builder.buildObject(body);
|
||||
|
||||
data = builder.buildObject(body);
|
||||
}
|
||||
responseData = await awsApiRequestSOAP.call(this, `${name}.s3`, 'PUT', '', data, qs, headers);
|
||||
|
||||
returnData.push({ success: true });
|
||||
|
||||
Reference in New Issue
Block a user