Gravitywell AWS
Library of commonly used AWS wrapper functions to communicate with the AWS SDK
Installation
In conjunction with this package, you will need to install the aws-sdk
library.
yarn add @gravitywelluk/aws aws-sdk
Usage
import { LIB_NAME_HERE } from "@gravitywelluk/aws"
try {
const s3Object = await getObjectFromS3(false, {
bucket: "example-bucket",
path: "path/to/file.jpg"
});
} catch(error) {
throw error;
}