-
Notifications
You must be signed in to change notification settings - Fork 1
/
cluster.tf
41 lines (40 loc) · 974 Bytes
/
cluster.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
resource "mongodbatlas_advanced_cluster" "east" {
project_id = var.project_id
name = "TF-east-region"
cluster_type = "REPLICASET"
replication_specs {
region_configs {
electable_specs {
instance_size = var.instance_size
node_count = 3
}
analytics_specs {
instance_size = var.instance_size
node_count = 0
}
provider_name = "AWS"
priority = 7
region_name = "US_EAST_2"
}
}
}
resource "mongodbatlas_advanced_cluster" "west" {
project_id = var.project_id
name = "TF-west-region"
cluster_type = "REPLICASET"
replication_specs {
region_configs {
electable_specs {
instance_size = var.instance_size
node_count = 3
}
analytics_specs {
instance_size = var.instance_size
node_count = 0
}
provider_name = "AWS"
priority = 7
region_name = "US_WEST_1"
}
}
}