-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathx509-authentication-db-user.json
More file actions
76 lines (76 loc) · 2.03 KB
/
x509-authentication-db-user.json
File metadata and controls
76 lines (76 loc) · 2.03 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
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "This template generates one X.509 certificate for the specified MongoDB user. Atlas manages the certificate and MongoDB user that belong to one project. To use this resource, the requesting API Key must have the Project Atlas Admin role, this will be billed to your Atlas account.",
"Parameters": {
"CustomerX509": {
"Type": "String",
"Description": "Certificate (default value is just an example)",
"Default": "-----BEGIN CERTIFICATE-----\n<CERTIFICATE_HASH>\n-----END CERTIFICATE-----",
"ConstraintDescription": ""
},
"MongoDBAtlasProjectId": {
"Type": "String",
"Default": "63d164dc35d1b034f879fe37",
"Description": "MongoDB project Id"
},
"UserName": {
"Type": "String",
"Description": "",
"Default": "cfntest",
"ConstraintDescription": ""
},
"MonthsUntilExpiration": {
"Type": "String",
"Description": "",
"Default": 0,
"ConstraintDescription": ""
},
"Profile": {
"Type": "String",
"Description": "MongoDB Atlas Project Profile name",
"Default": "default",
"ConstraintDescription": ""
}
},
"Mappings": {},
"Resources": {
"X509AuthenticationDatabaseUser": {
"Type": "MongoDB::Atlas::X509AuthenticationDatabaseUser",
"Properties": {
"ProjectId": {
"Ref": "MongoDBAtlasProjectId"
},
"MonthsUntilExpiration": {
"Ref": "MonthsUntilExpiration"
},
"UserName": {
"Ref": "UserName"
},
"Profile": {
"Ref": "Profile"
},
"CustomerX509": {
"Cas": {
"Ref": "CustomerX509"
}
}
}
}
},
"Outputs": {
"Id": {
"Description": "id",
"Value": {
"Ref": "X509AuthenticationDatabaseUser"
}
},
"Enabled": {
"Value": {
"Fn::GetAtt": [
"X509AuthenticationDatabaseUser",
"MonthsUntilExpiration"
]
}
}
}
}