-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
159 lines (132 loc) · 3.74 KB
/
variables.tf
File metadata and controls
159 lines (132 loc) · 3.74 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
156
157
158
159
variable "cloud_region" {
description = "Region in which Cloud Resources to be created"
type = string
default = "eu-west-2"
}
variable "atlas_org_id" {
description = "MongoDB Atlas org id"
type = string
}
variable "atlas_project_name" {
description = "MongoDB Atlas project name"
type = string
}
variable "atlas_cluster_name" {
description = "MongoDB Atlas project name"
type = string
}
variable "atlas_api_public_key" {
description = "MongoDB Atlas public API key"
type = string
}
variable "atlas_api_private_key" {
description = "Mongo Atlas private API key"
type = string
}
variable "atlas_cluster_provider_name" {
description = "Cluster provider for MongoDB atlas"
type = string
default = "TENANT"
}
variable "atlas_cluster_backing_provider" {
description = "Cloud provider for MongoDB atlas"
type = string
default = "AWS"
}
#To check the cloud regions for AWS https://www.mongodb.com/docs/atlas/reference/amazon-aws/
variable "atlas_cluster_region" {
description = "Mongo Atlas region name"
type = string
default = "EU_CENTRAL_1"
}
variable "atlas_cluster_version" {
description = "Version of the MongoDB cluster to deploy"
type = string
default = "6.0"
}
variable "atlas_cluster_size_name" {
description = "Type of the MongoDB cluster to deploy"
type = string
default = "M0"
}
variable "mongo_database_name" {
description = "MongoDB Database name"
type = string
}
variable "mongo_database_admin_user" {
description = "MongoDB Database admin username"
type = string
}
variable "mongo_database_admin_password" {
description = "MongoDB Database admin password"
type = string
}
variable "mongo_database_app_user" {
description = "MongoDB Database application username"
type = string
}
variable "mongo_database_app_password" {
description = "MongoDB Database application user password"
type = string
}
variable "ip_access_list" {
description = "Network ip access-lists for the project"
type = map(any)
default = {}
}
variable "cidr_access_list" {
description = "Network cidr access-lists for the project"
type = map(any)
default = {}
}
variable "atlas_cluster_cidr" {
description = "Atlas CIDR block, must be at least a /24 and at most a /21"
type = string
}
variable "vpc_peer" {
description = "An object that contains all VPC peering requests from the cluster to AWS VPC"
type = map(any)
default = {}
}
variable "vpc_peer_sg" {
description = "VPC peer security group map"
type = map(any)
default = {}
}
variable "enable_datadog" {
description = "Enable Datadog or not"
type = bool
default = false
}
variable "datadog_api_key" {
description = "Datadog api key"
type = string
default = ""
}
variable "datadog_region" {
description = "Datadog region"
type = string
default = ""
}
variable "enable_maintenance_window" {
description = "Enable Datadog or not"
type = bool
default = false
}
# Documentation here https://registry.terraform.io/providers/mongodb/mongodbatlas/latest/docs/resources/maintenance_window
variable "maintenance_window_day_of_week" {
description = "Maintenance window day of the week"
type = number
default = 1
}
# Documentation here https://registry.terraform.io/providers/mongodb/mongodbatlas/latest/docs/resources/maintenance_window
variable "maintenance_window_hour_of_day" {
description = "Maintenance window hour of the day"
type = number
default = 18
}
variable "maintenance_window_defer" {
description = "Enable Maintenance window or not"
type = bool
default = false
}