gitlab_topic (Resource)

The gitlab_topic resource allows to manage the lifecycle of topics that are then assignable to projects.

Upstream API: GitLab REST API docs for topics

Example Usage

resource "gitlab_topic" "functional_programming" {
  name        = "functional-programming"
  title       = "Functional Programming"
  description = "In computer science, functional programming is a programming paradigm where programs are constructed by applying and composing functions."
  avatar      = "${path.module}/avatar.png"
  avatar_hash = filesha256("${path.module}/avatar.png")
}

Schema

Required

Optional

Read-Only

Import

Import is supported using the following syntax:

# You can import a topic to terraform state using `terraform import <resource> <id>`.
# The `id` must be an integer for the id of the topic you want to import,
# for example:
terraform import gitlab_topic.functional_programming 1