-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
31 lines (29 loc) · 1.26 KB
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
resource "tfe_workspace" "default" {
name = var.name
organization = var.organization
description = var.description
agent_pool_id = var.agent_pool_id
allow_destroy_plan = var.allow_destroy_plan
auto_apply = var.auto_apply
execution_mode = var.execution_mode
file_triggers_enabled = var.file_triggers_enabled
global_remote_state = var.global_remote_state
remote_state_consumer_ids = var.remote_state_consumer_ids
queue_all_runs = var.queue_all_runs
speculative_enabled = var.speculative_enabled
structured_run_output_enabled = var.structured_run_output_enabled
ssh_key_id = var.ssh_key_id
terraform_version = var.terraform_version
trigger_prefixes = var.trigger_prefixes
tag_names = var.tag_names
working_directory = var.working_directory
dynamic "vcs_repo" {
for_each = var.identifier != null ? [1] : []
content {
identifier = var.identifier
branch = var.branch
ingress_submodules = var.ingress_submodules
oauth_token_id = var.oauth_token_id
}
}
}