gitlab_integration_slack (Resource)

The gitlab_integration_slack resource allows to manage the lifecycle of a project integration with Slack.

Upstream API: GitLab REST API docs

Example Usage

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

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

Schema

Required

Optional

Read-Only

Import

Import is supported using the following syntax:

# You can import a gitlab_integration_slack.slack state using the project ID, e.g.
terraform import gitlab_integration_slack.slack 1