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

// get AWS service client (s3 as an example)
const s3 = await libs.aws.get().getService('S3');

// get file content
const params = {
  Key: `path/to/file`,
  Bucket: 'BUCKET',
};
const { Body } = await s3.getObject(params).promise();

Last updated