-
Notifications
You must be signed in to change notification settings - Fork 42
Expand file tree
/
Copy pathdata-federation.basic.cfn.template.json
More file actions
96 lines (96 loc) · 2.52 KB
/
data-federation.basic.cfn.template.json
File metadata and controls
96 lines (96 loc) · 2.52 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
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "This template creates an Atlas Data Federation in the specified project",
"Parameters": {
"Profile": {
"Type": "String",
"Default": "default",
"Description": "Secret Manager Profile that contains the Atlas Programmatic keys"
},
"ProjectId": {
"Type": "String",
"Description": "Atlas Project Id",
"Default": ""
},
"RoleID": {
"Type": "String",
"Description": "Unique identifier of the role that the federated database instance can use to access S3 Buckets. If necessary, use the Atlas API to retrieve the role ID. You must also specify the testS3Bucket",
"Default": "",
"ConstraintDescription": ""
},
"TestS3Bucket": {
"Type": "String",
"Description": "",
"Default": "",
"ConstraintDescription": "Name of the S3 data bucket that the provided role ID is authorized to access. You must also specify the roleId"
},
"TenantName": {
"Type": "String",
"Description": "",
"Default": "cfn-data-federation-tenant",
"ConstraintDescription": ""
},
"Region": {
"Type": "String",
"Description": "Name of the region to which Data Federation routes client connections for data processing",
"Default": "VIRGINIA_USA",
"ConstraintDescription": ""
}
},
"Mappings": {},
"Resources": {
"FederatedDatabaseInstance": {
"Type": "MongoDB::Atlas::FederatedDatabaseInstance",
"Properties": {
"ProjectId": {
"Ref": "ProjectId"
},
"Profile": {
"Ref": "Profile"
},
"TenantName": {
"Ref": "TenantName"
},
"CloudProviderConfig": {
"RoleId": {
"Ref": "RoleID"
},
"TestS3Bucket": {
"Ref": "TestS3Bucket"
}
},
"DataProcessRegion": {
"CloudProvider": "AWS",
"Region": {
"Ref": "Region"
}
},
"SkipRoleValidation": "true",
"Storage": {
"Databases": [
{
"MaxWildcardCollections": "50",
"Name": "sample_airbnb"
}
]
}
}
}
},
"Outputs": {
"FederatedDatabaseInstance": {
"Description": "Data Federation",
"Value": {
"Fn::Select": [
0,
{
"Fn::GetAtt": [
"FederatedDatabaseInstance",
"HostNames"
]
}
]
}
}
}
}