in the .config file for slack, how to set the toke...
# community-support
m
in the .config file for slack, how to set the token as an environmental variable? Just don't want to hard code the token value. 🙂
✅ 1
d
hey @Mattias Thing, try set -
EDR_MONITOR_SLACK_TOKEN
m
Hi, Like this?
token: "{{ env_var('EDR_MONITOR_SLACK_TOKEN') }}"
d
Oh, you want to tell the config file to take from environment var ?
👍 1
If you set the environment variable, it doesn't have to be defined in the config file.
m
So in the .config I just set the slack channel name and leave the token blank?
d
yes
m
elementary.exceptions.exceptions.InvalidArgumentsError: You must provide a platform to upload the report to (Slack token / S3 / GCS)
d
What command are you trying to run ?
m
edr send-report -c .edr/
d
so set
EDR_SEND_REPORT_SLACK_TOKEN
m
You are the man! 💯
🙌 1