Skip to content

Commit b526a7d

Browse files
committed
Update stack resource doc
1 parent 2c47da6 commit b526a7d

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

website/docs/r/stack.html.markdown

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,20 @@ data "tfe_organization" "organization" {
2828
name = "my-example-org"
2929
}
3030
31+
data "tfe_agent_pool" "agent-pool" {
32+
name = "my-example-agent-pool"
33+
organization = tfe_organization.organization.name
34+
}
35+
3136
resource "tfe_stack" "test-stack" {
32-
name = "my-stack"
33-
description = "A Terraform Stack using two components with two environments"
34-
project_id = data.tfe_organization.organization.default_project_id
37+
name = "my-stack"
38+
description = "A Terraform Stack using two components with two environments"
39+
project_id = data.tfe_organization.organization.default_project_id
40+
agent_pool_id = data.tfe_agent_pool.agent-pool.id
3541
3642
vcs_repo {
3743
branch = "main"
38-
identifier = "my-github-org/stack-repo"
44+
identifier = "my-github-org/stack-repo"
3945
oauth_token_id = tfe_oauth_client.test.oauth_token_id
4046
}
4147
}
@@ -70,6 +76,7 @@ The following arguments are supported:
7076

7177
* `name` - (Required) Name of the stack.
7278
* `project_id` - (Required) ID of the project where the stack should be created.
79+
* `agent_pool_id` - (Optional) The ID of an agent pool to assign to the stack.
7380
* `vcs_repo` - (Optional) Settings for the stack's VCS repository.
7481
* `description` - (Optional) Description of the stack
7582
<!--

0 commit comments

Comments
 (0)