-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoutputs.tf
More file actions
102 lines (86 loc) · 2.63 KB
/
outputs.tf
File metadata and controls
102 lines (86 loc) · 2.63 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
output "id" {
description = "The ID of the workspace."
value = tfe_workspace.this.id
}
output "organization" {
description = "The name of the organization."
value = tfe_workspace.this.organization
}
output "project" {
description = "The project which the workspace belongs to."
value = {
id = tfe_workspace.this.project_id
}
}
output "name" {
description = "The name of the workspace."
value = tfe_workspace.this.name
}
output "description" {
description = "The description of the workspace."
value = tfe_workspace.this.description
}
output "url" {
description = "The URL to the browsable HTML overview of the workspace."
value = tfe_workspace.this.html_url
}
output "execution_mode" {
description = "The execution mode for the workspace."
value = tfe_workspace_settings.this.execution_mode
}
output "queue_all_runs" {
description = "Whether the workspace is configured to automatically queue all runs."
value = tfe_workspace.this.queue_all_runs
}
output "global_remote_state" {
description = "Whether the workspace allows all workspaces in the organization to access its state data during runs."
value = tfe_workspace_settings.this.global_remote_state
}
output "remote_state_consumer_workspaces" {
description = "A set of workspace IDs that have read access to this workspace's remote state data."
value = tfe_workspace_settings.this.remote_state_consumer_ids
}
output "ssh_key" {
description = "The ID of the SSH key assigned to the workspace."
value = tfe_workspace.this.ssh_key_id
}
output "policy_set" {
description = "The ID of the policy set configured."
value = one(tfe_workspace_policy_set.this[*].policy_set_id)
}
output "variable_set" {
description = "The ID of the variable set configured."
value = one(tfe_workspace_variable_set.this[*].variable_set_id)
}
output "statistics" {
description = "The statistics of the workspace."
value = {
resource_count = tfe_workspace.this.resource_count
}
}
output "team_access" {
description = "The team access configurations for the workspace."
value = [
for access in tfe_team_access.this : {
team = {
id = access.team_id
name = local.team_names[access.team_id]
}
role = upper(access.access)
}
]
}
# output "debug" {
# value = {
# for k, v in tfe_workspace.this :
# k => v
# if !contains(["name", "id", "organization", "description", "resource_count", "html_url", "project_id"], k)
# }
# }
# output "debug2" {
# value = tfe_workspace_policy_set.this
# }
#
# output "debug3" {
# value = tfe_workspace_variable_set.this
# }