forked from cloudposse/terraform-aws-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
116 lines (94 loc) · 3.5 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
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
output "account_arns" {
value = local.all_account_arns
description = "List of account ARNs (excluding root account)"
}
output "account_ids" {
value = local.all_account_ids
description = "List of account IDs (excluding root account)"
}
output "organizational_unit_arns" {
value = local.organizational_unit_arns
description = "List of Organizational Unit ARNs"
}
output "organizational_unit_ids" {
value = local.organizational_unit_ids
description = "List of Organizational Unit IDs"
}
output "account_info_map" {
value = local.account_info_map
description = <<-EOT
Map of account names to
eks: boolean, account hosts at least one EKS cluster
id: account id (number)
stage: (optional) the account "stage"
tenant: (optional) the account "tenant"
EOT
}
output "account_names_account_arns" {
value = local.account_names_account_arns
description = "Map of account names to account ARNs (excluding root account)"
}
output "account_names_account_ids" {
value = local.account_names_account_ids
description = "Map of account names to account IDs (excluding root account)"
}
output "organizational_unit_names_organizational_unit_arns" {
value = local.organizational_unit_names_organizational_unit_arns
description = "Map of Organizational Unit names to Organizational Unit ARNs"
}
output "organizational_unit_names_organizational_unit_ids" {
value = local.organizational_unit_names_organizational_unit_ids
description = "Map of Organizational Unit names to Organizational Unit IDs"
}
output "organization_id" {
value = local.organization_id
description = "Organization ID"
}
output "organization_arn" {
value = local.organization_arn
description = "Organization ARN"
}
output "organization_master_account_id" {
value = local.organization_master_account_id
description = "Organization master account ID"
}
output "organization_master_account_arn" {
value = local.organization_master_account_arn
description = "Organization master account ARN"
}
output "organization_master_account_email" {
value = local.organization_master_account_email
description = "Organization master account email"
}
output "eks_accounts" {
value = local.eks_account_names
description = "List of EKS accounts"
}
output "non_eks_accounts" {
value = local.non_eks_account_names
description = "List of non EKS accounts"
}
output "organization_scp_id" {
value = join("", module.organization_service_control_policies.*.organizations_policy_id)
description = "Organization Service Control Policy ID"
}
output "organization_scp_arn" {
value = join("", module.organization_service_control_policies.*.organizations_policy_arn)
description = "Organization Service Control Policy ARN"
}
output "account_names_account_scp_ids" {
value = local.account_names_account_scp_ids
description = "Map of account names to SCP IDs for accounts with SCPs"
}
output "account_names_account_scp_arns" {
value = local.account_names_account_scp_arns
description = "Map of account names to SCP ARNs for accounts with SCPs"
}
output "organizational_unit_names_organizational_unit_scp_ids" {
value = local.organizational_unit_names_organizational_unit_scp_ids
description = "Map of OU names to SCP IDs"
}
output "organizational_unit_names_organizational_unit_scp_arns" {
value = local.organizational_unit_names_organizational_unit_scp_arns
description = "Map of OU names to SCP ARNs"
}