Skip to content

richardj-bsquare/terraform-provider-slack

 
 

Repository files navigation

Terraform Provider for Slack CircleCI

This is a Slack provider for Terraform

The provider allows for creation & desruction of public Slack channels

Installation

Requirements

terraform-provider-slack is based on Terraform, this means that you need

Installation from binaries (recommended)

The recommended way to install terraform-provider-slack is use the binary distributions from the Releases page. The packages are available for Linux and macOS.

Download and uncompress the latest release for your OS. This example uses the linux binary.

> wget https://github.com/TimDurward/terraform-provider-slack/releases/download/v0.1.0/terraform-provider-slack_v0.1.0_darwin_amd64.tar.gz
> tar -xvf terraform-provider-slack*.tar.gz

Now copy the binary to the Terraform's plugins folder, if is your first plugin maybe isn't present.

> mkdir -p ~/.terraform.d/plugins/
> mv terraform-provider-slack*/terraform-provider-slack ~/.terraform.d/plugins/

*You can always install from source with Makefile

Example

provider "slack" {
  api_token = "SLACK_API_TOKEN"
}

resource "slack_channel" "jenkins_ci" {
  channel_name = "jenkins"
  channel_topic = "Jenkins Integration for production deploys"
}

About

Terraform Slack Provider

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 59.3%
  • Makefile 19.3%
  • Shell 18.6%
  • HCL 2.8%