AnimeshShaw commited on
Commit
367e67d
·
1 Parent(s): 44c7441

Add human_reference_dataset/aws-cloudformation-templates/NeptuneDB/

Browse files
human_reference_dataset/aws-cloudformation-templates/NeptuneDB/LICENSE.txt ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ MIT No Attribution
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this
4
+ software and associated documentation files (the "Software"), to deal in the Software
5
+ without restriction, including without limitation the rights to use, copy, modify,
6
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
7
+ permit persons to whom the Software is furnished to do so.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
10
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
11
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
12
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
13
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
14
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
human_reference_dataset/aws-cloudformation-templates/NeptuneDB/Neptune.json ADDED
@@ -0,0 +1,1103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "AWSTemplateFormatVersion": "2010-09-09",
3
+ "Description": "AWS CloudFormation template to automatically provision AWS Neptune Graph Database through optimized CI/CD method with AWS CloudWatch and AWS SNS.",
4
+ "Metadata": {
5
+ "cfn-lint": {
6
+ "config": {
7
+ "regions": [
8
+ "us-east-1",
9
+ "us-west-2"
10
+ ]
11
+ }
12
+ },
13
+ "AWS::CloudFormation::Interface": {
14
+ "ParameterGroups": [
15
+ {
16
+ "Label": {
17
+ "default": "Tags"
18
+ },
19
+ "Parameters": [
20
+ "Env",
21
+ "AppName",
22
+ "User",
23
+ "Owner",
24
+ "Tier",
25
+ "Version",
26
+ "Storage"
27
+ ]
28
+ },
29
+ {
30
+ "Label": {
31
+ "default": "Neptune Database Parameters"
32
+ },
33
+ "Parameters": [
34
+ "DBInstanceClass",
35
+ "DBClusterIdentifier",
36
+ "MajorVersionUpgrade",
37
+ "MinorVersionUpgrade",
38
+ "NeptuneQueryTimeout",
39
+ "StorageEncrypted",
40
+ "NeptuneDBSubnetGroupName",
41
+ "GremlinRequestsPerSecThreshold",
42
+ "SparqlRequestsPerSecThreshold",
43
+ "IAMAuthEnabled",
44
+ "VPCStack"
45
+ ]
46
+ },
47
+ {
48
+ "Label": {
49
+ "default": "Neptune Security Group Parameters"
50
+ },
51
+ "Parameters": [
52
+ "Port"
53
+ ]
54
+ },
55
+ {
56
+ "Label": {
57
+ "default": "Neptune Backup and Monitoring Parameters"
58
+ },
59
+ "Parameters": [
60
+ "HighCpuAlarmThreshold",
61
+ "LowMemoryAlarmThreshold",
62
+ "UploadAuditLogs",
63
+ "BackupRetentionPeriod",
64
+ "NeptuneDBClusterPreferredMaintenanceWindow",
65
+ "NeptuneDBInstancePreferredMaintenanceWindow",
66
+ "NeptuneDBClusterPreferredBackupWindow"
67
+ ]
68
+ },
69
+ {
70
+ "Label": {
71
+ "default": "Neptune Notifications Parameters"
72
+ },
73
+ "Parameters": [
74
+ "NeptuneSNSTopicArn",
75
+ "SNSEmailSubscription"
76
+ ]
77
+ }
78
+ ]
79
+ }
80
+ },
81
+ "Parameters": {
82
+ "Env": {
83
+ "Description": "Please specify the target Environment. Used for tagging and resource names. Mandatory LOWER CASE.",
84
+ "Type": "String",
85
+ "AllowedValues": [
86
+ "test",
87
+ "dev",
88
+ "prod"
89
+ ],
90
+ "Default": "dev"
91
+ },
92
+ "AppName": {
93
+ "Description": "Please specify the Application Name. Used for tagging and resource names. Mandatory LOWER CASE.",
94
+ "Type": "String",
95
+ "Default": "appname"
96
+ },
97
+ "User": {
98
+ "Description": "Please specify the User. Used for tagging",
99
+ "Type": "String",
100
+ "Default": "test"
101
+ },
102
+ "Owner": {
103
+ "Description": "Please specify the Owner. Used for tagging",
104
+ "Type": "String",
105
+ "Default": ""
106
+ },
107
+ "Tier": {
108
+ "Description": "Please specify the Tier. Used for tagging",
109
+ "Type": "String",
110
+ "Default": ""
111
+ },
112
+ "Version": {
113
+ "Description": "Please specify the Application Version. Used for tagging",
114
+ "Type": "String",
115
+ "Default": ""
116
+ },
117
+ "Storage": {
118
+ "Description": "Please specify the Storage Type. Used for tagging",
119
+ "Type": "String",
120
+ "AllowedValues": [
121
+ "ebs",
122
+ "efs",
123
+ "s3"
124
+ ],
125
+ "Default": "ebs"
126
+ },
127
+ "VPCStack": {
128
+ "Description": "Please specify the VPC Stack Name.",
129
+ "Type": "String",
130
+ "Default": "vpc"
131
+ },
132
+ "DBInstanceClass": {
133
+ "Description": "Neptune DB instance class that will be used for primary and all replicas",
134
+ "Type": "String",
135
+ "AllowedValues": [
136
+ "db.r4.large",
137
+ "db.r4.xlarge",
138
+ "db.r4.2xlarge",
139
+ "db.r4.4xlarge",
140
+ "db.r4.8xlarge"
141
+ ],
142
+ "Default": "db.r4.large"
143
+ },
144
+ "DBClusterIdentifier": {
145
+ "Description": "Neptune DB cluster identifier. Must contain from 1 to 63 alphanumeric characters or hyphens. First character must be a letter. Cannot end with a hyphen or contain two consecutive hyphens.",
146
+ "Type": "String"
147
+ },
148
+ "Port": {
149
+ "Description": "Port used to connect to the Neptune cluster. Must be a valid port number between",
150
+ "Type": "String",
151
+ "Default": 8182
152
+ },
153
+ "NeptuneQueryTimeout": {
154
+ "Description": "Neptune DB parameters. Allowed values \"10-2147483647\"",
155
+ "Type": "String",
156
+ "Default": 120000
157
+ },
158
+ "StorageEncrypted": {
159
+ "Description": "Data-at-rest encryption",
160
+ "Type": "String",
161
+ "AllowedValues": [
162
+ true,
163
+ false
164
+ ],
165
+ "Default": false
166
+ },
167
+ "NeptuneDBSubnetGroupName": {
168
+ "Description": "The name for the DB Subnet Group. This value is stored as a lowercase string. Constraints, Must contain no more than 255 letters, numbers, periods, underscores, spaces, or hyphens. Must not be default.",
169
+ "Type": "String"
170
+ },
171
+ "NeptuneSNSTopicArn": {
172
+ "Description": "Custom SNS topic alarm. Optional. If not provided, an new SNS topic will be created for you",
173
+ "Type": "String"
174
+ },
175
+ "SNSEmailSubscription": {
176
+ "Description": "SNS Email subscription. Optional. If not provided, no alarm subscriptions will be created",
177
+ "Type": "String",
178
+ "AllowedPattern": "^[\\w-\\+]+(\\.[\\w]+)*@[\\w-]+(\\.[\\w]+)*(\\.[a-z]{2,})$|^$"
179
+ },
180
+ "HighCpuAlarmThreshold": {
181
+ "Description": "High CPU alarm threshold. Alert when CPU goes above this value. In percentage used",
182
+ "Type": "String",
183
+ "Default": 80,
184
+ "AllowedPattern": "(100|[1-9]?[0-9])$"
185
+ },
186
+ "LowMemoryAlarmThreshold": {
187
+ "Description": "Low memory alarm threshold. Alert when memory falls below this value. In bytes",
188
+ "Type": "Number",
189
+ "Default": 700000000
190
+ },
191
+ "GremlinRequestsPerSecThreshold": {
192
+ "Description": "Gremlin Requests Per Sec alarm threshold. Alert when Gremlin Requests Per Sec goes above this value. In percentage used",
193
+ "Type": "String",
194
+ "Default": 10000
195
+ },
196
+ "SparqlRequestsPerSecThreshold": {
197
+ "Description": "Sparql Requests Per Sec alarm threshold. Alert when Sparql Requests Per Sec goes above this value. In percentage used",
198
+ "Type": "String",
199
+ "Default": 10000
200
+ },
201
+ "UploadAuditLogs": {
202
+ "Description": "Enable upload of audit logs?",
203
+ "Type": "String",
204
+ "AllowedValues": [
205
+ "Yes",
206
+ "No"
207
+ ],
208
+ "Default": "Yes"
209
+ },
210
+ "BackupRetentionPeriod": {
211
+ "Description": "Backup retention period (in days). Must be between 1 - 35",
212
+ "Type": "String",
213
+ "Default": 31,
214
+ "AllowedPattern": "([1-9]|[12][0-9]|3[0-5])"
215
+ },
216
+ "NeptuneDBClusterPreferredMaintenanceWindow": {
217
+ "Description": "Neptune DB cluster preferred maintenance window. Format - ddd:hh24:mi-ddd:hh24:mi. Valid Days - Mon, Tue, Wed, Thu, Fri, Sat, Sun. Constraints - Minimum 30-minute window.",
218
+ "Type": "String",
219
+ "Default": "mon:03:00-mon:04:00"
220
+ },
221
+ "NeptuneDBInstancePreferredMaintenanceWindow": {
222
+ "Description": "Neptune DB instance preferred maintenance window. Format - ddd:hh24:mi-ddd:hh24:mi. Valid Days - Mon, Tue, Wed, Thu, Fri, Sat, Sun. Constraints - Minimum 30-minute window.",
223
+ "Type": "String",
224
+ "Default": "mon:03:00-mon:04:00"
225
+ },
226
+ "NeptuneDBClusterPreferredBackupWindow": {
227
+ "Description": "Neptune DB cluster preferred backup window. Constrains - Must be in the format hh24:mi-hh24:mi. Must be in Universal Coordinated Time (UTC). Must not conflict with the preferred maintenance window. Must be at least 30 minutes.",
228
+ "Type": "String",
229
+ "Default": "02:00-03:00"
230
+ },
231
+ "MajorVersionUpgrade": {
232
+ "Description": "Neptune DB major version upgrade",
233
+ "Type": "String",
234
+ "AllowedValues": [
235
+ true,
236
+ false
237
+ ],
238
+ "Default": true
239
+ },
240
+ "MinorVersionUpgrade": {
241
+ "Description": "Neptune DB minor version upgrade",
242
+ "Type": "String",
243
+ "AllowedValues": [
244
+ true,
245
+ false
246
+ ],
247
+ "Default": true
248
+ },
249
+ "IAMAuthEnabled": {
250
+ "Description": "Neptune DB IAM authentication",
251
+ "Type": "String",
252
+ "AllowedValues": [
253
+ true,
254
+ false
255
+ ],
256
+ "Default": false
257
+ }
258
+ },
259
+ "Conditions": {
260
+ "EnableAuditLogUpload": {
261
+ "Fn::Equals": [
262
+ {
263
+ "Ref": "UploadAuditLogs"
264
+ },
265
+ "Yes"
266
+ ]
267
+ },
268
+ "CreateSnsTopic": {
269
+ "Fn::Equals": [
270
+ {
271
+ "Ref": "NeptuneSNSTopicArn"
272
+ },
273
+ ""
274
+ ]
275
+ },
276
+ "CreateSnsSubscription": {
277
+ "Fn::Not": [
278
+ {
279
+ "Fn::Equals": [
280
+ {
281
+ "Ref": "SNSEmailSubscription"
282
+ },
283
+ ""
284
+ ]
285
+ }
286
+ ]
287
+ }
288
+ },
289
+ "Resources": {
290
+ "NeptuneDBSG": {
291
+ "Type": "AWS::EC2::SecurityGroup",
292
+ "Properties": {
293
+ "GroupDescription": "SG of Neptune DB",
294
+ "VpcId": {
295
+ "Fn::ImportValue": {
296
+ "Fn::Sub": "${VPCStack}-VPCID"
297
+ }
298
+ },
299
+ "Tags": [
300
+ {
301
+ "Key": "Name",
302
+ "Value": {
303
+ "Fn::Sub": "${AWS::StackName}-neptune-sg"
304
+ }
305
+ }
306
+ ]
307
+ }
308
+ },
309
+ "NeptuneDBCluster": {
310
+ "Type": "AWS::Neptune::DBCluster",
311
+ "DependsOn": "NeptuneDBSG",
312
+ "Properties": {
313
+ "BackupRetentionPeriod": {
314
+ "Ref": "BackupRetentionPeriod"
315
+ },
316
+ "DBClusterIdentifier": {
317
+ "Ref": "DBClusterIdentifier"
318
+ },
319
+ "DBClusterParameterGroupName": {
320
+ "Ref": "NeptuneDBClusterParameterGroup"
321
+ },
322
+ "DBSubnetGroupName": {
323
+ "Ref": "NeptuneDBSubnetGroup"
324
+ },
325
+ "IamAuthEnabled": {
326
+ "Ref": "IAMAuthEnabled"
327
+ },
328
+ "DBPort": {
329
+ "Ref": "Port"
330
+ },
331
+ "PreferredBackupWindow": {
332
+ "Ref": "NeptuneDBClusterPreferredBackupWindow"
333
+ },
334
+ "PreferredMaintenanceWindow": {
335
+ "Ref": "NeptuneDBClusterPreferredMaintenanceWindow"
336
+ },
337
+ "StorageEncrypted": {
338
+ "Ref": "StorageEncrypted"
339
+ },
340
+ "VpcSecurityGroupIds": [
341
+ {
342
+ "Ref": "NeptuneDBSG"
343
+ }
344
+ ],
345
+ "Tags": [
346
+ {
347
+ "Key": "Name",
348
+ "Value": {
349
+ "Fn::Sub": "${Env}-${AppName}-Cluster"
350
+ }
351
+ },
352
+ {
353
+ "Key": "App",
354
+ "Value": {
355
+ "Fn::Sub": "${AppName}"
356
+ }
357
+ },
358
+ {
359
+ "Key": "Compliance",
360
+ "Value": "Compliance"
361
+ },
362
+ {
363
+ "Key": "Env",
364
+ "Value": {
365
+ "Fn::Sub": "${Env}"
366
+ }
367
+ },
368
+ {
369
+ "Key": "User",
370
+ "Value": {
371
+ "Fn::Sub": "${User}"
372
+ }
373
+ },
374
+ {
375
+ "Key": "Owner",
376
+ "Value": {
377
+ "Fn::Sub": "${Owner}"
378
+ }
379
+ },
380
+ {
381
+ "Key": "Tier",
382
+ "Value": {
383
+ "Fn::Sub": "${Tier}"
384
+ }
385
+ },
386
+ {
387
+ "Key": "Version",
388
+ "Value": {
389
+ "Fn::Sub": "${Version}"
390
+ }
391
+ },
392
+ {
393
+ "Key": "Storage",
394
+ "Value": {
395
+ "Fn::Sub": "${Storage}"
396
+ }
397
+ }
398
+ ]
399
+ }
400
+ },
401
+ "NeptuneDBInstance": {
402
+ "Type": "AWS::Neptune::DBInstance",
403
+ "Properties": {
404
+ "AllowMajorVersionUpgrade": {
405
+ "Ref": "MajorVersionUpgrade"
406
+ },
407
+ "AutoMinorVersionUpgrade": {
408
+ "Ref": "MinorVersionUpgrade"
409
+ },
410
+ "DBClusterIdentifier": {
411
+ "Ref": "NeptuneDBCluster"
412
+ },
413
+ "DBInstanceClass": {
414
+ "Ref": "DBInstanceClass"
415
+ },
416
+ "DBParameterGroupName": {
417
+ "Ref": "NeptuneDBParameterGroup"
418
+ },
419
+ "DBSubnetGroupName": {
420
+ "Ref": "NeptuneDBSubnetGroup"
421
+ },
422
+ "PreferredMaintenanceWindow": {
423
+ "Ref": "NeptuneDBInstancePreferredMaintenanceWindow"
424
+ },
425
+ "Tags": [
426
+ {
427
+ "Key": "Name",
428
+ "Value": {
429
+ "Fn::Sub": "${Env}-${AppName}-Instance"
430
+ }
431
+ },
432
+ {
433
+ "Key": "App",
434
+ "Value": {
435
+ "Fn::Sub": "${AppName}"
436
+ }
437
+ },
438
+ {
439
+ "Key": "Compliance",
440
+ "Value": "Compliance"
441
+ },
442
+ {
443
+ "Key": "Env",
444
+ "Value": {
445
+ "Fn::Sub": "${Env}"
446
+ }
447
+ },
448
+ {
449
+ "Key": "User",
450
+ "Value": {
451
+ "Fn::Sub": "${User}"
452
+ }
453
+ },
454
+ {
455
+ "Key": "Owner",
456
+ "Value": {
457
+ "Fn::Sub": "${Owner}"
458
+ }
459
+ },
460
+ {
461
+ "Key": "Tier",
462
+ "Value": {
463
+ "Fn::Sub": "${Tier}"
464
+ }
465
+ },
466
+ {
467
+ "Key": "Version",
468
+ "Value": {
469
+ "Fn::Sub": "${Version}"
470
+ }
471
+ },
472
+ {
473
+ "Key": "Storage",
474
+ "Value": {
475
+ "Fn::Sub": "${Storage}"
476
+ }
477
+ }
478
+ ]
479
+ }
480
+ },
481
+ "NeptuneDBClusterParameterGroup": {
482
+ "Type": "AWS::Neptune::DBClusterParameterGroup",
483
+ "Properties": {
484
+ "Description": {
485
+ "Fn::Sub": "CloudFormation managed Neptune DB Cluster Parameter Group - ${Env}-${AppName}-cluster-parameter-group"
486
+ },
487
+ "Parameters": {
488
+ "neptune_enable_audit_log": {
489
+ "Fn::If": [
490
+ "EnableAuditLogUpload",
491
+ 1,
492
+ 0
493
+ ]
494
+ }
495
+ },
496
+ "Family": "neptune1",
497
+ "Name": {
498
+ "Fn::Sub": "${Env}-${AppName}-neptune-cluster-parameter-group"
499
+ },
500
+ "Tags": [
501
+ {
502
+ "Key": "Name",
503
+ "Value": {
504
+ "Fn::Sub": "${Env}-${AppName}-cluster-parameter-group"
505
+ }
506
+ },
507
+ {
508
+ "Key": "App",
509
+ "Value": {
510
+ "Fn::Sub": "${AppName}"
511
+ }
512
+ },
513
+ {
514
+ "Key": "Compliance",
515
+ "Value": "Compliance"
516
+ },
517
+ {
518
+ "Key": "Env",
519
+ "Value": {
520
+ "Fn::Sub": "${Env}"
521
+ }
522
+ },
523
+ {
524
+ "Key": "User",
525
+ "Value": {
526
+ "Fn::Sub": "${User}"
527
+ }
528
+ },
529
+ {
530
+ "Key": "Owner",
531
+ "Value": {
532
+ "Fn::Sub": "${Owner}"
533
+ }
534
+ },
535
+ {
536
+ "Key": "Tier",
537
+ "Value": {
538
+ "Fn::Sub": "${Tier}"
539
+ }
540
+ },
541
+ {
542
+ "Key": "Version",
543
+ "Value": {
544
+ "Fn::Sub": "${Version}"
545
+ }
546
+ },
547
+ {
548
+ "Key": "Storage",
549
+ "Value": {
550
+ "Fn::Sub": "${Storage}"
551
+ }
552
+ }
553
+ ]
554
+ }
555
+ },
556
+ "NeptuneDBParameterGroup": {
557
+ "Type": "AWS::Neptune::DBParameterGroup",
558
+ "Properties": {
559
+ "Description": {
560
+ "Fn::Sub": "CloudFormation managed Neptune DB Parameter Group - ${Env}-${AppName}-parameter-group"
561
+ },
562
+ "Parameters": {
563
+ "neptune_query_timeout": {
564
+ "Ref": "NeptuneQueryTimeout"
565
+ }
566
+ },
567
+ "Family": "neptune1",
568
+ "Name": {
569
+ "Fn::Sub": "${Env}-${AppName}-parameter-group"
570
+ },
571
+ "Tags": [
572
+ {
573
+ "Key": "Name",
574
+ "Value": {
575
+ "Fn::Sub": "${Env}-${AppName}-parameter-group"
576
+ }
577
+ },
578
+ {
579
+ "Key": "App",
580
+ "Value": {
581
+ "Fn::Sub": "${AppName}"
582
+ }
583
+ },
584
+ {
585
+ "Key": "Compliance",
586
+ "Value": "Compliance"
587
+ },
588
+ {
589
+ "Key": "Env",
590
+ "Value": {
591
+ "Fn::Sub": "${Env}"
592
+ }
593
+ },
594
+ {
595
+ "Key": "User",
596
+ "Value": {
597
+ "Fn::Sub": "${User}"
598
+ }
599
+ },
600
+ {
601
+ "Key": "Owner",
602
+ "Value": {
603
+ "Fn::Sub": "${Owner}"
604
+ }
605
+ },
606
+ {
607
+ "Key": "Tier",
608
+ "Value": {
609
+ "Fn::Sub": "${Tier}"
610
+ }
611
+ },
612
+ {
613
+ "Key": "Version",
614
+ "Value": {
615
+ "Fn::Sub": "${Version}"
616
+ }
617
+ },
618
+ {
619
+ "Key": "Storage",
620
+ "Value": {
621
+ "Fn::Sub": "${Storage}"
622
+ }
623
+ }
624
+ ]
625
+ }
626
+ },
627
+ "NeptuneDBSubnetGroup": {
628
+ "Type": "AWS::Neptune::DBSubnetGroup",
629
+ "Properties": {
630
+ "DBSubnetGroupDescription": {
631
+ "Fn::Sub": "CloudFormation managed Neptune DB Subnet Group - ${Env}-${AppName}-subnet-group"
632
+ },
633
+ "DBSubnetGroupName": {
634
+ "Ref": "NeptuneDBSubnetGroupName"
635
+ },
636
+ "SubnetIds": [
637
+ {
638
+ "Fn::ImportValue": {
639
+ "Fn::Sub": "${VPCStack}-PrivateSubnet1"
640
+ }
641
+ },
642
+ {
643
+ "Fn::ImportValue": {
644
+ "Fn::Sub": "${VPCStack}-PrivateSubnet2"
645
+ }
646
+ }
647
+ ],
648
+ "Tags": [
649
+ {
650
+ "Key": "Name",
651
+ "Value": {
652
+ "Fn::Sub": "${Env}-${AppName}-subnet-group"
653
+ }
654
+ },
655
+ {
656
+ "Key": "App",
657
+ "Value": {
658
+ "Fn::Sub": "${AppName}"
659
+ }
660
+ },
661
+ {
662
+ "Key": "Compliance",
663
+ "Value": "Compliance"
664
+ },
665
+ {
666
+ "Key": "Env",
667
+ "Value": {
668
+ "Fn::Sub": "${Env}"
669
+ }
670
+ },
671
+ {
672
+ "Key": "User",
673
+ "Value": {
674
+ "Fn::Sub": "${User}"
675
+ }
676
+ },
677
+ {
678
+ "Key": "Owner",
679
+ "Value": {
680
+ "Fn::Sub": "${Owner}"
681
+ }
682
+ },
683
+ {
684
+ "Key": "Tier",
685
+ "Value": {
686
+ "Fn::Sub": "${Tier}"
687
+ }
688
+ },
689
+ {
690
+ "Key": "Version",
691
+ "Value": {
692
+ "Fn::Sub": "${Version}"
693
+ }
694
+ },
695
+ {
696
+ "Key": "Storage",
697
+ "Value": {
698
+ "Fn::Sub": "${Storage}"
699
+ }
700
+ }
701
+ ]
702
+ }
703
+ },
704
+ "NeptuneAlarmTopic": {
705
+ "Type": "AWS::SNS::Topic",
706
+ "Properties": {
707
+ "DisplayName": {
708
+ "Fn::Sub": "${AWS::StackName} alarm topic"
709
+ }
710
+ },
711
+ "Condition": "CreateSnsTopic"
712
+ },
713
+ "NeptuneAlarmSubscription": {
714
+ "Type": "AWS::SNS::Subscription",
715
+ "Properties": {
716
+ "Endpoint": {
717
+ "Ref": "SNSEmailSubscription"
718
+ },
719
+ "Protocol": "email",
720
+ "TopicArn": {
721
+ "Fn::If": [
722
+ "CreateSnsTopic",
723
+ {
724
+ "Ref": "NeptuneAlarmTopic"
725
+ },
726
+ {
727
+ "Ref": "NeptuneSNSTopicArn"
728
+ }
729
+ ]
730
+ }
731
+ },
732
+ "Condition": "CreateSnsSubscription"
733
+ },
734
+ "NeptuneRole": {
735
+ "Type": "AWS::IAM::Role",
736
+ "Properties": {
737
+ "RoleName": {
738
+ "Fn::Sub": "${Env}-${AppName}-neptune-iam-role-${AWS::Region}"
739
+ },
740
+ "AssumeRolePolicyDocument": {
741
+ "Version": "2012-10-17",
742
+ "Statement": [
743
+ {
744
+ "Effect": "Allow",
745
+ "Principal": {
746
+ "Service": [
747
+ "monitoring.rds.amazonaws.com",
748
+ "rds.amazonaws.com"
749
+ ]
750
+ },
751
+ "Action": "sts:AssumeRole"
752
+ }
753
+ ]
754
+ },
755
+ "ManagedPolicyArns": [
756
+ {
757
+ "Ref": "NeptuneCloudWatchPolicy"
758
+ },
759
+ {
760
+ "Ref": "NeptuneS3Policy"
761
+ }
762
+ ]
763
+ },
764
+ "Condition": "EnableAuditLogUpload"
765
+ },
766
+ "NeptuneCloudWatchPolicy": {
767
+ "Type": "AWS::IAM::ManagedPolicy",
768
+ "Properties": {
769
+ "Description": "Default policy for CloudWatch logs",
770
+ "ManagedPolicyName": {
771
+ "Fn::Sub": "${Env}-${AppName}-neptune-cw-policy-${AWS::Region}"
772
+ },
773
+ "PolicyDocument": {
774
+ "Version": "2012-10-17",
775
+ "Statement": [
776
+ {
777
+ "Sid": "EnableLogGroups",
778
+ "Effect": "Allow",
779
+ "Action": [
780
+ "logs:CreateLogGroup",
781
+ "logs:PutRetentionPolicy"
782
+ ],
783
+ "Resource": [
784
+ {
785
+ "Fn::Sub": "arn:${AWS::Partition}:logs:*:*:log-group:/aws/neptune/*"
786
+ }
787
+ ]
788
+ },
789
+ {
790
+ "Sid": "EnableLogStreams",
791
+ "Effect": "Allow",
792
+ "Action": [
793
+ "logs:CreateLogStream",
794
+ "logs:PutLogEvents",
795
+ "logs:DescribeLogStreams",
796
+ "logs:GetLogEvents"
797
+ ],
798
+ "Resource": [
799
+ {
800
+ "Fn::Sub": "arn:${AWS::Partition}:logs:*:*:log-group:/aws/neptune/*:log-stream:*"
801
+ }
802
+ ]
803
+ }
804
+ ]
805
+ }
806
+ }
807
+ },
808
+ "NeptuneS3Policy": {
809
+ "Type": "AWS::IAM::ManagedPolicy",
810
+ "Properties": {
811
+ "Description": "Neptune default policy for S3 access for data load",
812
+ "ManagedPolicyName": {
813
+ "Fn::Sub": "${Env}-${AppName}-neptune-s3-policy-${AWS::Region}"
814
+ },
815
+ "PolicyDocument": {
816
+ "Version": "2012-10-17",
817
+ "Statement": [
818
+ {
819
+ "Sid": "AllowNeptuneAccessToS3",
820
+ "Effect": "Allow",
821
+ "Action": [
822
+ "s3:Get*",
823
+ "s3:List*"
824
+ ],
825
+ "Resource": [
826
+ {
827
+ "Fn::Sub": "arn:${AWS::Partition}:s3:::*"
828
+ }
829
+ ]
830
+ }
831
+ ]
832
+ }
833
+ }
834
+ },
835
+ "NeptunePrimaryCpuAlarm": {
836
+ "Type": "AWS::CloudWatch::Alarm",
837
+ "Properties": {
838
+ "AlarmDescription": {
839
+ "Fn::Sub": "${Env}-${AppName} primary DB CPU over ${HighCpuAlarmThreshold}%"
840
+ },
841
+ "Namespace": "AWS/Neptune",
842
+ "MetricName": "CPUUtilization",
843
+ "Unit": "Percent",
844
+ "Statistic": "Average",
845
+ "Period": 300,
846
+ "EvaluationPeriods": 2,
847
+ "Threshold": {
848
+ "Ref": "HighCpuAlarmThreshold"
849
+ },
850
+ "ComparisonOperator": "GreaterThanOrEqualToThreshold",
851
+ "Dimensions": [
852
+ {
853
+ "Name": "DBClusterIdentifier",
854
+ "Value": {
855
+ "Ref": "NeptuneDBCluster"
856
+ }
857
+ }
858
+ ],
859
+ "AlarmActions": [
860
+ {
861
+ "Fn::If": [
862
+ "CreateSnsTopic",
863
+ {
864
+ "Ref": "NeptuneAlarmTopic"
865
+ },
866
+ {
867
+ "Ref": "NeptuneSNSTopicArn"
868
+ }
869
+ ]
870
+ }
871
+ ],
872
+ "InsufficientDataActions": [
873
+ {
874
+ "Fn::If": [
875
+ "CreateSnsTopic",
876
+ {
877
+ "Ref": "NeptuneAlarmTopic"
878
+ },
879
+ {
880
+ "Ref": "NeptuneSNSTopicArn"
881
+ }
882
+ ]
883
+ }
884
+ ]
885
+ }
886
+ },
887
+ "NeptunePrimaryMemoryAlarm": {
888
+ "Type": "AWS::CloudWatch::Alarm",
889
+ "Properties": {
890
+ "AlarmDescription": {
891
+ "Fn::Sub": "${Env}-${AppName} primary DB memory under ${LowMemoryAlarmThreshold} bytes"
892
+ },
893
+ "Namespace": "AWS/Neptune",
894
+ "MetricName": "FreeableMemory",
895
+ "Unit": "Bytes",
896
+ "Statistic": "Average",
897
+ "Period": 300,
898
+ "EvaluationPeriods": 2,
899
+ "Threshold": {
900
+ "Ref": "LowMemoryAlarmThreshold"
901
+ },
902
+ "ComparisonOperator": "LessThanOrEqualToThreshold",
903
+ "Dimensions": [
904
+ {
905
+ "Name": "DBClusterIdentifier",
906
+ "Value": {
907
+ "Ref": "NeptuneDBCluster"
908
+ }
909
+ }
910
+ ],
911
+ "AlarmActions": [
912
+ {
913
+ "Fn::If": [
914
+ "CreateSnsTopic",
915
+ {
916
+ "Ref": "NeptuneAlarmTopic"
917
+ },
918
+ {
919
+ "Ref": "NeptuneSNSTopicArn"
920
+ }
921
+ ]
922
+ }
923
+ ],
924
+ "InsufficientDataActions": [
925
+ {
926
+ "Fn::If": [
927
+ "CreateSnsTopic",
928
+ {
929
+ "Ref": "NeptuneAlarmTopic"
930
+ },
931
+ {
932
+ "Ref": "NeptuneSNSTopicArn"
933
+ }
934
+ ]
935
+ }
936
+ ]
937
+ }
938
+ },
939
+ "NeptunePrimaryGremlinRequestsPerSecAlarm": {
940
+ "Type": "AWS::CloudWatch::Alarm",
941
+ "Properties": {
942
+ "AlarmDescription": {
943
+ "Fn::Sub": "${Env}-${AppName} primary DB Gremlin Requests Per Second"
944
+ },
945
+ "Namespace": "AWS/Neptune",
946
+ "MetricName": "GremlinRequestsPerSec",
947
+ "Statistic": "Average",
948
+ "Period": 300,
949
+ "EvaluationPeriods": 2,
950
+ "Threshold": {
951
+ "Ref": "GremlinRequestsPerSecThreshold"
952
+ },
953
+ "ComparisonOperator": "GreaterThanOrEqualToThreshold",
954
+ "Dimensions": [
955
+ {
956
+ "Name": "DBClusterIdentifier",
957
+ "Value": "gremlin-cluster"
958
+ }
959
+ ],
960
+ "AlarmActions": [
961
+ {
962
+ "Fn::If": [
963
+ "CreateSnsTopic",
964
+ {
965
+ "Ref": "NeptuneAlarmTopic"
966
+ },
967
+ {
968
+ "Ref": "NeptuneSNSTopicArn"
969
+ }
970
+ ]
971
+ }
972
+ ],
973
+ "InsufficientDataActions": [
974
+ {
975
+ "Fn::If": [
976
+ "CreateSnsTopic",
977
+ {
978
+ "Ref": "NeptuneAlarmTopic"
979
+ },
980
+ {
981
+ "Ref": "NeptuneSNSTopicArn"
982
+ }
983
+ ]
984
+ }
985
+ ]
986
+ }
987
+ },
988
+ "NeptunePrimarySparqlRequestsPerSecAlarm": {
989
+ "Type": "AWS::CloudWatch::Alarm",
990
+ "Properties": {
991
+ "AlarmDescription": {
992
+ "Fn::Sub": "${Env}-${AppName} primary DB Sparql Requests Per Second"
993
+ },
994
+ "Namespace": "AWS/Neptune",
995
+ "MetricName": "SparqlRequestsPerSec",
996
+ "Statistic": "Average",
997
+ "Period": 300,
998
+ "EvaluationPeriods": 2,
999
+ "Threshold": {
1000
+ "Ref": "SparqlRequestsPerSecThreshold"
1001
+ },
1002
+ "ComparisonOperator": "GreaterThanOrEqualToThreshold",
1003
+ "Dimensions": [
1004
+ {
1005
+ "Name": "DBClusterIdentifier",
1006
+ "Value": {
1007
+ "Ref": "NeptuneDBCluster"
1008
+ }
1009
+ }
1010
+ ],
1011
+ "AlarmActions": [
1012
+ {
1013
+ "Fn::If": [
1014
+ "CreateSnsTopic",
1015
+ {
1016
+ "Ref": "NeptuneAlarmTopic"
1017
+ },
1018
+ {
1019
+ "Ref": "NeptuneSNSTopicArn"
1020
+ }
1021
+ ]
1022
+ }
1023
+ ],
1024
+ "InsufficientDataActions": [
1025
+ {
1026
+ "Fn::If": [
1027
+ "CreateSnsTopic",
1028
+ {
1029
+ "Ref": "NeptuneAlarmTopic"
1030
+ },
1031
+ {
1032
+ "Ref": "NeptuneSNSTopicArn"
1033
+ }
1034
+ ]
1035
+ }
1036
+ ]
1037
+ }
1038
+ }
1039
+ },
1040
+ "Outputs": {
1041
+ "NeptuneEndpointAddress": {
1042
+ "Description": "Neptune DB endpoint address",
1043
+ "Value": {
1044
+ "Fn::GetAtt": [
1045
+ "NeptuneDBCluster",
1046
+ "Endpoint"
1047
+ ]
1048
+ },
1049
+ "Export": {
1050
+ "Name": {
1051
+ "Fn::Sub": "${Env}-${AppName}-neptune-endpoint-address"
1052
+ }
1053
+ }
1054
+ },
1055
+ "NeptuneReadEndpointAddress": {
1056
+ "Description": "Neptune DB read-only endpoint address",
1057
+ "Value": {
1058
+ "Fn::GetAtt": [
1059
+ "NeptuneDBCluster",
1060
+ "ReadEndpoint"
1061
+ ]
1062
+ },
1063
+ "Export": {
1064
+ "Name": {
1065
+ "Fn::Sub": "${Env}-${AppName}-neptune-read-endpoint-address"
1066
+ }
1067
+ }
1068
+ },
1069
+ "NeptuneSnsTopic": {
1070
+ "Description": "Neptune SNS Topic for alarms",
1071
+ "Value": {
1072
+ "Fn::If": [
1073
+ "CreateSnsTopic",
1074
+ {
1075
+ "Ref": "NeptuneAlarmTopic"
1076
+ },
1077
+ {
1078
+ "Ref": "NeptuneSNSTopicArn"
1079
+ }
1080
+ ]
1081
+ },
1082
+ "Export": {
1083
+ "Name": {
1084
+ "Fn::Sub": "${Env}-${AppName}-neptune-sns-topic"
1085
+ }
1086
+ }
1087
+ },
1088
+ "NeptuneEndpointPort": {
1089
+ "Description": "Endpoint port",
1090
+ "Value": {
1091
+ "Fn::GetAtt": [
1092
+ "NeptuneDBCluster",
1093
+ "Port"
1094
+ ]
1095
+ },
1096
+ "Export": {
1097
+ "Name": {
1098
+ "Fn::Sub": "${Env}-${AppName}-neptune-endpoint-port"
1099
+ }
1100
+ }
1101
+ }
1102
+ }
1103
+ }
human_reference_dataset/aws-cloudformation-templates/NeptuneDB/Neptune.yaml ADDED
@@ -0,0 +1,683 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ AWSTemplateFormatVersion: "2010-09-09"
2
+
3
+ Description: AWS CloudFormation template to automatically provision AWS Neptune Graph Database through optimized CI/CD method with AWS CloudWatch and AWS SNS.
4
+
5
+ Metadata:
6
+ cfn-lint:
7
+ config:
8
+ regions:
9
+ - us-east-1
10
+ - us-west-2
11
+
12
+ AWS::CloudFormation::Interface:
13
+ ParameterGroups:
14
+ - Label:
15
+ default: Tags
16
+ Parameters:
17
+ - Env
18
+ - AppName
19
+ - User
20
+ - Owner
21
+ - Tier
22
+ - Version
23
+ - Storage
24
+ - Label:
25
+ default: Neptune Database Parameters
26
+ Parameters:
27
+ - DBInstanceClass
28
+ - DBClusterIdentifier
29
+ - MajorVersionUpgrade
30
+ - MinorVersionUpgrade
31
+ - NeptuneQueryTimeout
32
+ - StorageEncrypted
33
+ - NeptuneDBSubnetGroupName
34
+ - GremlinRequestsPerSecThreshold
35
+ - SparqlRequestsPerSecThreshold
36
+ - IAMAuthEnabled
37
+ - VPCStack
38
+ - Label:
39
+ default: Neptune Security Group Parameters
40
+ Parameters:
41
+ - Port
42
+ - Label:
43
+ default: Neptune Backup and Monitoring Parameters
44
+ Parameters:
45
+ - HighCpuAlarmThreshold
46
+ - LowMemoryAlarmThreshold
47
+ - UploadAuditLogs
48
+ - BackupRetentionPeriod
49
+ - NeptuneDBClusterPreferredMaintenanceWindow
50
+ - NeptuneDBInstancePreferredMaintenanceWindow
51
+ - NeptuneDBClusterPreferredBackupWindow
52
+ - Label:
53
+ default: Neptune Notifications Parameters
54
+ Parameters:
55
+ - NeptuneSNSTopicArn
56
+ - SNSEmailSubscription
57
+
58
+ Parameters:
59
+
60
+ # Enviornment type
61
+ Env:
62
+ Description: Please specify the target Environment. Used for tagging and resource names. Mandatory LOWER CASE.
63
+ Type: String
64
+ AllowedValues:
65
+ - test
66
+ - dev
67
+ - prod
68
+
69
+ # Application Name
70
+ Default: dev
71
+
72
+ AppName:
73
+ Description: Please specify the Application Name. Used for tagging and resource names. Mandatory LOWER CASE.
74
+ Type: String
75
+ Default: appname
76
+
77
+ # User
78
+ User:
79
+ Description: Please specify the User. Used for tagging
80
+ Type: String
81
+ Default: test
82
+
83
+ # Owner
84
+ Owner:
85
+ Description: Please specify the Owner. Used for tagging
86
+ Type: String
87
+ Default: ""
88
+
89
+ # Tier
90
+ Tier:
91
+ Description: Please specify the Tier. Used for tagging
92
+ Type: String
93
+ Default: ""
94
+
95
+ # Application Version
96
+ Version:
97
+ Description: Please specify the Application Version. Used for tagging
98
+ Type: String
99
+ Default: ""
100
+
101
+ # Storage Type
102
+ Storage:
103
+ Description: Please specify the Storage Type. Used for tagging
104
+ Type: String
105
+ AllowedValues:
106
+ - ebs
107
+ - efs
108
+ - s3
109
+
110
+ # VPC Stack Name
111
+ Default: ebs
112
+
113
+ VPCStack:
114
+ Description: Please specify the VPC Stack Name.
115
+ Type: String
116
+ Default: vpc
117
+
118
+ # Supported Neptune DB instance class
119
+ DBInstanceClass:
120
+ Description: Neptune DB instance class that will be used for primary and all replicas
121
+ Type: String
122
+ AllowedValues:
123
+ - db.r4.large
124
+ - db.r4.xlarge
125
+ - db.r4.2xlarge
126
+ - db.r4.4xlarge
127
+ - db.r4.8xlarge
128
+ Default: db.r4.large
129
+
130
+ # Neptune DB cluster identifier
131
+ DBClusterIdentifier:
132
+ Description: Neptune DB cluster identifier. Must contain from 1 to 63 alphanumeric characters or hyphens. First character must be a letter. Cannot end with a hyphen or contain two consecutive hyphens.
133
+ Type: String
134
+
135
+ # Neptune DB instance identifier
136
+ # DBInstanceIdentifier:
137
+ # Description: Neptune DB instance identifier. This is the unique key that identifies a DB instance.
138
+ # This parameter is stored as a lowercase string (e.g. mydbinstance).
139
+ # Type: String
140
+
141
+ # Port used to connect to the Neptune cluster
142
+ Port:
143
+ Description: Port used to connect to the Neptune cluster. Must be a valid port number between
144
+ Type: String
145
+ Default: 8182
146
+
147
+ # Neptune DB parameter group query timeout
148
+ NeptuneQueryTimeout:
149
+ Description: Neptune DB parameters. Allowed values "10-2147483647"
150
+ Type: String
151
+ Default: 120000
152
+
153
+ # Data at rest encryption
154
+ StorageEncrypted:
155
+ Description: Data-at-rest encryption
156
+ Type: String
157
+ AllowedValues:
158
+ - true
159
+ - false
160
+ Default: false
161
+
162
+ # Neptune DB Subnet Group Name
163
+ NeptuneDBSubnetGroupName:
164
+ Description: The name for the DB Subnet Group. This value is stored as a lowercase string. Constraints, Must contain no more than 255 letters, numbers, periods, underscores, spaces, or hyphens. Must not be default.
165
+ Type: String
166
+
167
+ # Custom SNS topic alarm
168
+ NeptuneSNSTopicArn:
169
+ Description: Custom SNS topic alarm. Optional. If not provided, an new SNS topic will be created for you
170
+ Type: String
171
+
172
+ # SNS Email subscription
173
+ SNSEmailSubscription:
174
+ Description: SNS Email subscription. Optional. If not provided, no alarm subscriptions will be created
175
+ Type: String
176
+ AllowedPattern: ^[\w-\+]+(\.[\w]+)*@[\w-]+(\.[\w]+)*(\.[a-z]{2,})$|^$
177
+
178
+ # High CPU alarm threshold
179
+ HighCpuAlarmThreshold:
180
+ Description: High CPU alarm threshold. Alert when CPU goes above this value. In percentage used
181
+ Type: String
182
+ Default: 80
183
+ AllowedPattern: (100|[1-9]?[0-9])$
184
+
185
+ # Low memory alarm threshold
186
+ LowMemoryAlarmThreshold:
187
+ Description: Low memory alarm threshold. Alert when memory falls below this value. In bytes
188
+ Type: Number
189
+ Default: 700000000
190
+
191
+ # Gremlin Requests Per Sec alarm threshold
192
+ GremlinRequestsPerSecThreshold:
193
+ Description: Gremlin Requests Per Sec alarm threshold. Alert when Gremlin Requests Per Sec goes above this value. In percentage used
194
+ Type: String
195
+ Default: 10000
196
+
197
+ # Sparql Requests Per Sec alarm threshold
198
+ SparqlRequestsPerSecThreshold:
199
+ Description: Sparql Requests Per Sec alarm threshold. Alert when Sparql Requests Per Sec goes above this value. In percentage used
200
+ Type: String
201
+ Default: 10000
202
+
203
+ # Enable upload of audit logs?
204
+ UploadAuditLogs:
205
+ Description: Enable upload of audit logs?
206
+ Type: String
207
+ AllowedValues:
208
+ - Yes
209
+ - No
210
+ Default: Yes
211
+
212
+ # Backup retention period (in days)
213
+ BackupRetentionPeriod:
214
+ Description: Backup retention period (in days). Must be between 1 - 35
215
+ Type: String
216
+ Default: 31
217
+ AllowedPattern: ([1-9]|[12][0-9]|3[0-5])
218
+
219
+ # Neptune DB cluster maintenace window
220
+ NeptuneDBClusterPreferredMaintenanceWindow:
221
+ Description: Neptune DB cluster preferred maintenance window. Format - ddd:hh24:mi-ddd:hh24:mi. Valid Days - Mon, Tue, Wed, Thu, Fri, Sat, Sun. Constraints - Minimum 30-minute window.
222
+ Type: String
223
+ Default: mon:03:00-mon:04:00
224
+
225
+ # Neptune DB instance maintenace window
226
+ NeptuneDBInstancePreferredMaintenanceWindow:
227
+ Description: Neptune DB instance preferred maintenance window. Format - ddd:hh24:mi-ddd:hh24:mi. Valid Days - Mon, Tue, Wed, Thu, Fri, Sat, Sun. Constraints - Minimum 30-minute window.
228
+ Type: String
229
+ Default: mon:03:00-mon:04:00
230
+
231
+ # Neptune DB cluster backup window
232
+ NeptuneDBClusterPreferredBackupWindow:
233
+ Description: Neptune DB cluster preferred backup window. Constrains - Must be in the format hh24:mi-hh24:mi. Must be in Universal Coordinated Time (UTC). Must not conflict with the preferred maintenance window. Must be at least 30 minutes.
234
+ Type: String
235
+ Default: 02:00-03:00
236
+
237
+ # Maintenance - Major version upgrade
238
+ MajorVersionUpgrade:
239
+ Description: Neptune DB major version upgrade
240
+ Type: String
241
+ AllowedValues:
242
+ - true
243
+ - false
244
+ Default: true
245
+
246
+ # Maintenance - Minor version upgrade
247
+ MinorVersionUpgrade:
248
+ Description: Neptune DB minor version upgrade
249
+ Type: String
250
+ AllowedValues:
251
+ - true
252
+ - false
253
+ Default: true
254
+
255
+ # Enable IAM Neptune DB authentication
256
+ IAMAuthEnabled:
257
+ Description: Neptune DB IAM authentication
258
+ Type: String
259
+ AllowedValues:
260
+ - true
261
+ - false
262
+ Default: false
263
+
264
+ Conditions:
265
+
266
+ # Enable audit log uploads to CloudWatch Logs?
267
+ EnableAuditLogUpload: !Equals
268
+ - !Ref UploadAuditLogs
269
+ - Yes
270
+
271
+ # Create an SNS topic?
272
+ CreateSnsTopic: !Equals
273
+ - !Ref NeptuneSNSTopicArn
274
+ - ""
275
+
276
+ # Create an SNS subscription?
277
+ CreateSnsSubscription: !Not
278
+ - !Equals
279
+ - !Ref SNSEmailSubscription
280
+ - ""
281
+
282
+ Resources:
283
+ NeptuneDBSG:
284
+ Type: AWS::EC2::SecurityGroup
285
+ Properties:
286
+ GroupDescription: SG of Neptune DB
287
+ VpcId: !ImportValue
288
+ Fn::Sub: ${VPCStack}-VPCID
289
+ Tags:
290
+ - Key: Name
291
+ Value: !Sub ${AWS::StackName}-neptune-sg
292
+
293
+ ### Neptune DB setup ###
294
+ # Neptune DB Cluster
295
+ NeptuneDBCluster:
296
+ Type: AWS::Neptune::DBCluster
297
+ DependsOn: NeptuneDBSG
298
+ Properties:
299
+
300
+ # AvailabilityZones: !GetAZs ''
301
+ BackupRetentionPeriod: !Ref BackupRetentionPeriod
302
+ DBClusterIdentifier: !Ref DBClusterIdentifier
303
+ DBClusterParameterGroupName: !Ref NeptuneDBClusterParameterGroup
304
+ DBSubnetGroupName: !Ref NeptuneDBSubnetGroup
305
+ IamAuthEnabled: !Ref IAMAuthEnabled
306
+ DBPort: !Ref Port
307
+ PreferredBackupWindow: !Ref NeptuneDBClusterPreferredBackupWindow
308
+ PreferredMaintenanceWindow: !Ref NeptuneDBClusterPreferredMaintenanceWindow
309
+
310
+ # SnapshotIdentifier: # Enable for the DB cluster snapshot from which you want to restore
311
+ StorageEncrypted: !Ref StorageEncrypted
312
+
313
+ # KmsKeyId:
314
+ # Fn::ImportValue: !Sub 'UPDATE_HERE"
315
+ VpcSecurityGroupIds:
316
+ - !Ref NeptuneDBSG
317
+
318
+ # - Fn::ImportValue: !Sub 'UPDATE_HERE" # Valid [list] of security groups (IDs) must be spceified, Otherwise stack deployment will fail.
319
+ Tags:
320
+ - Key: Name
321
+ Value: !Sub ${Env}-${AppName}-Cluster
322
+ - Key: App
323
+ Value: !Sub ${AppName}
324
+ - Key: Compliance
325
+ Value: Compliance
326
+ - Key: Env
327
+ Value: !Sub ${Env}
328
+ - Key: User
329
+ Value: !Sub ${User}
330
+ - Key: Owner
331
+ Value: !Sub ${Owner}
332
+ - Key: Tier
333
+ Value: !Sub ${Tier}
334
+ - Key: Version
335
+ Value: !Sub ${Version}
336
+ - Key: Storage
337
+ Value: !Sub ${Storage}
338
+
339
+ # Neptune DB instance
340
+ NeptuneDBInstance:
341
+ Type: AWS::Neptune::DBInstance
342
+ Properties:
343
+ AllowMajorVersionUpgrade: !Ref MajorVersionUpgrade
344
+ AutoMinorVersionUpgrade: !Ref MinorVersionUpgrade
345
+ DBClusterIdentifier: !Ref NeptuneDBCluster #Note: If you specify this property, the default deletion policy is Delete. Otherwise, the default deletion policy is Snapshot.
346
+ DBInstanceClass: !Ref DBInstanceClass
347
+
348
+ # DBInstanceIdentifier: !Ref DBInstanceIdentifier #Note: If you specify a name, you cannot perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you must replace the resource, specify a new name.
349
+ DBParameterGroupName: !Ref NeptuneDBParameterGroup
350
+
351
+ # DBSnapshotIdentifier: # Enable for the DB cluster snapshot from which you want to restore
352
+ DBSubnetGroupName: !Ref NeptuneDBSubnetGroup
353
+ PreferredMaintenanceWindow: !Ref NeptuneDBInstancePreferredMaintenanceWindow
354
+ Tags:
355
+ - Key: Name
356
+ Value: !Sub ${Env}-${AppName}-Instance
357
+ - Key: App
358
+ Value: !Sub ${AppName}
359
+ - Key: Compliance
360
+ Value: Compliance
361
+ - Key: Env
362
+ Value: !Sub ${Env}
363
+ - Key: User
364
+ Value: !Sub ${User}
365
+ - Key: Owner
366
+ Value: !Sub ${Owner}
367
+ - Key: Tier
368
+ Value: !Sub ${Tier}
369
+ - Key: Version
370
+ Value: !Sub ${Version}
371
+ - Key: Storage
372
+ Value: !Sub ${Storage}
373
+
374
+ # Neptune DB cluster parameter group
375
+ NeptuneDBClusterParameterGroup:
376
+ Type: AWS::Neptune::DBClusterParameterGroup
377
+ Properties:
378
+ Description: !Sub CloudFormation managed Neptune DB Cluster Parameter Group - ${Env}-${AppName}-cluster-parameter-group
379
+ Parameters:
380
+ neptune_enable_audit_log: !If
381
+ - EnableAuditLogUpload
382
+ - 1
383
+ - 0
384
+ Family: neptune1
385
+ Name: !Sub ${Env}-${AppName}-neptune-cluster-parameter-group
386
+ Tags:
387
+ - Key: Name
388
+ Value: !Sub ${Env}-${AppName}-cluster-parameter-group
389
+ - Key: App
390
+ Value: !Sub ${AppName}
391
+ - Key: Compliance
392
+ Value: Compliance
393
+ - Key: Env
394
+ Value: !Sub ${Env}
395
+ - Key: User
396
+ Value: !Sub ${User}
397
+ - Key: Owner
398
+ Value: !Sub ${Owner}
399
+ - Key: Tier
400
+ Value: !Sub ${Tier}
401
+ - Key: Version
402
+ Value: !Sub ${Version}
403
+ - Key: Storage
404
+ Value: !Sub ${Storage}
405
+
406
+ # Neptune DB parameter group
407
+ NeptuneDBParameterGroup:
408
+ Type: AWS::Neptune::DBParameterGroup
409
+ Properties:
410
+ Description: !Sub CloudFormation managed Neptune DB Parameter Group - ${Env}-${AppName}-parameter-group
411
+ Parameters:
412
+ neptune_query_timeout: !Ref NeptuneQueryTimeout
413
+ Family: neptune1
414
+ Name: !Sub ${Env}-${AppName}-parameter-group
415
+ Tags:
416
+ - Key: Name
417
+ Value: !Sub ${Env}-${AppName}-parameter-group
418
+ - Key: App
419
+ Value: !Sub ${AppName}
420
+ - Key: Compliance
421
+ Value: Compliance
422
+ - Key: Env
423
+ Value: !Sub ${Env}
424
+ - Key: User
425
+ Value: !Sub ${User}
426
+ - Key: Owner
427
+ Value: !Sub ${Owner}
428
+ - Key: Tier
429
+ Value: !Sub ${Tier}
430
+ - Key: Version
431
+ Value: !Sub ${Version}
432
+ - Key: Storage
433
+ Value: !Sub ${Storage}
434
+
435
+ # Neptune DB subnet group
436
+ NeptuneDBSubnetGroup:
437
+ Type: AWS::Neptune::DBSubnetGroup
438
+ Properties:
439
+ DBSubnetGroupDescription: !Sub CloudFormation managed Neptune DB Subnet Group - ${Env}-${AppName}-subnet-group
440
+ DBSubnetGroupName: !Ref NeptuneDBSubnetGroupName
441
+ SubnetIds:
442
+ - !ImportValue
443
+ Fn::Sub: ${VPCStack}-PrivateSubnet1
444
+ - !ImportValue
445
+ Fn::Sub: ${VPCStack}-PrivateSubnet2
446
+ Tags:
447
+ - Key: Name
448
+ Value: !Sub ${Env}-${AppName}-subnet-group
449
+ - Key: App
450
+ Value: !Sub ${AppName}
451
+ - Key: Compliance
452
+ Value: Compliance
453
+ - Key: Env
454
+ Value: !Sub ${Env}
455
+ - Key: User
456
+ Value: !Sub ${User}
457
+ - Key: Owner
458
+ Value: !Sub ${Owner}
459
+ - Key: Tier
460
+ Value: !Sub ${Tier}
461
+ - Key: Version
462
+ Value: !Sub ${Version}
463
+ - Key: Storage
464
+ Value: !Sub ${Storage}
465
+
466
+ ### SNS Topic setup ###
467
+ # Optional SNS topic for alarms
468
+ NeptuneAlarmTopic:
469
+ Type: AWS::SNS::Topic
470
+ Properties:
471
+ DisplayName: !Sub ${AWS::StackName} alarm topic
472
+ Condition: CreateSnsTopic
473
+
474
+ # Optional SNS subscription for alarms
475
+ NeptuneAlarmSubscription:
476
+ Type: AWS::SNS::Subscription
477
+ Properties:
478
+ Endpoint: !Ref SNSEmailSubscription
479
+ Protocol: email
480
+ TopicArn: !If
481
+ - CreateSnsTopic
482
+ - !Ref NeptuneAlarmTopic
483
+ - !Ref NeptuneSNSTopicArn
484
+
485
+ ### IAM Role ###
486
+ Condition: CreateSnsSubscription
487
+
488
+ # Neptune IAM role - allows access to CloudWatch Logs and S3
489
+ NeptuneRole:
490
+ Type: AWS::IAM::Role
491
+ Properties:
492
+ RoleName: !Sub ${Env}-${AppName}-neptune-iam-role-${AWS::Region}
493
+ AssumeRolePolicyDocument:
494
+ Version: "2012-10-17"
495
+ Statement:
496
+ - Effect: Allow
497
+ Principal:
498
+ Service:
499
+ - monitoring.rds.amazonaws.com
500
+ - rds.amazonaws.com
501
+ Action: sts:AssumeRole
502
+ ManagedPolicyArns:
503
+ - !Ref NeptuneCloudWatchPolicy
504
+ - !Ref NeptuneS3Policy
505
+ Condition: EnableAuditLogUpload
506
+
507
+ # Neptune CloudWatch policy
508
+ NeptuneCloudWatchPolicy:
509
+ Type: AWS::IAM::ManagedPolicy
510
+ Properties:
511
+ Description: Default policy for CloudWatch logs
512
+ ManagedPolicyName: !Sub ${Env}-${AppName}-neptune-cw-policy-${AWS::Region}
513
+ PolicyDocument:
514
+ Version: "2012-10-17"
515
+ Statement:
516
+ - Sid: EnableLogGroups
517
+ Effect: Allow
518
+ Action:
519
+ - logs:CreateLogGroup
520
+ - logs:PutRetentionPolicy
521
+ Resource:
522
+ - !Sub arn:${AWS::Partition}:logs:*:*:log-group:/aws/neptune/*
523
+ - Sid: EnableLogStreams
524
+ Effect: Allow
525
+ Action:
526
+ - logs:CreateLogStream
527
+ - logs:PutLogEvents
528
+ - logs:DescribeLogStreams
529
+ - logs:GetLogEvents
530
+ Resource:
531
+ - !Sub arn:${AWS::Partition}:logs:*:*:log-group:/aws/neptune/*:log-stream:*
532
+
533
+ # Neptune S3 policy for acess to the data sets
534
+ NeptuneS3Policy:
535
+ Type: AWS::IAM::ManagedPolicy
536
+ Properties:
537
+ Description: Neptune default policy for S3 access for data load
538
+ ManagedPolicyName: !Sub ${Env}-${AppName}-neptune-s3-policy-${AWS::Region}
539
+ PolicyDocument:
540
+ Version: "2012-10-17"
541
+ Statement:
542
+ - Sid: AllowNeptuneAccessToS3
543
+ Effect: Allow
544
+ Action:
545
+ - s3:Get*
546
+ - s3:List*
547
+ Resource:
548
+ - !Sub arn:${AWS::Partition}:s3:::* # S3 Bucket needs to be added here
549
+
550
+ ### CloudWatch Alarms setup ###
551
+ # Neptune DB Primary Instance - CPU alarm
552
+ NeptunePrimaryCpuAlarm:
553
+ Type: AWS::CloudWatch::Alarm
554
+ Properties:
555
+ AlarmDescription: !Sub ${Env}-${AppName} primary DB CPU over ${HighCpuAlarmThreshold}%
556
+ Namespace: AWS/Neptune
557
+ MetricName: CPUUtilization
558
+ Unit: Percent
559
+ Statistic: Average
560
+ Period: 300
561
+ EvaluationPeriods: 2
562
+ Threshold: !Ref HighCpuAlarmThreshold
563
+ ComparisonOperator: GreaterThanOrEqualToThreshold
564
+ Dimensions:
565
+ - Name: DBClusterIdentifier
566
+ Value: !Ref NeptuneDBCluster
567
+ AlarmActions:
568
+ - !If
569
+ - CreateSnsTopic
570
+ - !Ref NeptuneAlarmTopic
571
+ - !Ref NeptuneSNSTopicArn
572
+ InsufficientDataActions:
573
+ - !If
574
+ - CreateSnsTopic
575
+ - !Ref NeptuneAlarmTopic
576
+ - !Ref NeptuneSNSTopicArn
577
+
578
+ # Neptune DB Primary Instance - memory alarm
579
+ NeptunePrimaryMemoryAlarm:
580
+ Type: AWS::CloudWatch::Alarm
581
+ Properties:
582
+ AlarmDescription: !Sub ${Env}-${AppName} primary DB memory under ${LowMemoryAlarmThreshold} bytes
583
+ Namespace: AWS/Neptune
584
+ MetricName: FreeableMemory
585
+ Unit: Bytes
586
+ Statistic: Average
587
+ Period: 300
588
+ EvaluationPeriods: 2
589
+ Threshold: !Ref LowMemoryAlarmThreshold
590
+ ComparisonOperator: LessThanOrEqualToThreshold
591
+ Dimensions:
592
+ - Name: DBClusterIdentifier
593
+ Value: !Ref NeptuneDBCluster
594
+ AlarmActions:
595
+ - !If
596
+ - CreateSnsTopic
597
+ - !Ref NeptuneAlarmTopic
598
+ - !Ref NeptuneSNSTopicArn
599
+ InsufficientDataActions:
600
+ - !If
601
+ - CreateSnsTopic
602
+ - !Ref NeptuneAlarmTopic
603
+ - !Ref NeptuneSNSTopicArn
604
+
605
+ # Neptune DB Primary Instance - Gremlin Requests Per Second alarm
606
+ NeptunePrimaryGremlinRequestsPerSecAlarm:
607
+ Type: AWS::CloudWatch::Alarm
608
+ Properties:
609
+ AlarmDescription: !Sub ${Env}-${AppName} primary DB Gremlin Requests Per Second
610
+ Namespace: AWS/Neptune
611
+ MetricName: GremlinRequestsPerSec
612
+ Statistic: Average
613
+ Period: 300
614
+ EvaluationPeriods: 2
615
+ Threshold: !Ref GremlinRequestsPerSecThreshold
616
+ ComparisonOperator: GreaterThanOrEqualToThreshold
617
+ Dimensions:
618
+ - Name: DBClusterIdentifier
619
+ Value: gremlin-cluster
620
+ AlarmActions:
621
+ - !If
622
+ - CreateSnsTopic
623
+ - !Ref NeptuneAlarmTopic
624
+ - !Ref NeptuneSNSTopicArn
625
+ InsufficientDataActions:
626
+ - !If
627
+ - CreateSnsTopic
628
+ - !Ref NeptuneAlarmTopic
629
+ - !Ref NeptuneSNSTopicArn
630
+
631
+ # Neptune DB Primary Instance - Sparql Requests Per Second alarm
632
+ NeptunePrimarySparqlRequestsPerSecAlarm:
633
+ Type: AWS::CloudWatch::Alarm
634
+ Properties:
635
+ AlarmDescription: !Sub ${Env}-${AppName} primary DB Sparql Requests Per Second
636
+ Namespace: AWS/Neptune
637
+ MetricName: SparqlRequestsPerSec
638
+ Statistic: Average
639
+ Period: 300
640
+ EvaluationPeriods: 2
641
+ Threshold: !Ref SparqlRequestsPerSecThreshold
642
+ ComparisonOperator: GreaterThanOrEqualToThreshold
643
+ Dimensions:
644
+ - Name: DBClusterIdentifier
645
+ Value: !Ref NeptuneDBCluster
646
+ AlarmActions:
647
+ - !If
648
+ - CreateSnsTopic
649
+ - !Ref NeptuneAlarmTopic
650
+ - !Ref NeptuneSNSTopicArn
651
+ InsufficientDataActions:
652
+ - !If
653
+ - CreateSnsTopic
654
+ - !Ref NeptuneAlarmTopic
655
+ - !Ref NeptuneSNSTopicArn
656
+
657
+ Outputs:
658
+ NeptuneEndpointAddress:
659
+ Description: Neptune DB endpoint address
660
+ Value: !GetAtt NeptuneDBCluster.Endpoint
661
+ Export:
662
+ Name: !Sub ${Env}-${AppName}-neptune-endpoint-address
663
+
664
+ NeptuneReadEndpointAddress:
665
+ Description: Neptune DB read-only endpoint address
666
+ Value: !GetAtt NeptuneDBCluster.ReadEndpoint
667
+ Export:
668
+ Name: !Sub ${Env}-${AppName}-neptune-read-endpoint-address
669
+
670
+ NeptuneSnsTopic:
671
+ Description: Neptune SNS Topic for alarms
672
+ Value: !If
673
+ - CreateSnsTopic
674
+ - !Ref NeptuneAlarmTopic
675
+ - !Ref NeptuneSNSTopicArn
676
+ Export:
677
+ Name: !Sub ${Env}-${AppName}-neptune-sns-topic
678
+
679
+ NeptuneEndpointPort:
680
+ Description: Endpoint port
681
+ Value: !GetAtt NeptuneDBCluster.Port
682
+ Export:
683
+ Name: !Sub ${Env}-${AppName}-neptune-endpoint-port
human_reference_dataset/aws-cloudformation-templates/NeptuneDB/README.md ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # AWS CloudFormation template to automatically provision AWS Neptune Graph Database through optimized CI/CD method with AWS CloudWatch and AWS SNS
2
+
3
+ ## Issue
4
+ AWS NeptuneDB requires many manual steps in order to be configured.
5
+
6
+ ## Short Description
7
+ CI/CD optimized AWS CloudFormation Sample Template for AWS NeptuneDB creation.
8
+
9
+ ## Resolution
10
+ Using this AWS CloudFormation Template Example enables CI/CD optimized and automated deployment of all necessary components while provides the flexibility with variety of defined variables.
11
+
12
+ ## Instructions
13
+
14
+ Deploy AWS CloudFormation template sample for AWS NeptuneDB.