-
Notifications
You must be signed in to change notification settings - Fork 3
/
outputs.tf
86 lines (71 loc) · 2.33 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
# Copyright (c) 2020 Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
#########################
## ADs
#########################
output "ads" {
description = "The Availability Domains (ADs) available in the region."
value = data.oci_identity_availability_domains.this.availability_domains
}
#########################
## VCN
#########################
output "vcn" {
description = "The returned resource attributes for the VCN."
value = length(oci_core_vcn.this) > 0 ? oci_core_vcn.this[0] : null
}
#########################
## Internet Gateway
#########################
output "igw" {
description = "Internet Gateway resource returned attributes."
value = length(oci_core_internet_gateway.this) >0 ? oci_core_internet_gateway.this[0] : null
}
#########################
## Service Gateway
#########################
output "svcgw" {
description = "Service Gateway resource returned attributes."
value = length(oci_core_service_gateway.this) > 0 ? oci_core_service_gateway.this[0] : null
}
output "svcgw_services" {
description = "Available services."
value = data.oci_core_services.this.*.services[0]
}
#########################
## NAT Gateway
#########################
output "natgw" {
description = "NAT Gateway resource returned attributes."
value = length(oci_core_nat_gateway.this) > 0 ? oci_core_nat_gateway.this[0] : null
}
#########################
## Dynamic Routing Gateway
#########################
output "drg" {
description = "DRG resource returned attributes."
value = {
drg = length(oci_core_drg.this) > 0 ? oci_core_drg.this[0] : null
drg_attachment = length(oci_core_drg_attachment.this) > 0 ? oci_core_drg_attachment.this[0] : null
}
}
#########################
## Route Tables
#########################
output "route_tables" {
description = "A map of the Routing Tables that are created/managed in this module."
value = {
for rt in oci_core_route_table.this:
rt.display_name => rt
}
}
#########################
## DHCP Options
#########################
output "dhcp_options" {
description = "A map of the DHCP Options that are created/managed in this module."
value = {
for items in oci_core_dhcp_options.this:
items.display_name => items
}
}