dbhowell / pino-cloudwatch

AWS CloudWatch Logs transport for pino
MIT License
38 stars 13 forks source link

Allow credentials to be specified #35

Open attila opened 4 years ago

attila commented 4 years ago

It would be really nice if we could configure the CloudWatchLogs instance access not only with access keys but by passing in an AWS.Credentials instance to the CloudWatchLogs constructor. We have a use case where a set of desktop applications stream logs via an assumed role. This role is used throughout the application and it's assumed via AWS.ChainableTemporaryCredentials so that the SDK can automatically refresh the session token whenever necessary.

I saw that configuration only checks for adds accessKeyId and secretAccessKey which covers the most basic use case but unfortunately it's not sufficient for more complex IAM setups