samples
turbot/flowpipe-samples/throw-error-example-using-slack
Get Involved
Version
License
Throw Error Example Using Slack
Throw an error if the requested Slack channel is unavailable.
Installation
Download and install Flowpipe (https://flowpipe.io/downloads). Or use Brew:
brew tap turbot/tapbrew install flowpipe
Clone:
git clone https://github.com/turbot/flowpipe-samples.gitcd messaging/throw_error_example_using_slack
flowpipe mod install
Credentials
By default, the following environment variables will be used for authentication:
SLACK_TOKEN
You can also create credential
resources in configuration files:
vi ~/.flowpipe/config/slack.fpc
credential "slack" "default" { token = "xoxp-12345-..."}
For more information on credentials in Flowpipe, please see Managing Credentials.
Usage
Run the pipeline and specify the channel
pipeline arguments:
flowpipe pipeline run throw_error_example_using_slack --arg channel=C01AABBCCDD