forked from oracle-terraform-modules/terraform-oci-vcn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
91 lines (73 loc) · 3.11 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
# Copyright (c) 2019, 2020 Oracle Corporation and/or affiliates. All rights reserved.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
output "vcn_id" {
description = "id of vcn that is created"
value = oci_core_vcn.vcn.id
}
output "drg_id" {
#! deprecation notice: this output will be removed at next major release
description = "Deprecated: Use drg sub-module instead. id of drg if it is created"
value = join(",", module.drg_from_vcn_module[*].drg_id)
}
output "rpc_id" {
description = "id of rpc if it is created"
value = join(",", module.drg_from_vcn_module[*].rpc_id)
}
output "nat_gateway_id" {
description = "id of nat gateway if it is created"
value = join(",", oci_core_nat_gateway.nat_gateway[*].id)
}
output "internet_gateway_id" {
description = "id of internet gateway if it is created"
value = join(",", oci_core_internet_gateway.ig[*].id)
}
output "service_gateway_id" {
description = "id of service gateway if it is created"
value = join(",", oci_core_service_gateway.service_gateway[*].id)
}
output "ig_route_id" {
description = "id of internet gateway route table"
value = join(",", oci_core_route_table.ig[*].id)
}
output "nat_route_id" {
description = "id of VCN NAT gateway route table"
value = join(",", oci_core_route_table.nat[*].id)
}
# New complete outputs for each resources with provider parity. Auto-updating.
# Usefull for module composition.
output "drg_attachment_all_attributes" {
#! deprecation notice: this output will be removed at next major release
description = "Deprecated: Use drg sub-module instead. all attributes related to drg attachment"
value = { for k, v in oci_core_drg_attachment.drg_from_vcn_module : k => v }
}
output "internet_gateway_all_attributes" {
description = "all attributes of created internet gateway"
value = { for k, v in oci_core_internet_gateway.ig : k => v }
}
output "ig_route_all_attributes" {
description = "all attributes of created ig route table"
value = { for k, v in oci_core_route_table.ig : k => v }
}
output "lpg_all_attributes" {
description = "all attributes of created lpg"
value = { for k, v in oci_core_local_peering_gateway.lpg : k => v }
}
output "nat_gateway_all_attributes" {
description = "all attributes of created nat gateway"
value = { for k, v in oci_core_nat_gateway.nat_gateway : k => v }
}
output "nat_route_all_attributes" {
description = "all attributes of created nat gateway route table"
value = { for k, v in oci_core_route_table.nat : k => v }
}
output "service_gateway_all_attributes" {
description = "all attributes of created service gateway"
value = { for k, v in oci_core_service_gateway.service_gateway : k => v }
}
output "vcn_all_attributes" {
description = "all attributes of created vcn"
value = { for k, v in oci_core_vcn.vcn : k => v }
}
output "drg_summary" {
value = { for k, v in module.drg_from_vcn_module : k => v.drg_summary }
}