Skip to content

Commit 41f9a39

Browse files
committed
add the new resource
1 parent 8eb838d commit 41f9a39

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

tfe/data_source_policy_set_test.go

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,12 @@ resource "tfe_policy_set" "foobar" {
203203
organization = local.organization_name
204204
policy_ids = [tfe_sentinel_policy.foo.id]
205205
workspace_ids = [tfe_workspace.foobar.id]
206-
project_ids = [tfe_project.foobar.id]
206+
207+
}
208+
209+
resource "tfe_project_policy_set" "foobar" {
210+
policy_set_id = tfe_policy_set.foobar.id
211+
project_id = tfe_project.foobar.id
207212
}
208213
209214
data "tfe_policy_set" "bar" {
@@ -235,7 +240,11 @@ resource "tfe_policy_set" "foobar" {
235240
kind = "opa"
236241
overridable = true
237242
workspace_ids = [tfe_workspace.foobar.id]
238-
project_ids = [tfe_project.foobar.id]
243+
}
244+
245+
resource "tfe_project_policy_set" "foobar" {
246+
policy_set_id = tfe_policy_set.foobar.id
247+
project_id = tfe_project.foobar.id
239248
}
240249
241250
data "tfe_policy_set" "bar" {

0 commit comments

Comments
 (0)