generated from terraform-ibm-modules/terraform-ibm-module-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
79 lines (76 loc) · 2.51 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
output "enterprise_account_groups" {
description = "List of account groups created in an Enterprise"
value = flatten([[for key, value in module.enterprise_hierarchy_depth_0.account_groups : {
parent : value.parent,
name : value.name,
crn : value.crn,
primary_contact_iam_id : value.primary_contact_iam_id
}],
[for key, value in module.enterprise_hierarchy_depth_1.account_groups : {
parent : value.parent,
name : value.name,
crn : value.crn,
primary_contact_iam_id : value.primary_contact_iam_id
}],
[for key, value in module.enterprise_hierarchy_depth_2.account_groups : {
parent : value.parent,
name : value.name,
crn : value.crn,
primary_contact_iam_id : value.primary_contact_iam_id
}]
])
}
output "enterprise_accounts" {
description = "List of accounts created in an Enterprise"
value = flatten([[for key, value in module.enterprise_hierarchy_depth_0.accounts : {
parent : value.parent,
name : value.name,
crn : value.crn,
owner_iam_id : value.owner_iam_id
}],
[for key, value in module.enterprise_hierarchy_depth_1.accounts : {
parent : value.parent,
name : value.name,
crn : value.crn,
owner_iam_id : value.owner_iam_id
}],
[for key, value in module.enterprise_hierarchy_depth_2.accounts : {
parent : value.parent,
name : value.name,
crn : value.crn,
owner_iam_id : value.owner_iam_id
}]
])
}
output "enterprise_accounts_iam_response" {
description = "List of accounts created in an Enterprise"
sensitive = true
value = flatten([[for key, value in module.enterprise_hierarchy_depth_0.accounts : {
parent : value.parent,
name : value.name,
crn : value.crn,
owner_iam_id : value.owner_iam_id
iam_apikey : value.iam_apikey
iam_service_id : value.iam_service_id
iam_apikey_id : value.iam_apikey_id
}],
[for key, value in module.enterprise_hierarchy_depth_1.accounts : {
parent : value.parent,
name : value.name,
crn : value.crn,
owner_iam_id : value.owner_iam_id
iam_apikey : value.iam_apikey
iam_service_id : value.iam_service_id
iam_apikey_id : value.iam_apikey_id
}],
[for key, value in module.enterprise_hierarchy_depth_2.accounts : {
parent : value.parent,
name : value.name,
crn : value.crn,
owner_iam_id : value.owner_iam_id
iam_apikey : value.iam_apikey
iam_service_id : value.iam_service_id
iam_apikey_id : value.iam_apikey_id
}]
])
}