sample
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
Connections
By default, the following environment variables will be used for authentication:
SLACK_TOKEN
You can also create connection
resources in configuration files:
vi ~/.flowpipe/config/slack.fpc
connection "slack" "default" { token = "xoxp-12345-..."}
For more information on connections in Flowpipe, please see Managing Connections.
Usage
Run the pipeline and specify the channel
pipeline arguments:
flowpipe pipeline run throw_error_example_using_slack --arg 'channel=channel-name'