https://prefect.io logo
Title
a

Amit

08/06/2020, 1:19 PM
Hi Team, I was looking at slack integration for notifications. The docs: https://docs.prefect.io/core/advanced_tutorials/slack-notifications.html#using-your-url-to-get-notifications says to save the slack url in the
~/.prefect/config.toml
file, is there any other way like environment variable or something?
l

Lukas

08/06/2020, 1:20 PM
Hi Amit, you should be able to use this env variable to pass the webhook URL
PREFECT__CONTEXT__SECRETS__SLACK_WEBHOOK_URL
a

Amit

08/06/2020, 1:56 PM
Awesome, thanks!
Also, is there a documentation page regarding all the environment variables?
l

Lukas

08/06/2020, 1:58 PM
Not sure, but whatever you can use in the
config.toml
you can also use as env variable with that underscore notation. You can read more here: https://docs.prefect.io/core/concepts/configuration.html#environment-variables
🚀 2
:upvote: 3
a

Amit

08/06/2020, 2:01 PM
Oh I see, thanks! 👍