How to suppress irrelevant warnings about AWS credentials
robvanderleek opened this issue · 3 comments
robvanderleek commented
I'm using this library via the Netlify CLI to locally run serverless Netlify functions.
In the console I'm seeing these two warning lines for every function invocation:
warning Using both auth systems: aws_access_key/id and secret_access_token !
warning Using both auth systems: aws_access_key/id and secret_access_token !
I've tracked down the origin of these warnings and my AWS credentials file indeed contains entries for AWS_ACCESS_KEY_ID
, AWS_SECRET_ACCESS_KEY
and AWS_SESSION_TOKEN
for the default profile. However, I'm using these credentials to access AWS and they are not relevant for locally running the Netlify functions.
Is there a way to suppress these warnings?
Deleted user commented
Hi, you're right: it shouldn't be on us to display those warnings. I'll drop them
Deleted user commented
Fixed in 2.0.3 !
robvanderleek commented
Wow, that's fast, nice! 😄
I'll try to open a PR in Netlify CLI to update to 2.0.3