-
Notifications
You must be signed in to change notification settings - Fork 8
/
outputs.tf
54 lines (43 loc) · 1.54 KB
/
outputs.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
output "additional_tfe_workspaces" {
value = { for name, workspace in var.additional_tfe_workspaces : name => module.additional_tfe_workspaces[name].workspace_id }
description = "Map of any additional Terraform Cloud workspace names and IDs"
}
output "environment" {
value = var.account.environment
description = "The environment name"
}
output "id" {
value = module.account.id
description = "The AWS account ID"
}
output "name" {
value = module.account.name
description = "The AWS account name"
}
output "repository_identifier" {
value = var.tfe_workspace.repository_identifier
description = "The repository identifier if one is specified"
}
output "tfe_workspace_id" {
value = try(module.tfe_workspace[0].workspace_id, "")
description = "Workspace ID of default workspace ID when `create_default_workspace` is true"
}
output "tfe_workspaces" {
value = concat(
try([module.tfe_workspace[0]], []),
try(values(module.additional_tfe_workspaces), []),
)
description = "List of Terraform Cloud workspaces"
}
output "account_variable_set_id" {
value = tfe_variable_set.account.id
description = "The ID of the account variable set"
}
output "workload_permissions_boundary_arn" {
value = try(aws_iam_policy.workload_boundary[0].arn, "")
description = "The ARN of the workload permissions boundary"
}
output "workspace_permissions_boundary_arn" {
value = try(aws_iam_policy.workspace_boundary[0].arn, "")
description = "The ARN of the workspace permissions boundary"
}