AWS

libs.aws.get().getService('SERVICE_NAME')

Requires the AWS integration to be set up
Returns an instance of aws-sdk service instance.
S3 as an example
1
// get AWS service client (s3 as an example)
2
const s3 = await libs.aws.get().getService('S3');
3
​
4
// get file content
5
const params = {
6
Key: `path/to/file`,
7
Bucket: 'BUCKET',
8
};
9
const { Body } = await s3.getObject(params).promise();
Copied!
​
​
Last modified 9mo ago
Copy link