amaui AWS
AWS
MIT license
Production ready
100% test cov
Nodejs
Very simple code
Modern code
Junior friendly
Typescript
Made with :yellow_heart:
Getting started
Add
yarn add @amaui/aws
Add @aws-sdk/client-s3
peer dependency.
yarn add @aws-sdk/client-s3
Use
import AmauiAws from '@amaui/aws';
import Config from './config';
const amauiAws = new AmauiAws({
s3: {
bucketName: Config.aws.s3.bucketName,
credentials: {
accessKeyId: Config.aws.s3.accessKeyId,
secretAccessKey: Config.aws.s3.secretAccessKey
},
endpoint: Config.aws.s3.endpoint,
region: Config.aws.s3.region
}
});
await amauiAws.s3.add('a', 4);
await amauiAws.s3.get('a');
await amauiAws.s3.remove('a');
await amauiAws.s3.get('a');
Dev
Install
yarn
Test
yarn test
One time local setup
Install docker and docker-compose
Install aws
Make docker containers
yarn docker
Prod
Build
yarn build