tfe_project_policy_set

Adds and removes policy sets from a project

Example Usage

Basic usage:

resource "tfe_organization" "test" {
  name  = "my-org-name"
  email = "admin@company.com"
}

resource "tfe_project" "test" {
  name         = "my-project-name"
  organization = tfe_organization.test.name
}

resource "tfe_policy_set" "test" {
  name          = "my-policy-set"
  description   = "Some description."
  organization  = tfe_organization.test.name
}

resource "tfe_project_policy_set" "test" {
  policy_set_id = tfe_policy_set.test.id
  project_id    = tfe_project.test.id
}

Argument Reference

The following arguments are supported:

Attributes Reference

Import

Project Policy Sets can be imported; use <ORGANIZATION>/<PROJECT ID>/<POLICY SET NAME>. For example:

terraform import tfe_project_policy_set.test 'my-org-name/project/policy-set-name'