-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathactivate-mongodb-atlas-resources.template.yaml
419 lines (419 loc) · 21.3 KB
/
activate-mongodb-atlas-resources.template.yaml
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
AWSTemplateFormatVersion: '2010-09-09'
Description: MongoDB Resource activation - This template can be used to activate all MongoDB Atlas resources in current AWS account in the selected region.
Metadata:
cfn-lint: { config: { ignore_checks: [ W9002, W9003, W9006, E3001, E1010 ] } }
AWS::CloudFormation::Interface:
ParameterGroups:
- Label:
default: AWS Region
Parameters:
- Region
Parameters:
Region:
Description: The AWS Region where resources will be activated.
Type: String
AllowedValues:
- "us-east-1"
- "us-east-2"
- "ca-central-1"
- "us-west-1"
- "us-west-2"
- "sa-east-1"
- "ap-south-1"
- "ap-east-1"
- "ap-southeast-1"
- "ap-southeast-2"
- "ap-southeast-3"
- "ap-northeast-1"
- "ap-northeast-2"
- "ap-northeast-3"
- "eu-central-1"
- "eu-west-1"
- "eu-north-1"
- "eu-west-1"
- "eu-west-2"
- "eu-west-3"
- "eu-south-1"
- "me-south-1"
- "af-south-1"
Resources:
ActivateAlertConfigurationType:
Type: AWS::CloudFormation::TypeActivation
Properties:
PublicTypeArn: !Join [ "", [ 'arn:aws:cloudformation:',!Ref "Region",'::type/resource/bb989456c78c398a858fef18f2ca1bfc1fbba082/MongoDB-Atlas-AlertConfiguration' ] ]
Type: RESOURCE
TypeName: MongoDB::Atlas::AlertConfiguration
ExecutionRoleArn: !GetAtt MongoDBCustomResourceExecutionRole.Arn
ActivateAuditingType:
Type: AWS::CloudFormation::TypeActivation
Properties:
PublicTypeArn: !Join [ "", [ 'arn:aws:cloudformation:',!Ref "Region",'::type/resource/bb989456c78c398a858fef18f2ca1bfc1fbba082/MongoDB-Atlas-Auditing' ] ]
Type: RESOURCE
TypeName: MongoDB::Atlas::Auditing
ExecutionRoleArn: !GetAtt MongoDBCustomResourceExecutionRole.Arn
DependsOn: "ActivateAlertConfigurationType"
ActivateCloudBackUpRestoreJobsType:
Type: AWS::CloudFormation::TypeActivation
Properties:
PublicTypeArn: !Join [ "", [ 'arn:aws:cloudformation:',!Ref "Region",'::type/resource/bb989456c78c398a858fef18f2ca1bfc1fbba082/MongoDB-Atlas-CloudBackUpRestoreJobs' ] ]
Type: RESOURCE
TypeName: MongoDB::Atlas::CloudBackUpRestoreJobs
ExecutionRoleArn: !GetAtt MongoDBCustomResourceExecutionRole.Arn
DependsOn: "ActivateAuditingType"
ActivateCloudBackupSnapshotType:
Type: AWS::CloudFormation::TypeActivation
Properties:
PublicTypeArn: !Join [ "", [ 'arn:aws:cloudformation:',!Ref "Region",'::type/resource/bb989456c78c398a858fef18f2ca1bfc1fbba082/MongoDB-Atlas-CloudBackupSnapshot' ] ]
Type: RESOURCE
TypeName: MongoDB::Atlas::CloudBackupSnapshot
ExecutionRoleArn: !GetAtt MongoDBCustomResourceExecutionRole.Arn
DependsOn: "ActivateCloudBackUpRestoreJobsType"
ActivateCloudBackupSnapshotExportBucketType:
Type: AWS::CloudFormation::TypeActivation
Properties:
PublicTypeArn: !Join [ "", [ 'arn:aws:cloudformation:',!Ref "Region",'::type/resource/bb989456c78c398a858fef18f2ca1bfc1fbba082/MongoDB-Atlas-CloudBackupSnapshotExportBucket' ] ]
Type: RESOURCE
TypeName: MongoDB::Atlas::CloudBackupSnapshotExportBucket
ExecutionRoleArn: !GetAtt MongoDBCustomResourceExecutionRole.Arn
DependsOn: "ActivateCloudBackupSnapshotType"
ActivateCustomDBRoleType:
Type: AWS::CloudFormation::TypeActivation
Properties:
PublicTypeArn: !Join [ "", [ 'arn:aws:cloudformation:',!Ref "Region",'::type/resource/bb989456c78c398a858fef18f2ca1bfc1fbba082/MongoDB-Atlas-CustomDBRole' ] ]
Type: RESOURCE
TypeName: MongoDB::Atlas::CustomDBRole
ExecutionRoleArn: !GetAtt MongoDBCustomResourceExecutionRole.Arn
DependsOn: "ActivateCloudBackupSnapshotExportBucketType"
ActivateCustomDnsConfigurationClusterAwsType:
Type: AWS::CloudFormation::TypeActivation
Properties:
PublicTypeArn: !Join [ "", [ 'arn:aws:cloudformation:',!Ref "Region",'::type/resource/bb989456c78c398a858fef18f2ca1bfc1fbba082/MongoDB-Atlas-CustomDnsConfigurationClusterAws' ] ]
Type: RESOURCE
TypeName: MongoDB::Atlas::CustomDnsConfigurationClusterAws
ExecutionRoleArn: !GetAtt MongoDBCustomResourceExecutionRole.Arn
DependsOn: "ActivateCustomDBRoleType"
ActivateDataLakesType:
Type: AWS::CloudFormation::TypeActivation
Properties:
PublicTypeArn: !Join [ "", [ 'arn:aws:cloudformation:',!Ref "Region",'::type/resource/bb989456c78c398a858fef18f2ca1bfc1fbba082/MongoDB-Atlas-DataLakes' ] ]
Type: RESOURCE
TypeName: MongoDB::Atlas::DataLakes
ExecutionRoleArn: !GetAtt MongoDBCustomResourceExecutionRole.Arn
DependsOn: "ActivateCustomDnsConfigurationClusterAwsType"
ActivateEncryptionAtRestType:
Type: AWS::CloudFormation::TypeActivation
Properties:
PublicTypeArn: !Join [ "", [ 'arn:aws:cloudformation:',!Ref "Region",'::type/resource/bb989456c78c398a858fef18f2ca1bfc1fbba082/MongoDB-Atlas-EncryptionAtRest' ] ]
Type: RESOURCE
TypeName: MongoDB::Atlas::EncryptionAtRest
ExecutionRoleArn: !GetAtt MongoDBCustomResourceExecutionRole.Arn
DependsOn: "ActivateDataLakesType"
ActivateFederatedSettingsOrgRoleMappingType:
Type: AWS::CloudFormation::TypeActivation
Properties:
PublicTypeArn: !Join [ "", [ 'arn:aws:cloudformation:',!Ref "Region",'::type/resource/bb989456c78c398a858fef18f2ca1bfc1fbba082/MongoDB-Atlas-FederatedSettingsOrgRoleMapping' ] ]
Type: RESOURCE
TypeName: MongoDB::Atlas::FederatedSettingsOrgRoleMapping
ExecutionRoleArn: !GetAtt MongoDBCustomResourceExecutionRole.Arn
DependsOn: "ActivateEncryptionAtRestType"
ActivateGlobalClusterConfigType:
Type: AWS::CloudFormation::TypeActivation
Properties:
PublicTypeArn: !Join [ "", [ 'arn:aws:cloudformation:',!Ref "Region",'::type/resource/bb989456c78c398a858fef18f2ca1bfc1fbba082/MongoDB-Atlas-GlobalClusterConfig' ] ]
Type: RESOURCE
TypeName: MongoDB::Atlas::GlobalClusterConfig
ExecutionRoleArn: !GetAtt MongoDBCustomResourceExecutionRole.Arn
DependsOn: "ActivateFederatedSettingsOrgRoleMappingType"
ActivateLDAPConfigurationType:
Type: AWS::CloudFormation::TypeActivation
Properties:
PublicTypeArn: !Join [ "", [ 'arn:aws:cloudformation:',!Ref "Region",'::type/resource/bb989456c78c398a858fef18f2ca1bfc1fbba082/MongoDB-Atlas-LDAPConfiguration' ] ]
Type: RESOURCE
TypeName: MongoDB::Atlas::LDAPConfiguration
ExecutionRoleArn: !GetAtt MongoDBCustomResourceExecutionRole.Arn
DependsOn: "ActivateGlobalClusterConfigType"
ActivateLDAPVerifyType:
Type: AWS::CloudFormation::TypeActivation
Properties:
PublicTypeArn: !Join [ "", [ 'arn:aws:cloudformation:',!Ref "Region",'::type/resource/bb989456c78c398a858fef18f2ca1bfc1fbba082/MongoDB-Atlas-LDAPVerify' ] ]
Type: RESOURCE
TypeName: MongoDB::Atlas::LDAPVerify
ExecutionRoleArn: !GetAtt MongoDBCustomResourceExecutionRole.Arn
DependsOn: "ActivateLDAPConfigurationType"
ActivateMaintenanceWindowType:
Type: AWS::CloudFormation::TypeActivation
Properties:
PublicTypeArn: !Join [ "", [ 'arn:aws:cloudformation:',!Ref "Region",'::type/resource/bb989456c78c398a858fef18f2ca1bfc1fbba082/MongoDB-Atlas-MaintenanceWindow' ] ]
Type: RESOURCE
TypeName: MongoDB::Atlas::MaintenanceWindow
ExecutionRoleArn: !GetAtt MongoDBCustomResourceExecutionRole.Arn
DependsOn: "ActivateLDAPVerifyType"
ActivateOnlineArchiveType:
Type: AWS::CloudFormation::TypeActivation
Properties:
PublicTypeArn: !Join [ "", [ 'arn:aws:cloudformation:',!Ref "Region",'::type/resource/bb989456c78c398a858fef18f2ca1bfc1fbba082/MongoDB-Atlas-OnlineArchive' ] ]
Type: RESOURCE
TypeName: MongoDB::Atlas::OnlineArchive
ExecutionRoleArn: !GetAtt MongoDBCustomResourceExecutionRole.Arn
DependsOn: "ActivateMaintenanceWindowType"
ActivateOrgInvitationType:
Type: AWS::CloudFormation::TypeActivation
Properties:
PublicTypeArn: !Join [ "", [ 'arn:aws:cloudformation:',!Ref "Region",'::type/resource/bb989456c78c398a858fef18f2ca1bfc1fbba082/MongoDB-Atlas-OrgInvitation' ] ]
Type: RESOURCE
TypeName: MongoDB::Atlas::OrgInvitation
ExecutionRoleArn: !GetAtt MongoDBCustomResourceExecutionRole.Arn
DependsOn: "ActivateOnlineArchiveType"
ActivatePrivateEndPointRegionalModeType:
Type: AWS::CloudFormation::TypeActivation
Properties:
PublicTypeArn: !Join [ "", [ 'arn:aws:cloudformation:',!Ref "Region",'::type/resource/bb989456c78c398a858fef18f2ca1bfc1fbba082/MongoDB-Atlas-PrivateEndPointRegionalMode' ] ]
Type: RESOURCE
TypeName: MongoDB::Atlas::PrivateEndPointRegionalMode
ExecutionRoleArn: !GetAtt MongoDBCustomResourceExecutionRole.Arn
DependsOn: "ActivateOrgInvitationType"
ActivatePrivateEndpointADLType:
Type: AWS::CloudFormation::TypeActivation
Properties:
PublicTypeArn: !Join [ "", [ 'arn:aws:cloudformation:',!Ref "Region",'::type/resource/bb989456c78c398a858fef18f2ca1bfc1fbba082/MongoDB-Atlas-PrivateEndpointADL' ] ]
Type: RESOURCE
TypeName: MongoDB::Atlas::PrivateEndpointADL
ExecutionRoleArn: !GetAtt MongoDBCustomResourceExecutionRole.Arn
DependsOn: "ActivatePrivateEndPointRegionalModeType"
ActivateProjectInvitationType:
Type: AWS::CloudFormation::TypeActivation
Properties:
PublicTypeArn: !Join [ "", [ 'arn:aws:cloudformation:',!Ref "Region",'::type/resource/bb989456c78c398a858fef18f2ca1bfc1fbba082/MongoDB-Atlas-ProjectInvitation' ] ]
Type: RESOURCE
TypeName: MongoDB::Atlas::ProjectInvitation
ExecutionRoleArn: !GetAtt MongoDBCustomResourceExecutionRole.Arn
DependsOn: "ActivatePrivateEndpointADLType"
ActivateSearchIndexType:
Type: AWS::CloudFormation::TypeActivation
Properties:
PublicTypeArn: !Join [ "", [ 'arn:aws:cloudformation:',!Ref "Region",'::type/resource/bb989456c78c398a858fef18f2ca1bfc1fbba082/MongoDB-Atlas-SearchIndex' ] ]
Type: RESOURCE
TypeName: MongoDB::Atlas::SearchIndex
ExecutionRoleArn: !GetAtt MongoDBCustomResourceExecutionRole.Arn
DependsOn: "ActivateProjectInvitationType"
ActivateServerlessInstanceType:
Type: AWS::CloudFormation::TypeActivation
Properties:
PublicTypeArn: !Join [ "", [ 'arn:aws:cloudformation:',!Ref "Region",'::type/resource/bb989456c78c398a858fef18f2ca1bfc1fbba082/MongoDB-Atlas-ServerlessInstance' ] ]
Type: RESOURCE
TypeName: MongoDB::Atlas::ServerlessInstance
ExecutionRoleArn: !GetAtt MongoDBCustomResourceExecutionRole.Arn
DependsOn: "ActivateSearchIndexType"
ActivateTeamsType:
Type: AWS::CloudFormation::TypeActivation
Properties:
PublicTypeArn: !Join [ "", [ 'arn:aws:cloudformation:',!Ref "Region",'::type/resource/bb989456c78c398a858fef18f2ca1bfc1fbba082/MongoDB-Atlas-Teams' ] ]
Type: RESOURCE
TypeName: MongoDB::Atlas::Teams
ExecutionRoleArn: !GetAtt MongoDBCustomResourceExecutionRole.Arn
DependsOn: "ActivateServerlessInstanceType"
ActivateThirdPartyIntegrationType:
Type: AWS::CloudFormation::TypeActivation
Properties:
PublicTypeArn: !Join [ "", [ 'arn:aws:cloudformation:',!Ref "Region",'::type/resource/bb989456c78c398a858fef18f2ca1bfc1fbba082/MongoDB-Atlas-ThirdPartyIntegration' ] ]
Type: RESOURCE
TypeName: MongoDB::Atlas::ThirdPartyIntegration
ExecutionRoleArn: !GetAtt MongoDBCustomResourceExecutionRole.Arn
DependsOn: "ActivateTeamsType"
ActivateX509AuthenticationDatabaseUserType:
Type: AWS::CloudFormation::TypeActivation
Properties:
PublicTypeArn: !Join [ "", [ 'arn:aws:cloudformation:',!Ref "Region",'::type/resource/bb989456c78c398a858fef18f2ca1bfc1fbba082/MongoDB-Atlas-X509AuthenticationDatabaseUser' ] ]
Type: RESOURCE
TypeName: MongoDB::Atlas::X509AuthenticationDatabaseUser
ExecutionRoleArn: !GetAtt MongoDBCustomResourceExecutionRole.Arn
DependsOn: "ActivateThirdPartyIntegrationType"
ActivateTriggerType:
Type: AWS::CloudFormation::TypeActivation
Properties:
PublicTypeArn: !Join [ "", [ 'arn:aws:cloudformation:',!Ref "Region",'::type/resource/bb989456c78c398a858fef18f2ca1bfc1fbba082/MongoDB-Atlas-Trigger' ] ]
Type: RESOURCE
TypeName: MongoDB::Atlas::Trigger
ExecutionRoleArn: !GetAtt MongoDBCustomResourceExecutionRole.Arn
DependsOn: "ActivateX509AuthenticationDatabaseUserType"
ActivateClusterType:
Type: AWS::CloudFormation::TypeActivation
Properties:
PublicTypeArn: !Join [ "", [ 'arn:aws:cloudformation:',!Ref "Region",'::type/resource/bb989456c78c398a858fef18f2ca1bfc1fbba082/MongoDB-Atlas-Cluster' ] ]
Type: RESOURCE
TypeName: MongoDB::Atlas::Cluster
ExecutionRoleArn: !GetAtt MongoDBCustomResourceExecutionRole.Arn
DependsOn: "ActivateTriggerType"
ActivateProjectIpAccessListType:
Type: AWS::CloudFormation::TypeActivation
Properties:
PublicTypeArn: !Join [ "", [ 'arn:aws:cloudformation:',!Ref "Region",'::type/resource/bb989456c78c398a858fef18f2ca1bfc1fbba082/MongoDB-Atlas-ProjectIpAccessList' ] ]
Type: RESOURCE
TypeName: MongoDB::Atlas::ProjectIpAccessList
ExecutionRoleArn: !GetAtt MongoDBCustomResourceExecutionRole.Arn
DependsOn: "ActivateClusterType"
ActivateDatabaseUserType:
Type: AWS::CloudFormation::TypeActivation
Properties:
PublicTypeArn: !Join [ "", [ 'arn:aws:cloudformation:',!Ref "Region",'::type/resource/bb989456c78c398a858fef18f2ca1bfc1fbba082/MongoDB-Atlas-DatabaseUser' ] ]
Type: RESOURCE
TypeName: MongoDB::Atlas::DatabaseUser
ExecutionRoleArn: !GetAtt MongoDBCustomResourceExecutionRole.Arn
DependsOn: "ActivateProjectIpAccessListType"
ActivateProjectType:
Type: AWS::CloudFormation::TypeActivation
Properties:
PublicTypeArn: !Join [ "", [ 'arn:aws:cloudformation:',!Ref "Region",'::type/resource/bb989456c78c398a858fef18f2ca1bfc1fbba082/MongoDB-Atlas-Project' ] ]
Type: RESOURCE
TypeName: MongoDB::Atlas::Project
ExecutionRoleArn: !GetAtt MongoDBCustomResourceExecutionRole.Arn
DependsOn: "ActivateDatabaseUserType"
ActivateNetworkPeeringType:
Type: AWS::CloudFormation::TypeActivation
Properties:
PublicTypeArn: !Join [ "", [ 'arn:aws:cloudformation:',!Ref "Region",'::type/resource/bb989456c78c398a858fef18f2ca1bfc1fbba082/MongoDB-Atlas-NetworkPeering' ] ]
Type: RESOURCE
TypeName: MongoDB::Atlas::NetworkPeering
ExecutionRoleArn: !GetAtt MongoDBCustomResourceExecutionRole.Arn
DependsOn: "ActivateProjectType"
ActivatePrivateEndpointType:
Type: AWS::CloudFormation::TypeActivation
Properties:
PublicTypeArn: !Join [ "", [ 'arn:aws:cloudformation:',!Ref "Region",'::type/resource/bb989456c78c398a858fef18f2ca1bfc1fbba082/MongoDB-Atlas-PrivateEndpoint' ] ]
Type: RESOURCE
TypeName: MongoDB::Atlas::PrivateEndpoint
ExecutionRoleArn: !GetAtt MongoDBCustomResourceExecutionRole.Arn
DependsOn: "ActivateNetworkPeeringType"
ActivateNetworkContainerType:
Type: AWS::CloudFormation::TypeActivation
Properties:
PublicTypeArn: !Join [ "", [ 'arn:aws:cloudformation:',!Ref "Region",'::type/resource/bb989456c78c398a858fef18f2ca1bfc1fbba082/MongoDB-Atlas-NetworkContainer' ] ]
Type: RESOURCE
TypeName: MongoDB::Atlas::NetworkContainer
ExecutionRoleArn: !GetAtt MongoDBCustomResourceExecutionRole.Arn
DependsOn: "ActivatePrivateEndpointType"
ActivateAPIKey:
Type: AWS::CloudFormation::TypeActivation
Properties:
PublicTypeArn: !Join [ "", [ 'arn:aws:cloudformation:',!Ref "Region",'::type/resource/bb989456c78c398a858fef18f2ca1bfc1fbba082/MongoDB-Atlas-APIKey' ] ]
Type: RESOURCE
TypeName: MongoDB::Atlas::APIKey
ExecutionRoleArn: !GetAtt MongoDBCustomResourceExecutionRole.Arn
DependsOn: "ActivateNetworkContainerType"
ActivateAccessListAPIKey:
Type: AWS::CloudFormation::TypeActivation
Properties:
PublicTypeArn: !Join [ "", [ 'arn:aws:cloudformation:',!Ref "Region",'::type/resource/bb989456c78c398a858fef18f2ca1bfc1fbba082/MongoDB-Atlas-AccessListAPIKey' ] ]
Type: RESOURCE
TypeName: MongoDB::Atlas::AccessListAPIKey
ExecutionRoleArn: !GetAtt MongoDBCustomResourceExecutionRole.Arn
DependsOn: "ActivateAPIKey"
ActivateCloudBackupSchedule:
Type: AWS::CloudFormation::TypeActivation
Properties:
PublicTypeArn: !Join [ "", [ 'arn:aws:cloudformation:',!Ref "Region",'::type/resource/bb989456c78c398a858fef18f2ca1bfc1fbba082/MongoDB-Atlas-CloudBackupSchedule' ] ]
Type: RESOURCE
TypeName: MongoDB::Atlas::CloudBackupSchedule
ExecutionRoleArn: !GetAtt MongoDBCustomResourceExecutionRole.Arn
DependsOn: "ActivateAccessListAPIKey"
ActivateClusterOutageSimulation:
Type: AWS::CloudFormation::TypeActivation
Properties:
PublicTypeArn: !Join [ "", [ 'arn:aws:cloudformation:',!Ref "Region",'::type/resource/bb989456c78c398a858fef18f2ca1bfc1fbba082/MongoDB-Atlas-ClusterOutageSimulation' ] ]
Type: RESOURCE
TypeName: MongoDB::Atlas::ClusterOutageSimulation
ExecutionRoleArn: !GetAtt MongoDBCustomResourceExecutionRole.Arn
DependsOn: "ActivateCloudBackupSchedule"
ActivateDataLakePipeline:
Type: AWS::CloudFormation::TypeActivation
Properties:
PublicTypeArn: !Join [ "", [ 'arn:aws:cloudformation:',!Ref "Region",'::type/resource/bb989456c78c398a858fef18f2ca1bfc1fbba082/MongoDB-Atlas-DataLakePipeline' ] ]
Type: RESOURCE
TypeName: MongoDB::Atlas::DataLakePipeline
ExecutionRoleArn: !GetAtt MongoDBCustomResourceExecutionRole.Arn
DependsOn: "ActivateClusterOutageSimulation"
ActivateFederatedDatabaseInstance:
Type: AWS::CloudFormation::TypeActivation
Properties:
PublicTypeArn: !Join [ "", [ 'arn:aws:cloudformation:',!Ref "Region",'::type/resource/bb989456c78c398a858fef18f2ca1bfc1fbba082/MongoDB-Atlas-FederatedDatabaseInstance' ] ]
Type: RESOURCE
TypeName: MongoDB::Atlas::FederatedDatabaseInstance
ExecutionRoleArn: !GetAtt MongoDBCustomResourceExecutionRole.Arn
DependsOn: "ActivateDataLakePipeline"
ActivateFederatedQueryLimit:
Type: AWS::CloudFormation::TypeActivation
Properties:
PublicTypeArn: !Join [ "", [ 'arn:aws:cloudformation:',!Ref "Region",'::type/resource/bb989456c78c398a858fef18f2ca1bfc1fbba082/MongoDB-Atlas-FederatedQueryLimit' ] ]
Type: RESOURCE
TypeName: MongoDB::Atlas::FederatedQueryLimit
ExecutionRoleArn: !GetAtt MongoDBCustomResourceExecutionRole.Arn
DependsOn: "ActivateFederatedDatabaseInstance"
ActivateOrganization:
Type: AWS::CloudFormation::TypeActivation
Properties:
PublicTypeArn: !Join [ "", [ 'arn:aws:cloudformation:',!Ref "Region",'::type/resource/bb989456c78c398a858fef18f2ca1bfc1fbba082/MongoDB-Atlas-Organization' ] ]
Type: RESOURCE
TypeName: MongoDB::Atlas::Organization
ExecutionRoleArn: !GetAtt MongoDBCustomResourceExecutionRole.Arn
DependsOn: "ActivateFederatedQueryLimit"
ActivatePrivatelinkEndpointServiceDataFederationOnlineArchive:
Type: AWS::CloudFormation::TypeActivation
Properties:
PublicTypeArn: !Join [ "", [ 'arn:aws:cloudformation:',!Ref "Region",'::type/resource/bb989456c78c398a858fef18f2ca1bfc1fbba082/MongoDB-Atlas-PrivatelinkEndpointServiceDataFederationOnlineArchive' ] ]
Type: RESOURCE
TypeName: MongoDB::Atlas::PrivatelinkEndpointServiceDataFederationOnlineArchive
ExecutionRoleArn: !GetAtt MongoDBCustomResourceExecutionRole.Arn
DependsOn: "ActivateOrganization"
ActivateServerlessPrivateEndpoint:
Type: AWS::CloudFormation::TypeActivation
Properties:
PublicTypeArn: !Join [ "", [ 'arn:aws:cloudformation:',!Ref "Region",'::type/resource/bb989456c78c398a858fef18f2ca1bfc1fbba082/MongoDB-Atlas-ServerlessPrivateEndpoint' ] ]
Type: RESOURCE
TypeName: MongoDB::Atlas::ServerlessPrivateEndpoint
ExecutionRoleArn: !GetAtt MongoDBCustomResourceExecutionRole.Arn
DependsOn: "ActivatePrivatelinkEndpointServiceDataFederationOnlineArchive"
MongoDBCustomResourceExecutionRole:
Type: AWS::IAM::Role
Properties:
MaxSessionDuration: 8400
AssumeRolePolicyDocument:
Version: '2012-10-17'
Statement:
- Effect: Allow
Principal:
Service:
- cloudformation.amazonaws.com
- resources.cloudformation.amazonaws.com
- lambda.amazonaws.com
Action: sts:AssumeRole
Path: "/"
Policies:
- PolicyName: ResourceTypePolicy
PolicyDocument:
Version: '2012-10-17'
Statement:
- Effect: Allow
Action:
- "secretsmanager:CreateSecret"
- "secretsmanager:CreateSecretInput"
- "secretsmanager:DescribeSecret"
- "secretsmanager:GetSecretValue"
- "secretsmanager:PutSecretValue"
- "secretsmanager:UpdateSecretVersionStage"
- "ec2:CreateVpcEndpoint"
- "ec2:DeleteVpcEndpoints"
- "cloudformation:CreateResource"
- "cloudformation:DeleteResource"
- "cloudformation:GetResource"
- "cloudformation:GetResourceRequestStatus"
- "cloudformation:ListResources"
- "cloudformation:UpdateResource"
- "iam:AttachRolePolicy"
- "iam:CreateRole"
- "iam:DeleteRole"
- "iam:GetRole"
- "iam:GetRolePolicy"
- "iam:ListAttachedRolePolicies"
- "iam:ListRolePolicies"
- "iam:PutRolePolicy"
Resource: '*'