Skip to content

Commit 620f40b

Browse files
committed
tags
1 parent 1238156 commit 620f40b

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
resource "mongodbatlas_cluster" "tags" {
2+
project_id = var.project_id
3+
name = "tags"
4+
cluster_type = "REPLICASET"
5+
provider_name = "AWS"
6+
provider_instance_size_name = "M10"
7+
replication_specs {
8+
num_shards = 1
9+
regions_config {
10+
region_name = "US_EAST_1"
11+
electable_nodes = 3
12+
priority = 7
13+
}
14+
}
15+
dynamic "tags" {
16+
for_each = var.tags
17+
content {
18+
key = tags.key
19+
value = tags.value
20+
}
21+
}
22+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
resource "mongodbatlas_advanced_cluster" "tags" {
2+
project_id = var.project_id
3+
name = "tags"
4+
cluster_type = "REPLICASET"
5+
replication_specs = [
6+
{
7+
region_configs = [
8+
{
9+
provider_name = "AWS"
10+
region_name = "US_EAST_1"
11+
priority = 7
12+
electable_specs = {
13+
node_count = 3
14+
instance_size = "M10"
15+
}
16+
}
17+
]
18+
}
19+
]
20+
tags = var.tags
21+
22+
# Generated by atlas-cli-plugin-terraform.
23+
# Please confirm that all references to this resource are updated.
24+
}

0 commit comments

Comments
 (0)