1.1.20 • Published 2 months ago

@amaui/aws v1.1.20

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

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';

  // Make if you wanna a config file and
  // inside of it add all the process.env related props
  import Config from './config';

  // Make a new aws instance
  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
    }
  });

  // Add
  await amauiAws.s3.add('a', 4);

  // Get
  await amauiAws.s3.get('a');

  // 4

  // Remove
  await amauiAws.s3.remove('a');

  await amauiAws.s3.get('a');

  // undefined

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
1.1.18

2 months ago

1.1.17

2 months ago

1.1.20

2 months ago

1.1.16

2 months ago

1.1.12

9 months ago

1.1.15

7 months ago

1.1.14

7 months ago

1.1.13

8 months ago

1.1.1

12 months ago

1.1.11

12 months ago

1.1.0

12 months ago

1.0.1

2 years ago

1.0.111

2 years ago

1.0.1111

2 years ago

1.0.11

2 years ago

1.0.0

2 years ago