1.1.0 • Published 4 years ago

@highly-attractive-people/conman-s3-source v1.1.0

Weekly downloads
21
License
ISC
Repository
-
Last release
4 years ago

s3 source for conman

Read the configuration from remote files store in s3.

Options

namedescriptiontypemandatory
accessKeyIdAWS keyyes
secretAccessKeyAWS secretyes
regionAWS regionno
sessionTokenAWS session tokenyes
BucketS3 Bucketyes
KeyFile namenox
namename of the source to be used instead of the typestringno
keykey where the source data will be included inside the configstring, if no key is provided data is at the root of the configno

If the Key is missing it will grab and combine all the files from the Bucket.

Use example:

const conman = require('@highly-attractive-people/conman');
const s3 = s3Source(
  { name: 's3Source', key: 's3' },
  {
    Bucket: 'dcg-video-live-encoder-service-dev',
    accessKeyId: process.env.AWS_ACCESS_KEY_ID,
    secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY,
    region: process.env.AWS_DEFAULT_REGION,
    sessionToken: process.env.AWS_SESSION_TOKEN
  }
);

conman()
  .addSource(s3)
  .build();