Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to suppress irrelevant warnings about AWS credentials #224

Closed
robvanderleek opened this issue Sep 11, 2022 · 3 comments
Closed

How to suppress irrelevant warnings about AWS credentials #224

robvanderleek opened this issue Sep 11, 2022 · 3 comments

Comments

@robvanderleek
Copy link

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?

@gpotter2
Copy link
Collaborator

Hi, you're right: it shouldn't be on us to display those warnings. I'll drop them

@gpotter2
Copy link
Collaborator

Fixed in 2.0.3 !

@robvanderleek
Copy link
Author

Wow, that's fast, nice! 😄

I'll try to open a PR in Netlify CLI to update to 2.0.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants