npm install typescript-aws-s3-helper@latest
const logger = new Logger(LogLevel.Trace);
const helper = new S3Helper(logger);
const response = await helper.CreateBucketAsync('name');
import * as S3 from '@aws-sdk/client-s3';
const logger = new Logger(LogLevel.Trace);
const options: S3.S3ClientConfig = {
accessKeyId: '{access_key}',
secretAccessKey: '{secret_key}',
region: 'us-east-1',
};
const repository = new S3.S3(options);
const helper = new S3Helper(logger, repository);
const response = await helper.CreateBucketAsync('name');
If no options are supplied, will default to us-east-1
as the region
Clone the latest and run
npm run prep
to install packages and prep the git hooks