-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathterraform.variables.tf
178 lines (157 loc) · 3.96 KB
/
terraform.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
171
172
173
174
175
176
177
178
variable "iac_project_name" {
description = "The name of the iac project"
type = string
default = "oci-free"
}
variable "iac_project_source" {
description = "The source repo of the iac project"
type = string
default = "https://git.bdeshi.space/bdeshi/terraform-oci-free.git"
}
variable "oci_region" {
description = "The region for the OCI provider"
type = string
}
variable "oci_profile" {
description = "The config file profile for the OCI provider"
type = string
default = null
}
variable "tenancy_id" {
description = "The OCID of the tenancy"
type = string
}
variable "prefix" {
description = "Name prefix for all resources"
type = string
default = "free-"
}
variable "admin_create_credentials" {
type = object({
api_key = bool
auth_token = bool
customer_key = bool
password = bool
smtp = bool
})
default = {
api_key = true
auth_token = false
customer_key = false
password = false
smtp = true
}
description = "Types of credentials to create for the admin user"
}
variable "vcn_cidr" {
description = "The CIDR block for the VCN"
type = string
default = "10.0.0.0/16"
}
variable "enable_ipv6" {
description = "Enable IPv6 for the VCN"
type = bool
default = true
}
variable "create_vault" {
description = "Create vault"
type = bool
default = true
}
variable "use_kms" {
description = "Use created vault for key creation and management"
type = object({
volume = bool
object = bool
database = bool
})
default = {
volume = true
object = true
database = true
}
}
variable "supplied_compute_ssh_public_key" {
description = "A pre-created public SSH key for the compute instances"
type = string
default = null
}
variable "created_compute_ssh_key_algorithm" {
description = "The algorithm for the created SSH key if no key is provided"
type = string
default = "ED25519"
validation {
error_message = "created_compute_ssh_key_algorithm must be 'RSA', 'ECDSA' or 'ED25519'"
condition = contains(["RSA", "ECDSA", "ED25519"], var.created_compute_ssh_key_algorithm)
}
}
variable "create_instances" {
description = "Create compute instances types"
type = object({
micro = bool
flex = bool
})
default = {
micro = true
flex = true
}
}
variable "create_static_ip" {
description = "Create a reserved static IP"
type = bool
default = true
}
# variable "attach_static_ip_to_flex" {
# description = "Attach reserved static IP to flex instance"
# type = bool
# default = true
# }
# variable "create_databases" {
# description = "Create databases"
# type = bool
# default = true
# }
#
# variable "database_types" {
# description = "Types of database workloads to create"
# type = list(string)
# default = []
# validation {
# error_message = "database_types must be a list of 'OLTP', 'DW', 'AJD' or 'APEX'"
# condition = alltrue([for v in var.database_types : contains(["OLTP", "DW", "AJD", "APEX"], v)])
# }
# }
variable "enable_email_delivery" {
description = "Create email delivery supporting configurations"
type = bool
default = true
}
variable "email_configuration" {
description = "values for email configuration"
type = object({
email_domains = list(string)
approved_senders = list(string)
suppression_list = list(string)
})
default = {
email_domains = []
approved_senders = []
suppression_list = []
}
}
variable "create_topics" {
description = "Create notification topics"
type = bool
default = true
}
variable "topics" {
description = "Values for notification topics configuration"
type = map(object({
description = string
subscriptions = list(object({
protocol = string
endpoint = string
}))
}))
default = {}
}