File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -28,14 +28,20 @@ data "tfe_organization" "organization" {
28
28
name = "my-example-org"
29
29
}
30
30
31
+ data "tfe_agent_pool" "agent-pool" {
32
+ name = "my-example-agent-pool"
33
+ organization = tfe_organization.organization.name
34
+ }
35
+
31
36
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
35
41
36
42
vcs_repo {
37
43
branch = "main"
38
- identifier = "my-github-org/stack-repo"
44
+ identifier = "my-github-org/stack-repo"
39
45
oauth_token_id = tfe_oauth_client.test.oauth_token_id
40
46
}
41
47
}
@@ -70,6 +76,7 @@ The following arguments are supported:
70
76
71
77
* ` name ` - (Required) Name of the stack.
72
78
* ` 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.
73
80
* ` vcs_repo ` - (Optional) Settings for the stack's VCS repository.
74
81
* ` description ` - (Optional) Description of the stack
75
82
<!--
You can’t perform that action at this time.
0 commit comments