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
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"
}
color
(String) New color representation of the compliance framework in hex format. e.g. #FCA121.description
(String) Description for the compliance framework.name
(String) Name for the compliance framework.namespace_path
(String) Full path of the namespace to add the compliance framework to.default
(Boolean) Set this compliance framework as the default framework for the group. Default: false
pipeline_configuration_full_path
(String) Full path of the compliance pipeline configuration stored in a project repository, such as .gitlab/.compliance-gitlab-ci.yml@compliance/hipaa
. Required format: path/file.y[a]ml@group-name/project-name
Note: Ultimate license required.framework_id
(String) Globally unique ID of the compliance framework.id
(String) The ID of this Terraform resource. In the format of <namespace_path>:<framework_id>
.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"