-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathcloudBackupSchedule.json
More file actions
124 lines (124 loc) · 2.82 KB
/
cloudBackupSchedule.json
File metadata and controls
124 lines (124 loc) · 2.82 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
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "This template creates a cloud backup policy for snapshot on the MongoDB Atlas API, this will be billed to your Atlas account.",
"Parameters": {
"Profile": {
"Type": "String",
"Description": "Your MongoDB Atlas Profile Name created in secret manager",
"Default": "default"
},
"ProjectId": {
"Type": "String",
"Default": ""
},
"ClusterName": {
"Type": "String",
"Default": ""
},
"CloudProvider": {
"Type": "String",
"Default": "AWS"
},
"RegionName": {
"Type": "String",
"Default": "AP_NORTHEAST_2"
},
"ReplicationSpecId": {
"Type": "String",
"Default": ""
},
"PolicyID": {
"Type": "String",
"Default": ""
},
"FrequencyInterval": {
"Type": "String",
"Default": "1"
},
"FrequencyType": {
"Type": "String",
"Default": "daily"
},
"RetentionUnit": {
"Type": "String",
"Default": "days"
},
"RetentionValue": {
"Type": "String",
"Default": "1"
}
},
"Mappings": {},
"Resources": {
"CloudBackupSchedule": {
"Type": "MongoDB::Atlas::CloudBackupSchedule",
"Properties": {
"ProjectId": {
"Ref": "ProjectId"
},
"ClusterName": {
"Ref": "ClusterName"
},
"AutoExportEnabled": "false",
"CopySettings": [
{
"CloudProvider": {
"Ref": "CloudProvider"
},
"Frequencies": [
"HOURLY"
],
"RegionName": {
"Ref": "RegionName"
},
"ReplicationSpecId": {
"Ref": "ReplicationSpecId"
},
"ShouldCopyOplogs": false
}
],
"Policies": [
{
"ID": {
"Ref": "PolicyID"
},
"PolicyItems": [
{
"FrequencyInterval": {
"Ref": "FrequencyInterval"
},
"FrequencyType": {
"Ref": "FrequencyType"
},
"RetentionUnit": {
"Ref": "RetentionUnit"
},
"RetentionValue": {
"Ref": "RetentionValue"
}
}
]
}
],
"ReferenceHourOfDay": "0",
"ReferenceMinuteOfHour": "0",
"RestoreWindowDays": "1",
"UpdateSnapshots": "true",
"UseOrgAndGroupNamesInExportPrefix": "true",
"Profile": {
"Ref": "Profile"
}
}
}
},
"Outputs": {
"CloudBackupSchedule": {
"Value": {
"Fn::GetAtt": [
"CloudBackupSchedule",
"ClusterId"
]
}
}
}
}