Skip to content

Commit

Permalink
Merge pull request #1092 from hashicorp/jbonhag/agent-pool-allowed-wo…
Browse files Browse the repository at this point in the history
…rkspaces-organization-scoped-false

docs: organization_scoped should be set to false when using tfe_agent_pool_allowed_workspaces
  • Loading branch information
brandonc authored Oct 19, 2023
2 parents 140cf08 + 25ff70a commit 34d9585
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion website/docs/r/agent_pool.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ The following arguments are supported:

* `name` - (Required) Name of the agent pool.
* `organization` - (Optional) Name of the organization. If omitted, organization must be defined in the provider config.
* `organization_scoped` - (Optional) Whether or not the agent pool is scoped to all workspaces in the organization. Defaults to `true`.
* `organization_scoped` - (Optional) Whether or not the agent pool is scoped to all workspaces in the organization. Defaults to `true`. Should be `false` when limiting workspaces that can use the agent pool with the [tfe_agent_pool_allowed_workspaces](agent_pool_allowed_workspaces.html) resource.

## Attributes Reference

Expand Down
16 changes: 8 additions & 8 deletions website/docs/r/agent_pool_allowed_workspaces.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,20 @@ resource "tfe_organization" "test-organization" {
email = "admin@company.com"
}
resource "tfe_workspace" "test" {
resource "tfe_workspace" "test-workspace" {
name = "my-workspace-name"
organization = tfe_organization.test.name
organization = tfe_organization.test-organization.name
}
resource "tfe_agent_pool" "test-agent-pool" {
name = "my-agent-pool-name"
organization = tfe_organization.test-organization.name
organization_scoped = true
name = "my-agent-pool-name"
organization = tfe_organization.test-organization.name
organization_scoped = false
}
resource "tfe_agent_pool_allowed_workspaces" "foobar" {
agent_pool_id = tfe_agent_pool.foobar.id
allowed_workspace_ids = [tfe_workspace.test.id]
resource "tfe_agent_pool_allowed_workspaces" "test-allowed-workspaces" {
agent_pool_id = tfe_agent_pool.test-agent-pool.id
allowed_workspace_ids = [tfe_workspace.test-workspace.id]
}
```

Expand Down

0 comments on commit 34d9585

Please sign in to comment.