-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathproject-cluster.json
152 lines (152 loc) · 3.8 KB
/
project-cluster.json
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "This template creates a cluster on the MongoDB Atlas API, this will be billed to your Atlas account.",
"Parameters": {
"ProjectName": {
"Type": "String",
"Description": "Name to use for your Atlas 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"
},
"OrgId": {
"Type": "String",
"Default": "",
"Description": "Unique 24-hexadecimal digit string that identifies your organization"
},
"PitEnabled": {
"Type": "String",
"Default": "true"
}
},
"Resources": {
"Project": {
"Type": "MongoDB::Atlas::Project",
"Properties": {
"Name": {
"Ref": "ProjectName"
},
"OrgId": {
"Ref": "OrgId"
},
"Profile": {
"Ref": "Profile"
}
}
},
"AtlasCluster": {
"Type": "MongoDB::Atlas::Cluster",
"Properties": {
"ProjectId": {
"Fn::GetAtt": [
"Project",
"Id"
]
},
"Name": {
"Ref": "ClusterName"
},
"Profile": {
"Ref": "Profile"
},
"AdvancedSettings": {
"DefaultReadConcern": "available",
"DefaultWriteConcern": "1",
"JavascriptEnabled": "true",
"MinimumEnabledTLSProtocol": "TLS1_2",
"NoTableScan": "false",
"OplogSizeMB": "2000",
"SampleSizeBIConnector": "110",
"SampleRefreshIntervalBIConnector": "310"
},
"BackupEnabled": "true",
"ClusterType": "REPLICASET",
"Paused": "false",
"PitEnabled": {
"Ref": "PitEnabled"
},
"Tags": [
{
"Key": "env",
"Value": "development"
}
],
"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"
]
}
}
}
}