gitlab_compliance_framework (Resource)

The gitlab_compliance_framework resource allows to manage the lifecycle of a compliance framework on top-level groups.

There can be only one default compliance framework. Of all the configured compliance frameworks marked as default, the last one applied will be the default compliance framework.

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"
}

Schema

Required

Optional

Read-Only

Import

Import is supported using the following syntax:

# Gitlab compliance frameworks can be imported with a key composed of `<namespace_path>:<framework_id>`, e.g.
terraform import gitlab_compliance_framework.sample "top-level-group:gid://gitlab/ComplianceManagement::Framework/12345"