Skip to content

How to suppress irrelevant warnings about AWS credentials #224

Closed
@robvanderleek

Description

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?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions