-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
170 lines (144 loc) · 4.67 KB
/
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
variable "compartment_id" {
default = ""
type = "string"
description = "The ID of the compartment for the event member management system"
}
variable "label_prefix" {
default = "eventmembermanagement-"
type = "string"
description = "The prefix to set for all resource labels"
}
variable "freeform_tags" {
default = ""
type = "map(any)"
description = "Simple key-value pairs to tag the created resources using freeform OCI Free-form tags."
}
variable "defined_tags" {
default = ""
type = "map(string)"
description = "Predefined and scoped to a namespace to tag the resources created using defined tags."
}
variable "vcn_create_internet_gateway" {
default = true
type = "boolean"
description = "Whether or not to create an internet gateway in the VCN"
}
variable "vcn_create_nat_gateway" {
default = true
type = "boolean"
description = "Whether or not to create an NAT gateway in the VCN"
}
variable "vcn_create_service_gateway" {
default = true
type = "boolean"
description = "Whether or not to create a service gateway in the VCN"
}
variable "vcn_enable_ipv6" {
default = false
type = "boolean"
description = "Whether or not to enable IPv6 in the VCN"
}
variable "vcn_cidrs" {
default = "[10.0.0.0/16]"
type = "list(string)"
description = "A list of CIDRs that the VCN should encompass"
}
variable "vcn_dns_label" {
default = "vcnmodule"
type = "string"
description = "A DNS label for the VCN, used in conjunction with the VNIC's hostname and subnet's DNS label to form a fully qualified domain name (FQDN) for each VNIC within this subnet. DNS resolution of hostnames in the VCN is disabled when null."
}
variable "vcn_name" {
default = "vcn"
type = "string"
description = "The name of the VCN"
}
variable "vcn_internet_gateway_display_name" {
default = "internet-gateway"
type = "string"
description = "Name of Internet Gateway. Does not have to be unique."
}
variable "vcn_nat_gateway_display_name" {
default = "nat-gateway"
type = "string"
description = "Name of NAT Gateway. Does not have to be unique."
}
variable "vcn_service_gateway_display_name" {
default = "service-gateway"
type = "string"
description = "Name of Service Gateway. Does not have to be unique."
}
variable "vcn_attached_drg_id" {
default = null
type = "string"
description = "The ID of DRG attached to the VCN"
}
variable "tenancy_id" {
default = ""
type = "string"
description = "The OCID value for the tenancy"
}
variable "oke_ssh_private_key_path" {
default = null
type = "string"
description = "The OCID value for the tenancy"
}
variable "oke_ssh_public_key_path" {
default = null
type = "string"
description = "The OCID value for the tenancy"
}
variable "home_region" {
default = "ap-seoul-1"
type = "string"
description = "The tenancy's home region. Required to perform identity operations."
}
variable "region" {
default = "ap-seoul-1"
type = "string"
description = " The OCI region where OKE resources will be created."
}
variable "oke_create_bastion_host" {
default = false
type = "boolean"
description = "Whether to create a bastion host."
}
variable "oke_create_operator" {
default = false
type = "boolean"
description = "Whether to create an operator server in a private subnet."
}
variable "oke_cluster_name" {
default = "main"
type = "string"
description = "The name of oke cluster."
}
variable "oke_cluster_type" {
default = "basic"
type = "string"
description = "The cluster type. See <a href=https://docs.oracle.com/en-us/iaas/Content/ContEng/Tasks/contengworkingwithenhancedclusters.htm>Working with Enhanced Clusters and Basic Clusters</a> for more information."
}
# The below configuration matches the free tier
variable "oke_worker_shape" {
default = {
"boot_volume_size": 50,
"memory": 6,
"ocpus": 1,
"shape": "VM.Standard.A1.Flex"
}
type = "map(any)"
description = "Default shape of the created worker instance when unspecified on a pool."
}
# The below configuration matches the free tier
variable "oke_worker_pool_size" {
default = 4
type = "number"
description = "Default size for worker pools when unspecified on a pool."
}
variable "oke_worker_pools" {
default = {
np0 = {} # All defaults, as defined by above variables
}
type = "any"
description = "Tuple of OKE worker pools where each key maps to the OCID of an OCI resource, and value contains its definition."
}