-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
39 lines (34 loc) · 1.18 KB
/
variables.tf
File metadata and controls
39 lines (34 loc) · 1.18 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
variable "atlas_public_key" {
type = string
sensitive = true
description = "The public key used to authenticate to your MongoDB Atlas account"
}
variable "atlas_private_key" {
type = string
sensitive = true
description = "The private key used to authenticate to your MongoDB Atlas account"
}
variable "atlas_project_id" {
type = string
description = "The ID of the Atlas project to create the cluster in"
}
variable "mongodb_major_version" {
type = string
default = "6"
description = "The version of MongoDB to use for the cluster"
}
variable "cluster_tier" {
type = string
default = "M10"
description = <<EOF
The cluster tier to use. See https://www.mongodb.com/docs/atlas/sizing-tier-selection for more information on choosing the right sized instance.
Dedicated tiers available are M10, M20, M30, M40, M50, M60, M80, M140, M200, M300, M400, M700.
For tiers M10 and M20, Atlas dictates that the cluster type must be REPLICA_SET.
For tiers M30 and up, the cluster type will be SHARDED.
EOF
}
variable "number_of_shards" {
type = number
default = 1
description = "The number of shards to create in the cluster"
}