The gitlab_project_custom_attribute
resource allows to manage custom attributes for a project.
Upstream API: GitLab REST API docs
resource "gitlab_project_custom_attribute" "attr" {
project = "42"
key = "location"
value = "Greenland"
}
key
(String) Key for the Custom Attribute.project
(Number) The id of the project.value
(String) Value for the Custom Attribute.id
(String) The ID of this resource.Import is supported using the following syntax:
# You can import a project custom attribute using an id made up of `{project-id}:{key}`, e.g.
terraform import gitlab_project_custom_attribute.attr 42:location