Skip to content

Commit 5846f1b

Browse files
authored
Create example-tfvars
1 parent d329242 commit 5846f1b

File tree

1 file changed

+108
-0
lines changed

1 file changed

+108
-0
lines changed

example-tfvars

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
cloud_provider = "AWS"
2+
cluster_type = "REPLICASET"
3+
volume_type = "STANDARD"
4+
region = "EU_WEST_1"
5+
cluster_name = "test"
6+
instance_type = "M10"
7+
mongodb_major_ver = 5.0
8+
num_shards = 3
9+
backup_enabled = false
10+
pit_enabled = false
11+
auto_scaling_disk_gb_enabled = false
12+
org_id = ""
13+
project_name = "test"
14+
white_lists = {
15+
"example comment" : "0.0.0.0/0"
16+
}
17+
aws_rgion = "eu-west-1"
18+
replication_factor = 3
19+
#NOTE: Set this to true for M0 cluster if you have credit card associated to MongoDB else set it to false as it cannot be enabled unless credit card is associated
20+
cloud_backup = false
21+
#NOTE: Set this to true for M0 cluster if you have credit card associated to MongoDB else set it to false as it cannot be enabled unless credit card is associated
22+
#pit_enabled = false
23+
disk_size_gb = 10
24+
#auto_scaling_disk_gb_enabled = true
25+
#volume_type = "STANDARD"
26+
#provider_disk_iops =
27+
#vpc_peer =
28+
#create_privatelink_endpoint =
29+
#vpc_id =
30+
#vpc_endpoint_type =
31+
#subnet_ids =
32+
#security_group_ids =
33+
#NOTE: Required if autoScaling.compute.enabled is true.
34+
provider_auto_scaling_compute_max_instance_size = "M40"
35+
provider_auto_scaling_compute_min_instance_size = "M10"
36+
#NOTE: If auto_scaling_compute_enabled is true, then Atlas will automatically scale up to the maximum provided and down to the minimum, if provided. This will cause the value of provider_instance_size_name returned to potential be different than what is specified in the Terraform config and if one then applies a plan, not noting this, Terraform will scale the cluster back down to the original instanceSizeName value. To prevent this a lifecycle customization should be used, i.e.:
37+
# lifecycle { ignore_changes = [provider_instance_size_name] }
38+
# But in order to explicitly change provider_instance_size_name comment the lifecycle block and run terraform apply. Please ensure to uncomment it to prevent any accidental changes.
39+
auto_scaling_compute_enabled = true
40+
#This option is only available if autoScaling.compute.enabled is true.
41+
auto_scaling_compute_scale_down_enabled = true
42+
encryption_at_rest_provider = "AWS"
43+
############################
44+
## Encryption at rest
45+
############################
46+
enabled = true
47+
customer_master_key_id = ""
48+
#######################################
49+
### Cloud Backup Schedule
50+
#######################################
51+
reference_hour_of_day = 3
52+
reference_minute_of_hour = 45
53+
restore_window_days = 4
54+
#policy_item_hourly
55+
hourly_backup_enabled = true
56+
hourly_frequency_interval = 1
57+
hourly_retention_unit = "days"
58+
hourly_retention_value = 1
59+
#policy_item_daily
60+
daily_backup_enabled = false
61+
#daily_frequency_interval =
62+
#daily_retention_unit =
63+
#daily_retention_value =
64+
#policy_item_weekly
65+
weekly_backup_enabled = false
66+
#weekly_frequency_interval =
67+
#weekly_retention_unit =
68+
#weekly_retention_value =
69+
#policy_item_monthly
70+
monthly_backup_enabled = false
71+
#monthly_frequency_interval = 5
72+
#monthly_retention_unit = "months"
73+
#monthly_retention_value = 4
74+
#
75+
#teams = {
76+
# Devops = {
77+
# users = ["[email protected]"]
78+
# org_role = ["ORG_OWNER"]
79+
# project_role = ["GROUP_OWNER"]
80+
# },
81+
# DevTeam = {
82+
83+
# org_role = ["ORG_MEMBER", "ORG_OWNER"]
84+
# project_role = ["GROUP_DATA_ACCESS_READ_ONLY", "GROUP_READ_ONLY"]
85+
# }
86+
#}
87+
#db_users = {
88+
# user_list = { #some_list
89+
# test-user1 = { #user
90+
# db_name = ["db_a", "db_b"]
91+
# db_role = ["readWrite", "read"]
92+
# db_type = ["CLUSTER"]
93+
# clustername = ["test"]
94+
# },
95+
# test-user2 = { #user
96+
# db_name = ["db_d", "db_e"]
97+
# db_role = ["readWrite", "readWrite"]
98+
# db_type = ["CLUSTER", "CLUSTER", "CLUSTER"]
99+
# clustername = ["test", "test-1", "test-2"]
100+
# },
101+
# test-user3 = { #user
102+
# db_name = ["db_c", "db_g", "db_a"]
103+
# db_role = ["readWrite", "read", "dbAdmin"]
104+
# db_type = ["CLUSTER", "CLUSTER", "CLUSTER"]
105+
# clustername = ["test-2", "test-5", "test-7"]
106+
# }
107+
# }
108+
#}

0 commit comments

Comments
 (0)