-
Notifications
You must be signed in to change notification settings - Fork 19
/
vcn-variables.tf
131 lines (114 loc) · 4.62 KB
/
vcn-variables.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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# -----------------------------------------------------------------------------
# VCN Variables
# -----------------------------------------------------------------------------
variable "vcn_cidr_block" {
type = string
description = "Primary VCN CIDR Block"
default = "10.0.0.0/16"
validation {
condition = can(regex("^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1][0-9]|[2][0-9]))$", var.vcn_cidr_block))
error_message = "Must be a valid address range in CIDR notation."
}
}
variable "vcn_dns_label" {
type = string
description = "VCN DNS Label"
validation {
condition = can(regex("^[a-zA-Z][a-zA-Z0-9]{1,14}$", var.vcn_dns_label))
error_message = "Allowed maximum 15 alphanumeric characters and must start with a letter."
}
}
# -----------------------------------------------------------------------------
# Subnet Variables
# -----------------------------------------------------------------------------
variable "shared_service_subnet_cidr_block" {
type = string
description = "Shared Service Subnet CIDR Block"
default = ""
validation {
condition = can(regex("^$|^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1][0-9]|[2][0-9]))$", var.shared_service_subnet_cidr_block))
error_message = "Must be a valid address range in CIDR notation."
}
}
variable "shared_service_subnet_dns_label" {
type = string
description = "Shared Service Subnet DNS Label"
default = ""
validation {
condition = can(regex("^$|^[a-zA-Z][a-zA-Z0-9]{1,14}$", var.shared_service_subnet_dns_label))
error_message = "Allowed maximum 15 alphanumeric characters and must start with a letter."
}
}
# -----------------------------------------------------------------------------
# Dynamic Routing Gateway Inputs
# -----------------------------------------------------------------------------
variable "use_ipsec_drg" {
type = bool
description = "Do you want to deploy the ipsec connectivity option? (true/false)"
default = false
}
variable "cpe_ip_address" {
type = string
description = "Customer Premises Equipment IP address"
default = ""
}
variable "ip_sec_connection_static_routes" {
type = list(string)
description = "IPSec connection static routes"
default = []
}
variable "use_fastconnect_drg" {
type = bool
description = "Do you want to deploy the fastconnect connectivity option? (true/false)"
default = false
}
variable "virtual_circuit_bandwidth_shape" {
type = string
description = "The provisioned data rate of the connection"
default = ""
}
variable "provider_service_key_name" {
type = string
description = "The provider service key that the provider gives you when you set up a virtual circuit connection from the provider to OCI"
default = ""
}
variable "virtual_circuit_cross_connect_mappings_customer_bgp_peering_ip" {
type = string
description = "This is the BGP IPv4 address of the customer's router"
default = ""
}
variable "virtual_circuit_cross_connect_mappings_oracle_bgp_peering_ip" {
type = string
description = "IPv4 address for Oracle's end of the BGP session"
default = ""
}
variable "virtual_circuit_cross_connect_mappings_customer_secondary_bgp_peering_ip" {
type = string
description = "This is the secondary BGP IPv4 address of the customer's router"
default = ""
}
variable "virtual_circuit_cross_connect_mappings_oracle_secondary_bgp_peering_ip" {
type = string
description = "Secondary IPv4 address for Oracle's end of the BGP session"
default = ""
}
variable "fastconnect_provider" {
type = string
description = "Available FastConnect providers: AT&T, Microsoft Azure, Megaport, QTS, CEintro, Cologix, CoreSite, Digitial Realty, EdgeConneX, Epsilon, Equinix, InterCloud, Lumen, Neutrona, OMCS, OracleL2ItegDeployment, OracleL3ItegDeployment, Orange, Verizon, Zayo"
default = ""
}
variable "virtual_circuit_customer_asn" {
type = number
description = "The BGP ASN of the network at the other end of the BGP session from Oracle"
default = 0
}
variable "fastconnect_routing_policy" {
type = list(string)
description = "Available FastConnect routing policies: ORACLE_SERVICE_NETWORK, REGIONAL, MARKET_LEVEL, GLOBAL"
default = []
}
variable "external_subnet_ocids" {
type = list(string)
description = "OCIDs of subnets created outside of this stack to be tracked in the VCN Flow Log service"
default = []
}