-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathcluster.json
More file actions
130 lines (130 loc) · 3.5 KB
/
cluster.json
File metadata and controls
130 lines (130 loc) · 3.5 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
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "This template creates a cluster on the MongoDB Atlas API, this will be billed to your Atlas account.",
"Parameters": {
"ProjectId": {
"Type": "String",
"Description": "Unique 24-hexadecimal digit string that identifies your project"
},
"ClusterName": {
"Type": "String",
"Description": "Name to use for your Atlas Cluster"
},
"Profile": {
"Type": "String",
"Description": "Secret Manager Profile that contains the Atlas Programmatic keys"
},
"PitEnabled": {
"Type": "String",
"Description": "Enable Point in Time Recovery",
"Default": "false"
}
},
"Resources": {
"AtlasCluster": {
"Type": "MongoDB::Atlas::Cluster",
"Properties": {
"ProjectId": {
"Ref": "ProjectId"
},
"Name": {
"Ref": "ClusterName"
},
"Profile": {
"Ref": "Profile"
},
"AdvancedSettings": {
"DefaultReadConcern": "available",
"DefaultWriteConcern": "1",
"JavascriptEnabled": "true",
"MinimumEnabledTLSProtocol": "TLS1_2",
"NoTableScan": "false",
"OplogSizeMB": "2000",
"SampleSizeBIConnector": "110",
"SampleRefreshIntervalBIConnector": "310",
"TlsCipherConfigMode": "CUSTOM",
"CustomOpensslCipherConfigTls12": [
"TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256",
"TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384"
]
},
"BackupEnabled": "true",
"ClusterType": "REPLICASET",
"Paused": "false",
"PitEnabled": {
"Ref": "PitEnabled"
},
"BiConnector": {
"ReadPreference": "secondary",
"Enabled": "false"
},
"ReplicationSpecs": [
{
"NumShards": "1",
"AdvancedRegionConfigs": [
{
"AutoScaling": {
"DiskGB": {
"Enabled": "true"
},
"Compute": {
"Enabled": "false",
"ScaleDownEnabled": "false"
}
},
"AnalyticsSpecs": {
"EbsVolumeType": "STANDARD",
"InstanceSize": "M10",
"NodeCount": "3"
},
"ElectableSpecs": {
"EbsVolumeType": "STANDARD",
"InstanceSize": "M10",
"NodeCount": "3"
},
"ReadOnlySpecs": {
"EbsVolumeType": "STANDARD",
"InstanceSize": "M10",
"NodeCount": "3"
},
"Priority": "7",
"RegionName": "US_EAST_1",
"ProviderName": "AWS"
}
]
}
]
}
}
},
"Outputs": {
"MongoDBAtlasConnectionStrings": {
"Description": "Cluster connection strings",
"Export": {
"Name": {
"Fn::Sub": "${AWS::StackName}-ConnectionStrings"
}
},
"Value": {
"Fn::GetAtt": [
"AtlasCluster",
"ConnectionStrings.Standard"
]
}
},
"MongoDBAtlasClusterID": {
"Description": "Cluster Id",
"Export": {
"Name": {
"Fn::Sub": "${AWS::StackName}-ID"
}
},
"Value": {
"Fn::GetAtt": [
"AtlasCluster",
"Id"
]
}
}
}
}