File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -203,7 +203,12 @@ resource "tfe_policy_set" "foobar" {
203
203
organization = local.organization_name
204
204
policy_ids = [tfe_sentinel_policy.foo.id]
205
205
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
207
212
}
208
213
209
214
data "tfe_policy_set" "bar" {
@@ -235,7 +240,11 @@ resource "tfe_policy_set" "foobar" {
235
240
kind = "opa"
236
241
overridable = true
237
242
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
239
248
}
240
249
241
250
data "tfe_policy_set" "bar" {
You can’t perform that action at this time.
0 commit comments