Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

@atlas.js/aws

2.1.0 • Public • Published

@atlas.js/aws

AWS SDK service for @atlas.js.

Installation

npm i @atlas.js/aws

Usage

import * as aws from '@atlas.js/aws'
import { Atlas } from '@atlas.js/atlas'
 
const atlas = new Atlas({
  config: {
    services: {
      myaws: {
        // These options are applied to all services which will be initialised.
        // You can put stuff like `accessKeyId` and `secretAccessKey` or
        // `region` in here.
         globals: {
           accessKeyId: 'my-aws-id',
           secretAccessKey: 'such-secret'
         },
 
         // For all the keys in this object, the AWS service of that name will
        //  be initialised.
        // The config for each service is passed directly to that service's constructor, so consult the AWS SDK documentation to see what you can use here.
         services: {
           // ie. this will go to `new AWS.S3(/* here */)`
           s3: {
             Bucket: 'so-bucket',
           },
           // These services will be initialised simply because they have a configuration
           // object defined here
           cloudwatch: {},
           lambda: {},
         }
      }
    }
  }
})
 
atlas.service('myaws', aws.Service)
await atlas.start()
// myaws has all the configured services
atlas.services.myaws.s3
atlas.services.myaws.cloudwatch
atlas.services.myaws.lambda

License

See the LICENSE file for information.

Keywords

none

install

npm i @atlas.js/aws

Downloadsweekly downloads

71

version

2.1.0

license

BSD-3-Clause

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability