项目作者: TimDurward

项目描述 :
Terraform Slack Provider
高级语言: Go
项目地址: git://github.com/TimDurward/terraform-provider-slack.git
创建时间: 2017-12-20T07:55:40Z
项目社区:https://github.com/TimDurward/terraform-provider-slack

开源协议:MIT License

下载


Terraform Provider for Slack CircleCI

This is a Slack provider for Terraform

The provider allows for creation & destruction of public Slack channels

Installation

Requirements

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

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 the latest release for your OS.

Linux

  1. > wget https://github.com/TimDurward/terraform-provider-slack/releases/download/v0.2.0/terraform-provider-slack_linux_amd64
  2. # Now copy the binary to the Terraform's plugins folder.
  3. mkdir -p ~/.terraform.d/plugins/
  4. mv terraform-provider-slack_linux_amd64 ~/.terraform.d/plugins/

Mac

  1. > wget https://github.com/TimDurward/terraform-provider-slack/releases/download/v0.2.0/terraform-provider-slack_darwin_amd64
  2. # Now copy the binary to the Terraform's plugins folder.
  3. mkdir -p ~/.terraform.d/plugins/
  4. mv terraform-provider-slack_darwin_amd64 ~/.terraform.d/plugins/

Compiling from source

Compile from source easily using Makefile.

*This is only necessary if your target OS/Architecture isn’t listed in releases

  1. make build
  2. # Target is compiled at '$GOBIN/terraform-provider-slack'
  3. mv $GOBIN/terraform-provider-slack ~/.terraform.d/plugins/

Example

  1. provider "slack" {
  2. api_token = "SLACK_API_TOKEN"
  3. }
  4. resource "slack_channel" "jenkins_ci" {
  5. channel_name = "jenkins"
  6. channel_topic = "Jenkins Integration for production deploys"
  7. }