pkallos / winston-firehose

NodeJS module, winston logging transport which writes to AWS Firehose.
MIT License
13 stars 9 forks source link

How to add credentials #12

Closed Spandana-Gajangi closed 6 years ago

Spandana-Gajangi commented 6 years ago

I get error like Error: CredentialsError: Missing credentials in config

pkallos commented 6 years ago

Hi! The README.md links to Amazon documentation https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/Firehose.html#constructor-property Which you can pass into firehoseOptions:

new WFirehose({
        'streamName': 'firehose_stream_name',
        'firehoseOptions': {
          'region': 'us-east-1',
          'credentials': <>
        }
      })

The documentation also provides a few other options: