Skip to content

Conversation

@Shillaker
Copy link
Contributor

@Shillaker Shillaker commented Jun 21, 2022

This lets us read credentials from the Scaleway CLI configuration file (found at ~/.config/scw/config.yml) if it exists.

This makes it easier to configure functions if you've already got the CLI set up, as you no longer need to set environment variables, or copy-paste tokens into your serverless.yml. This also simplifies the "quick start" for the project.

The scw config file takes lowest precedence, therefore if someone has specified environment variables, options, or added config in their serverless.yml file, it will use that instead.

I've also added a test for reading the credentials with the correct precedence.

@Shillaker Shillaker mentioned this pull request Jun 21, 2022
@Shillaker Shillaker marked this pull request as ready for review June 29, 2022 08:42
@Shillaker Shillaker requested review from RamyChaabane and thomas-tacquet and removed request for RamyChaabane June 29, 2022 08:42
@thomas-tacquet thomas-tacquet merged commit 5fb1a0f into scaleway:master Jul 1, 2022
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

Successfully merging this pull request may close these issues.

2 participants