-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
155 lines (140 loc) · 4.32 KB
/
Copy pathvariables.tf
File metadata and controls
155 lines (140 loc) · 4.32 KB
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
variable "compartment_ocid" {
description = "Compartment OCID where the VCN resources will be created."
type = string
}
variable "name" {
description = "VCN display name."
type = string
}
variable "vcn_cidr_blocks" {
description = "CIDR blocks for the VCN."
type = list(string)
}
variable "dns_label" {
description = "Optional DNS label for the VCN."
type = string
default = null
}
variable "defined_tags" {
description = "Defined tags applied to all top-level resources created by the module."
type = map(string)
default = {}
}
variable "freeform_tags" {
description = "Freeform tags applied to all top-level resources created by the module."
type = map(string)
default = {}
}
variable "create_internet_gateway" {
description = "Create an Internet Gateway for the VCN."
type = bool
default = false
}
variable "internet_gateway_enabled" {
description = "Whether the created Internet Gateway is enabled."
type = bool
default = true
}
variable "create_nat_gateway" {
description = "Create a NAT Gateway for the VCN."
type = bool
default = false
}
variable "nat_gateway_block_traffic" {
description = "Whether the created NAT Gateway blocks traffic."
type = bool
default = false
}
variable "create_service_gateway" {
description = "Create a Service Gateway for the VCN."
type = bool
default = false
}
variable "oracle_services_network_service_name" {
description = "Regex used to discover the Oracle Services Network entry for the Service Gateway."
type = string
default = "All .* Services In Oracle Services Network"
}
variable "extra_network_entity_ids" {
description = "Additional network entity IDs that route tables can reference by key, for example a DRG or LPG."
type = map(string)
default = {}
}
variable "route_tables" {
description = "Map of route tables to create."
type = map(object({
display_name = optional(string)
route_rules = optional(list(object({
description = optional(string)
destination = string
destination_type = optional(string, "CIDR_BLOCK")
network_entity_key = optional(string)
network_entity_id = optional(string)
})), [])
}))
default = {}
}
variable "security_lists" {
description = "Map of security lists to create."
type = map(object({
display_name = optional(string)
ingress_rules = optional(list(object({
description = optional(string)
protocol = string
source = string
source_type = optional(string, "CIDR_BLOCK")
stateless = optional(bool, false)
tcp_options = optional(object({
min = number
max = number
}))
udp_options = optional(object({
min = number
max = number
}))
icmp_options = optional(object({
type = number
code = optional(number)
}))
})), [])
egress_rules = optional(list(object({
description = optional(string)
protocol = string
destination = string
destination_type = optional(string, "CIDR_BLOCK")
stateless = optional(bool, false)
tcp_options = optional(object({
min = number
max = number
}))
udp_options = optional(object({
min = number
max = number
}))
icmp_options = optional(object({
type = number
code = optional(number)
}))
})), [])
}))
default = {}
}
variable "subnets" {
description = "Map of subnets to create."
type = map(object({
cidr_block = string
display_name = optional(string)
dns_label = optional(string)
dhcp_options_id = optional(string)
route_table_key = optional(string)
route_table_id = optional(string)
security_list_keys = optional(list(string), [])
security_list_ids = optional(list(string), [])
include_default_security_list = optional(bool, true)
prohibit_internet_ingress = optional(bool, false)
prohibit_public_ip_on_vnic = optional(bool, true)
defined_tags = optional(map(string), {})
freeform_tags = optional(map(string), {})
}))
default = {}
}