gitlab_project_compliance_framework (Resource)

The gitlab_project_compliance_framework resource allows to manage the lifecycle of a compliance framework on a project.

Upstream API: GitLab GraphQL API docs

Example Usage

resource "gitlab_compliance_framework" "sample" {
  namespace_path                   = "top-level-group"
  name                             = "HIPAA"
  description                      = "A HIPAA Compliance Framework"
  color                            = "#87BEEF"
  default                          = false
  pipeline_configuration_full_path = ".hipaa.yml@top-level-group/compliance-frameworks"
}

resource "gitlab_project_compliance_framework" "sample" {
  compliance_framework_id = gitlab_compliance_framework.sample.framework_id
  project                 = "12345678"
}

Schema

Required

Read-Only

Import

Import is supported using the following syntax:

# Gitlab project compliance frameworks can be imported with a key composed of `<project_id>`, e.g.
terraform import gitlab_project_compliance_framework.sample "42"