The gitlab_project_compliance_framework
resource allows to manage the lifecycle of a compliance framework on a project.
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"
}
resource "gitlab_project_compliance_framework" "sample" {
compliance_framework_id = gitlab_compliance_framework.sample.framework_id
project = "12345678"
}
compliance_framework_id
(String) Globally unique ID of the compliance framework to assign to the project.project
(String) The ID or full path of the project to change the compliance framework of.id
(String) The ID of this Terraform resource.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"