sample
turbot/flowpipe-samples/send-slack-message
Get Involved
Version
License
Send Slack Message
Send a message to a Slack channel.
Requirements
Docker daemon must be installed and running. Please see Install Docker Engine for more information.
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/send_slack_message
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
and text
pipeline arguments:
flowpipe pipeline run send_slack_message --arg 'channel=channel-name' --arg 'text=Hello world'