» gitlab_service_slack

This resource allows you to manage Slack notifications integration.

» Example Usage

resource "gitlab_project" "awesome_project" {
  name = "awesome_project"
  description = "My awesome project."
  visibility_level = "public"
}

resource "gitlab_service_slack" "slack" {
  project                    = "${gitlab_project.awesome_project.id}"
  webhook                    = "https://webhook.com"
  username                   = "myuser"
  push_events                = true
  push_channel               = "push_chan"
}

» Argument Reference

The following arguments are supported:

» Importing Slack service

You can import a service_slack state using terraform import <resource> <project_id>:

$ terraform import gitlab_service_slack.slack 1