Narcoleptic Pasta Manufacturer

    @atlas.js/aws

    2.1.2 • 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

    1

    Version

    2.1.2

    License

    BSD-3-Clause

    Unpacked Size

    28.3 kB

    Total Files

    15

    Last publish

    Collaborators

    • robertrossmann
    • strvuser