samples
turbot/flowpipe-samples/throw-error-example-using-slack
Pipelines
0
Triggers
0
Variables
GitHub

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/tap
brew install flowpipe

Clone:

git clone https://github.com/turbot/flowpipe-samples.git
cd messaging/throw_error_example_using_slack

Install mod dependencies:

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