-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathcustom-db-role.json
66 lines (66 loc) · 1.69 KB
/
custom-db-role.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
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "This template creates a Custom DB Role.",
"Parameters": {
"Profile": {
"Type": "String",
"Description": "MongoDB Atlas Profile name"
},
"ProjectId": {
"Type": "String",
"Description": "MongoDB project Key"
},
"DatabaseName": {
"Type": "String",
"Description": "Human-readable label that identifies the database on which you grant the action to one MongoDB user"
},
"Collection": {
"Type": "String",
"Description": "Human-readable label that identifies the collection on which you grant the action to one MongoDB user"
},
"Action": {
"Type": "String",
"Description": "Human-readable label that identifies the privilege action",
"Default": "FIND"
},
"RoleName": {
"Type": "String",
"Description": "Human-readable label that identifies the role for the request. This name must be unique for this custom role in this project"
}
},
"Mappings": {},
"Resources": {
"CustomDBRole": {
"Type": "MongoDB::Atlas::CustomDBRole",
"Properties": {
"ProjectId": {
"Ref": "ProjectId"
},
"Actions": [
{
"Action": {
"Ref": "Action"
},
"Resources": [
{
"Collection": {
"Ref": "Collection"
},
"DB": {
"Ref": "DatabaseName"
}
}
]
}
],
"RoleName": {
"Ref": "RoleName"
},
"Profile": {
"Ref": "Profile"
}
}
}
},
"Outputs": {}
}