skuba 4.3.1 → 4.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/jest/moduleNameMapper.test.ts +7 -8
  2. package/lib/api/jest/index.d.ts +4 -5
  3. package/lib/api/jest/index.js.map +1 -1
  4. package/lib/cli/configure/ensureTemplateCompletion.js +2 -2
  5. package/lib/cli/configure/ensureTemplateCompletion.js.map +1 -1
  6. package/lib/cli/configure/modules/tsconfig.js +3 -2
  7. package/lib/cli/configure/modules/tsconfig.js.map +1 -1
  8. package/lib/cli/configure/processing/package.d.ts +1 -1
  9. package/lib/cli/configure/processing/package.js +8 -10
  10. package/lib/cli/configure/processing/package.js.map +1 -1
  11. package/package.json +14 -12
  12. package/template/base/_.eslintignore +5 -2
  13. package/template/base/_.gitignore +3 -2
  14. package/template/base/_.prettierignore +5 -2
  15. package/template/express-rest-api/package.json +1 -1
  16. package/template/koa-rest-api/package.json +3 -3
  17. package/template/koa-rest-api/src/api/jobs/postJob.test.ts +7 -3
  18. package/template/koa-rest-api/src/framework/server.test.ts +18 -18
  19. package/template/koa-rest-api/src/framework/validation.test.ts +15 -6
  20. package/template/lambda-sqs-worker/package.json +1 -1
  21. package/template/lambda-sqs-worker/src/app.test.ts +7 -7
  22. package/template/lambda-sqs-worker/src/framework/handler.test.ts +3 -3
  23. package/template/lambda-sqs-worker/src/framework/validation.test.ts +17 -10
  24. package/template/lambda-sqs-worker/src/services/jobScorer.test.ts +2 -2
  25. package/template/lambda-sqs-worker/src/services/pipelineEventSender.test.ts +1 -1
  26. package/template/lambda-sqs-worker-cdk/infra/__snapshots__/appStack.test.ts.snap +220 -220
  27. package/template/oss-npm-package/_package.json +1 -1
  28. package/template/private-npm-package/_package.json +1 -1
@@ -1,29 +1,29 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`returns expected CloudFormation stack for dev 1`] = `
4
- Object {
5
- "Resources": Object {
6
- "kmskey49FBC3B3": Object {
4
+ {
5
+ "Resources": {
6
+ "kmskey49FBC3B3": {
7
7
  "DeletionPolicy": "Retain",
8
- "Properties": Object {
8
+ "Properties": {
9
9
  "Description": "serviceName",
10
10
  "EnableKeyRotation": true,
11
- "KeyPolicy": Object {
12
- "Statement": Array [
13
- Object {
11
+ "KeyPolicy": {
12
+ "Statement": [
13
+ {
14
14
  "Action": "kms:*",
15
15
  "Effect": "Allow",
16
- "Principal": Object {
17
- "AWS": Object {
18
- "Fn::Join": Array [
16
+ "Principal": {
17
+ "AWS": {
18
+ "Fn::Join": [
19
19
  "",
20
- Array [
20
+ [
21
21
  "arn:",
22
- Object {
22
+ {
23
23
  "Ref": "AWS::Partition",
24
24
  },
25
25
  ":iam::",
26
- Object {
26
+ {
27
27
  "Ref": "AWS::AccountId",
28
28
  },
29
29
  ":root",
@@ -33,8 +33,8 @@ Object {
33
33
  },
34
34
  "Resource": "*",
35
35
  },
36
- Object {
37
- "Action": Array [
36
+ {
37
+ "Action": [
38
38
  "kms:Create*",
39
39
  "kms:Describe*",
40
40
  "kms:Enable*",
@@ -51,17 +51,17 @@ Object {
51
51
  "kms:CancelKeyDeletion",
52
52
  ],
53
53
  "Effect": "Allow",
54
- "Principal": Object {
55
- "AWS": Object {
56
- "Fn::Join": Array [
54
+ "Principal": {
55
+ "AWS": {
56
+ "Fn::Join": [
57
57
  "",
58
- Array [
58
+ [
59
59
  "arn:",
60
- Object {
60
+ {
61
61
  "Ref": "AWS::Partition",
62
62
  },
63
63
  ":iam::",
64
- Object {
64
+ {
65
65
  "Ref": "AWS::AccountId",
66
66
  },
67
67
  ":root",
@@ -71,24 +71,24 @@ Object {
71
71
  },
72
72
  "Resource": "*",
73
73
  },
74
- Object {
75
- "Action": Array [
74
+ {
75
+ "Action": [
76
76
  "kms:Encrypt",
77
77
  "kms:ReEncrypt*",
78
78
  "kms:GenerateDataKey*",
79
79
  ],
80
80
  "Effect": "Allow",
81
- "Principal": Object {
82
- "AWS": Object {
83
- "Fn::Join": Array [
81
+ "Principal": {
82
+ "AWS": {
83
+ "Fn::Join": [
84
84
  "",
85
- Array [
85
+ [
86
86
  "arn:",
87
- Object {
87
+ {
88
88
  "Ref": "AWS::Partition",
89
89
  },
90
90
  ":iam::",
91
- Object {
91
+ {
92
92
  "Ref": "AWS::AccountId",
93
93
  },
94
94
  ":root",
@@ -98,13 +98,13 @@ Object {
98
98
  },
99
99
  "Resource": "*",
100
100
  },
101
- Object {
102
- "Action": Array [
101
+ {
102
+ "Action": [
103
103
  "kms:Decrypt",
104
104
  "kms:GenerateDataKey",
105
105
  ],
106
106
  "Effect": "Allow",
107
- "Principal": Object {
107
+ "Principal": {
108
108
  "Service": "sns.amazonaws.com",
109
109
  },
110
110
  "Resource": "*",
@@ -116,11 +116,11 @@ Object {
116
116
  "Type": "AWS::KMS::Key",
117
117
  "UpdateReplacePolicy": "Retain",
118
118
  },
119
- "kmskeyAlias39245779": Object {
120
- "Properties": Object {
119
+ "kmskeyAlias39245779": {
120
+ "Properties": {
121
121
  "AliasName": "alias/seek/self/serviceName",
122
- "TargetKeyId": Object {
123
- "Fn::GetAtt": Array [
122
+ "TargetKeyId": {
123
+ "Fn::GetAtt": [
124
124
  "kmskey49FBC3B3",
125
125
  "Arn",
126
126
  ],
@@ -128,10 +128,10 @@ Object {
128
128
  },
129
129
  "Type": "AWS::KMS::Alias",
130
130
  },
131
- "topic69831491": Object {
132
- "Properties": Object {
133
- "KmsMasterKeyId": Object {
134
- "Fn::GetAtt": Array [
131
+ "topic69831491": {
132
+ "Properties": {
133
+ "KmsMasterKeyId": {
134
+ "Fn::GetAtt": [
135
135
  "kmskey49FBC3B3",
136
136
  "Arn",
137
137
  ],
@@ -140,23 +140,23 @@ Object {
140
140
  },
141
141
  "Type": "AWS::SNS::Topic",
142
142
  },
143
- "worker28EA3E30": Object {
144
- "DependsOn": Array [
143
+ "worker28EA3E30": {
144
+ "DependsOn": [
145
145
  "workerServiceRoleDefaultPolicyBA498553",
146
146
  "workerServiceRole2130CC7F",
147
147
  ],
148
- "Properties": Object {
149
- "Architectures": Array [
148
+ "Properties": {
149
+ "Architectures": [
150
150
  "arm64",
151
151
  ],
152
- "Code": Object {
153
- "S3Bucket": Object {
152
+ "Code": {
153
+ "S3Bucket": {
154
154
  "Fn::Sub": "cdk-hnb659fds-assets-\${AWS::AccountId}-\${AWS::Region}",
155
155
  },
156
156
  "S3Key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.zip",
157
157
  },
158
- "Environment": Object {
159
- "Variables": Object {
158
+ "Environment": {
159
+ "Variables": {
160
160
  "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1",
161
161
  "NODE_ENV": "production",
162
162
  "NODE_OPTIONS": "--enable-source-maps",
@@ -165,14 +165,14 @@ Object {
165
165
  },
166
166
  "FunctionName": "serviceName",
167
167
  "Handler": "app.handler",
168
- "KmsKeyArn": Object {
169
- "Fn::GetAtt": Array [
168
+ "KmsKeyArn": {
169
+ "Fn::GetAtt": [
170
170
  "kmskey49FBC3B3",
171
171
  "Arn",
172
172
  ],
173
173
  },
174
- "Role": Object {
175
- "Fn::GetAtt": Array [
174
+ "Role": {
175
+ "Fn::GetAtt": [
176
176
  "workerServiceRole2130CC7F",
177
177
  "Arn",
178
178
  ],
@@ -181,27 +181,27 @@ Object {
181
181
  },
182
182
  "Type": "AWS::Lambda::Function",
183
183
  },
184
- "workerServiceRole2130CC7F": Object {
185
- "Properties": Object {
186
- "AssumeRolePolicyDocument": Object {
187
- "Statement": Array [
188
- Object {
184
+ "workerServiceRole2130CC7F": {
185
+ "Properties": {
186
+ "AssumeRolePolicyDocument": {
187
+ "Statement": [
188
+ {
189
189
  "Action": "sts:AssumeRole",
190
190
  "Effect": "Allow",
191
- "Principal": Object {
191
+ "Principal": {
192
192
  "Service": "lambda.amazonaws.com",
193
193
  },
194
194
  },
195
195
  ],
196
196
  "Version": "2012-10-17",
197
197
  },
198
- "ManagedPolicyArns": Array [
199
- Object {
200
- "Fn::Join": Array [
198
+ "ManagedPolicyArns": [
199
+ {
200
+ "Fn::Join": [
201
201
  "",
202
- Array [
202
+ [
203
203
  "arn:",
204
- Object {
204
+ {
205
205
  "Ref": "AWS::Partition",
206
206
  },
207
207
  ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole",
@@ -212,12 +212,12 @@ Object {
212
212
  },
213
213
  "Type": "AWS::IAM::Role",
214
214
  },
215
- "workerServiceRoleDefaultPolicyBA498553": Object {
216
- "Properties": Object {
217
- "PolicyDocument": Object {
218
- "Statement": Array [
219
- Object {
220
- "Action": Array [
215
+ "workerServiceRoleDefaultPolicyBA498553": {
216
+ "Properties": {
217
+ "PolicyDocument": {
218
+ "Statement": [
219
+ {
220
+ "Action": [
221
221
  "sqs:ReceiveMessage",
222
222
  "sqs:ChangeMessageVisibility",
223
223
  "sqs:GetQueueUrl",
@@ -225,18 +225,18 @@ Object {
225
225
  "sqs:GetQueueAttributes",
226
226
  ],
227
227
  "Effect": "Allow",
228
- "Resource": Object {
229
- "Fn::GetAtt": Array [
228
+ "Resource": {
229
+ "Fn::GetAtt": [
230
230
  "workerqueueA05CE5C6",
231
231
  "Arn",
232
232
  ],
233
233
  },
234
234
  },
235
- Object {
235
+ {
236
236
  "Action": "kms:Decrypt",
237
237
  "Effect": "Allow",
238
- "Resource": Object {
239
- "Fn::GetAtt": Array [
238
+ "Resource": {
239
+ "Fn::GetAtt": [
240
240
  "kmskey49FBC3B3",
241
241
  "Arn",
242
242
  ],
@@ -246,41 +246,41 @@ Object {
246
246
  "Version": "2012-10-17",
247
247
  },
248
248
  "PolicyName": "workerServiceRoleDefaultPolicyBA498553",
249
- "Roles": Array [
250
- Object {
249
+ "Roles": [
250
+ {
251
251
  "Ref": "workerServiceRole2130CC7F",
252
252
  },
253
253
  ],
254
254
  },
255
255
  "Type": "AWS::IAM::Policy",
256
256
  },
257
- "workerSqsEventSourceappStackworkerqueue8281B9F47B9F582B": Object {
258
- "Properties": Object {
259
- "EventSourceArn": Object {
260
- "Fn::GetAtt": Array [
257
+ "workerSqsEventSourceappStackworkerqueue8281B9F47B9F582B": {
258
+ "Properties": {
259
+ "EventSourceArn": {
260
+ "Fn::GetAtt": [
261
261
  "workerqueueA05CE5C6",
262
262
  "Arn",
263
263
  ],
264
264
  },
265
- "FunctionName": Object {
265
+ "FunctionName": {
266
266
  "Ref": "worker28EA3E30",
267
267
  },
268
268
  },
269
269
  "Type": "AWS::Lambda::EventSourceMapping",
270
270
  },
271
- "workerqueueA05CE5C6": Object {
271
+ "workerqueueA05CE5C6": {
272
272
  "DeletionPolicy": "Delete",
273
- "Properties": Object {
274
- "KmsMasterKeyId": Object {
275
- "Fn::GetAtt": Array [
273
+ "Properties": {
274
+ "KmsMasterKeyId": {
275
+ "Fn::GetAtt": [
276
276
  "kmskey49FBC3B3",
277
277
  "Arn",
278
278
  ],
279
279
  },
280
280
  "QueueName": "serviceName",
281
- "RedrivePolicy": Object {
282
- "deadLetterTargetArn": Object {
283
- "Fn::GetAtt": Array [
281
+ "RedrivePolicy": {
282
+ "deadLetterTargetArn": {
283
+ "Fn::GetAtt": [
284
284
  "workerqueuedlq42262778",
285
285
  "Arn",
286
286
  ],
@@ -291,25 +291,25 @@ Object {
291
291
  "Type": "AWS::SQS::Queue",
292
292
  "UpdateReplacePolicy": "Delete",
293
293
  },
294
- "workerqueuePolicy97054CB4": Object {
295
- "Properties": Object {
296
- "PolicyDocument": Object {
297
- "Statement": Array [
298
- Object {
294
+ "workerqueuePolicy97054CB4": {
295
+ "Properties": {
296
+ "PolicyDocument": {
297
+ "Statement": [
298
+ {
299
299
  "Action": "sqs:SendMessage",
300
- "Condition": Object {
301
- "ArnEquals": Object {
302
- "aws:SourceArn": Object {
300
+ "Condition": {
301
+ "ArnEquals": {
302
+ "aws:SourceArn": {
303
303
  "Ref": "topic69831491",
304
304
  },
305
305
  },
306
306
  },
307
307
  "Effect": "Allow",
308
- "Principal": Object {
308
+ "Principal": {
309
309
  "Service": "sns.amazonaws.com",
310
310
  },
311
- "Resource": Object {
312
- "Fn::GetAtt": Array [
311
+ "Resource": {
312
+ "Fn::GetAtt": [
313
313
  "workerqueueA05CE5C6",
314
314
  "Arn",
315
315
  ],
@@ -318,34 +318,34 @@ Object {
318
318
  ],
319
319
  "Version": "2012-10-17",
320
320
  },
321
- "Queues": Array [
322
- Object {
321
+ "Queues": [
322
+ {
323
323
  "Ref": "workerqueueA05CE5C6",
324
324
  },
325
325
  ],
326
326
  },
327
327
  "Type": "AWS::SQS::QueuePolicy",
328
328
  },
329
- "workerqueueappStacktopic0CA45134AFB31FF4": Object {
330
- "Properties": Object {
331
- "Endpoint": Object {
332
- "Fn::GetAtt": Array [
329
+ "workerqueueappStacktopic0CA45134AFB31FF4": {
330
+ "Properties": {
331
+ "Endpoint": {
332
+ "Fn::GetAtt": [
333
333
  "workerqueueA05CE5C6",
334
334
  "Arn",
335
335
  ],
336
336
  },
337
337
  "Protocol": "sqs",
338
- "TopicArn": Object {
338
+ "TopicArn": {
339
339
  "Ref": "topic69831491",
340
340
  },
341
341
  },
342
342
  "Type": "AWS::SNS::Subscription",
343
343
  },
344
- "workerqueuedlq42262778": Object {
344
+ "workerqueuedlq42262778": {
345
345
  "DeletionPolicy": "Delete",
346
- "Properties": Object {
347
- "KmsMasterKeyId": Object {
348
- "Fn::GetAtt": Array [
346
+ "Properties": {
347
+ "KmsMasterKeyId": {
348
+ "Fn::GetAtt": [
349
349
  "kmskey49FBC3B3",
350
350
  "Arn",
351
351
  ],
@@ -360,29 +360,29 @@ Object {
360
360
  `;
361
361
 
362
362
  exports[`returns expected CloudFormation stack for prod 1`] = `
363
- Object {
364
- "Resources": Object {
365
- "kmskey49FBC3B3": Object {
363
+ {
364
+ "Resources": {
365
+ "kmskey49FBC3B3": {
366
366
  "DeletionPolicy": "Retain",
367
- "Properties": Object {
367
+ "Properties": {
368
368
  "Description": "serviceName",
369
369
  "EnableKeyRotation": true,
370
- "KeyPolicy": Object {
371
- "Statement": Array [
372
- Object {
370
+ "KeyPolicy": {
371
+ "Statement": [
372
+ {
373
373
  "Action": "kms:*",
374
374
  "Effect": "Allow",
375
- "Principal": Object {
376
- "AWS": Object {
377
- "Fn::Join": Array [
375
+ "Principal": {
376
+ "AWS": {
377
+ "Fn::Join": [
378
378
  "",
379
- Array [
379
+ [
380
380
  "arn:",
381
- Object {
381
+ {
382
382
  "Ref": "AWS::Partition",
383
383
  },
384
384
  ":iam::",
385
- Object {
385
+ {
386
386
  "Ref": "AWS::AccountId",
387
387
  },
388
388
  ":root",
@@ -392,8 +392,8 @@ Object {
392
392
  },
393
393
  "Resource": "*",
394
394
  },
395
- Object {
396
- "Action": Array [
395
+ {
396
+ "Action": [
397
397
  "kms:Create*",
398
398
  "kms:Describe*",
399
399
  "kms:Enable*",
@@ -410,17 +410,17 @@ Object {
410
410
  "kms:CancelKeyDeletion",
411
411
  ],
412
412
  "Effect": "Allow",
413
- "Principal": Object {
414
- "AWS": Object {
415
- "Fn::Join": Array [
413
+ "Principal": {
414
+ "AWS": {
415
+ "Fn::Join": [
416
416
  "",
417
- Array [
417
+ [
418
418
  "arn:",
419
- Object {
419
+ {
420
420
  "Ref": "AWS::Partition",
421
421
  },
422
422
  ":iam::",
423
- Object {
423
+ {
424
424
  "Ref": "AWS::AccountId",
425
425
  },
426
426
  ":root",
@@ -430,24 +430,24 @@ Object {
430
430
  },
431
431
  "Resource": "*",
432
432
  },
433
- Object {
434
- "Action": Array [
433
+ {
434
+ "Action": [
435
435
  "kms:Encrypt",
436
436
  "kms:ReEncrypt*",
437
437
  "kms:GenerateDataKey*",
438
438
  ],
439
439
  "Effect": "Allow",
440
- "Principal": Object {
441
- "AWS": Object {
442
- "Fn::Join": Array [
440
+ "Principal": {
441
+ "AWS": {
442
+ "Fn::Join": [
443
443
  "",
444
- Array [
444
+ [
445
445
  "arn:",
446
- Object {
446
+ {
447
447
  "Ref": "AWS::Partition",
448
448
  },
449
449
  ":iam::",
450
- Object {
450
+ {
451
451
  "Ref": "AWS::AccountId",
452
452
  },
453
453
  ":root",
@@ -457,13 +457,13 @@ Object {
457
457
  },
458
458
  "Resource": "*",
459
459
  },
460
- Object {
461
- "Action": Array [
460
+ {
461
+ "Action": [
462
462
  "kms:Decrypt",
463
463
  "kms:GenerateDataKey",
464
464
  ],
465
465
  "Effect": "Allow",
466
- "Principal": Object {
466
+ "Principal": {
467
467
  "Service": "sns.amazonaws.com",
468
468
  },
469
469
  "Resource": "*",
@@ -475,11 +475,11 @@ Object {
475
475
  "Type": "AWS::KMS::Key",
476
476
  "UpdateReplacePolicy": "Retain",
477
477
  },
478
- "kmskeyAlias39245779": Object {
479
- "Properties": Object {
478
+ "kmskeyAlias39245779": {
479
+ "Properties": {
480
480
  "AliasName": "alias/seek/self/serviceName",
481
- "TargetKeyId": Object {
482
- "Fn::GetAtt": Array [
481
+ "TargetKeyId": {
482
+ "Fn::GetAtt": [
483
483
  "kmskey49FBC3B3",
484
484
  "Arn",
485
485
  ],
@@ -487,10 +487,10 @@ Object {
487
487
  },
488
488
  "Type": "AWS::KMS::Alias",
489
489
  },
490
- "topic69831491": Object {
491
- "Properties": Object {
492
- "KmsMasterKeyId": Object {
493
- "Fn::GetAtt": Array [
490
+ "topic69831491": {
491
+ "Properties": {
492
+ "KmsMasterKeyId": {
493
+ "Fn::GetAtt": [
494
494
  "kmskey49FBC3B3",
495
495
  "Arn",
496
496
  ],
@@ -499,23 +499,23 @@ Object {
499
499
  },
500
500
  "Type": "AWS::SNS::Topic",
501
501
  },
502
- "worker28EA3E30": Object {
503
- "DependsOn": Array [
502
+ "worker28EA3E30": {
503
+ "DependsOn": [
504
504
  "workerServiceRoleDefaultPolicyBA498553",
505
505
  "workerServiceRole2130CC7F",
506
506
  ],
507
- "Properties": Object {
508
- "Architectures": Array [
507
+ "Properties": {
508
+ "Architectures": [
509
509
  "arm64",
510
510
  ],
511
- "Code": Object {
512
- "S3Bucket": Object {
511
+ "Code": {
512
+ "S3Bucket": {
513
513
  "Fn::Sub": "cdk-hnb659fds-assets-\${AWS::AccountId}-\${AWS::Region}",
514
514
  },
515
515
  "S3Key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.zip",
516
516
  },
517
- "Environment": Object {
518
- "Variables": Object {
517
+ "Environment": {
518
+ "Variables": {
519
519
  "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1",
520
520
  "NODE_ENV": "production",
521
521
  "NODE_OPTIONS": "--enable-source-maps",
@@ -524,14 +524,14 @@ Object {
524
524
  },
525
525
  "FunctionName": "serviceName",
526
526
  "Handler": "app.handler",
527
- "KmsKeyArn": Object {
528
- "Fn::GetAtt": Array [
527
+ "KmsKeyArn": {
528
+ "Fn::GetAtt": [
529
529
  "kmskey49FBC3B3",
530
530
  "Arn",
531
531
  ],
532
532
  },
533
- "Role": Object {
534
- "Fn::GetAtt": Array [
533
+ "Role": {
534
+ "Fn::GetAtt": [
535
535
  "workerServiceRole2130CC7F",
536
536
  "Arn",
537
537
  ],
@@ -540,27 +540,27 @@ Object {
540
540
  },
541
541
  "Type": "AWS::Lambda::Function",
542
542
  },
543
- "workerServiceRole2130CC7F": Object {
544
- "Properties": Object {
545
- "AssumeRolePolicyDocument": Object {
546
- "Statement": Array [
547
- Object {
543
+ "workerServiceRole2130CC7F": {
544
+ "Properties": {
545
+ "AssumeRolePolicyDocument": {
546
+ "Statement": [
547
+ {
548
548
  "Action": "sts:AssumeRole",
549
549
  "Effect": "Allow",
550
- "Principal": Object {
550
+ "Principal": {
551
551
  "Service": "lambda.amazonaws.com",
552
552
  },
553
553
  },
554
554
  ],
555
555
  "Version": "2012-10-17",
556
556
  },
557
- "ManagedPolicyArns": Array [
558
- Object {
559
- "Fn::Join": Array [
557
+ "ManagedPolicyArns": [
558
+ {
559
+ "Fn::Join": [
560
560
  "",
561
- Array [
561
+ [
562
562
  "arn:",
563
- Object {
563
+ {
564
564
  "Ref": "AWS::Partition",
565
565
  },
566
566
  ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole",
@@ -571,12 +571,12 @@ Object {
571
571
  },
572
572
  "Type": "AWS::IAM::Role",
573
573
  },
574
- "workerServiceRoleDefaultPolicyBA498553": Object {
575
- "Properties": Object {
576
- "PolicyDocument": Object {
577
- "Statement": Array [
578
- Object {
579
- "Action": Array [
574
+ "workerServiceRoleDefaultPolicyBA498553": {
575
+ "Properties": {
576
+ "PolicyDocument": {
577
+ "Statement": [
578
+ {
579
+ "Action": [
580
580
  "sqs:ReceiveMessage",
581
581
  "sqs:ChangeMessageVisibility",
582
582
  "sqs:GetQueueUrl",
@@ -584,18 +584,18 @@ Object {
584
584
  "sqs:GetQueueAttributes",
585
585
  ],
586
586
  "Effect": "Allow",
587
- "Resource": Object {
588
- "Fn::GetAtt": Array [
587
+ "Resource": {
588
+ "Fn::GetAtt": [
589
589
  "workerqueueA05CE5C6",
590
590
  "Arn",
591
591
  ],
592
592
  },
593
593
  },
594
- Object {
594
+ {
595
595
  "Action": "kms:Decrypt",
596
596
  "Effect": "Allow",
597
- "Resource": Object {
598
- "Fn::GetAtt": Array [
597
+ "Resource": {
598
+ "Fn::GetAtt": [
599
599
  "kmskey49FBC3B3",
600
600
  "Arn",
601
601
  ],
@@ -605,41 +605,41 @@ Object {
605
605
  "Version": "2012-10-17",
606
606
  },
607
607
  "PolicyName": "workerServiceRoleDefaultPolicyBA498553",
608
- "Roles": Array [
609
- Object {
608
+ "Roles": [
609
+ {
610
610
  "Ref": "workerServiceRole2130CC7F",
611
611
  },
612
612
  ],
613
613
  },
614
614
  "Type": "AWS::IAM::Policy",
615
615
  },
616
- "workerSqsEventSourceappStackworkerqueue8281B9F47B9F582B": Object {
617
- "Properties": Object {
618
- "EventSourceArn": Object {
619
- "Fn::GetAtt": Array [
616
+ "workerSqsEventSourceappStackworkerqueue8281B9F47B9F582B": {
617
+ "Properties": {
618
+ "EventSourceArn": {
619
+ "Fn::GetAtt": [
620
620
  "workerqueueA05CE5C6",
621
621
  "Arn",
622
622
  ],
623
623
  },
624
- "FunctionName": Object {
624
+ "FunctionName": {
625
625
  "Ref": "worker28EA3E30",
626
626
  },
627
627
  },
628
628
  "Type": "AWS::Lambda::EventSourceMapping",
629
629
  },
630
- "workerqueueA05CE5C6": Object {
630
+ "workerqueueA05CE5C6": {
631
631
  "DeletionPolicy": "Delete",
632
- "Properties": Object {
633
- "KmsMasterKeyId": Object {
634
- "Fn::GetAtt": Array [
632
+ "Properties": {
633
+ "KmsMasterKeyId": {
634
+ "Fn::GetAtt": [
635
635
  "kmskey49FBC3B3",
636
636
  "Arn",
637
637
  ],
638
638
  },
639
639
  "QueueName": "serviceName",
640
- "RedrivePolicy": Object {
641
- "deadLetterTargetArn": Object {
642
- "Fn::GetAtt": Array [
640
+ "RedrivePolicy": {
641
+ "deadLetterTargetArn": {
642
+ "Fn::GetAtt": [
643
643
  "workerqueuedlq42262778",
644
644
  "Arn",
645
645
  ],
@@ -650,25 +650,25 @@ Object {
650
650
  "Type": "AWS::SQS::Queue",
651
651
  "UpdateReplacePolicy": "Delete",
652
652
  },
653
- "workerqueuePolicy97054CB4": Object {
654
- "Properties": Object {
655
- "PolicyDocument": Object {
656
- "Statement": Array [
657
- Object {
653
+ "workerqueuePolicy97054CB4": {
654
+ "Properties": {
655
+ "PolicyDocument": {
656
+ "Statement": [
657
+ {
658
658
  "Action": "sqs:SendMessage",
659
- "Condition": Object {
660
- "ArnEquals": Object {
661
- "aws:SourceArn": Object {
659
+ "Condition": {
660
+ "ArnEquals": {
661
+ "aws:SourceArn": {
662
662
  "Ref": "topic69831491",
663
663
  },
664
664
  },
665
665
  },
666
666
  "Effect": "Allow",
667
- "Principal": Object {
667
+ "Principal": {
668
668
  "Service": "sns.amazonaws.com",
669
669
  },
670
- "Resource": Object {
671
- "Fn::GetAtt": Array [
670
+ "Resource": {
671
+ "Fn::GetAtt": [
672
672
  "workerqueueA05CE5C6",
673
673
  "Arn",
674
674
  ],
@@ -677,34 +677,34 @@ Object {
677
677
  ],
678
678
  "Version": "2012-10-17",
679
679
  },
680
- "Queues": Array [
681
- Object {
680
+ "Queues": [
681
+ {
682
682
  "Ref": "workerqueueA05CE5C6",
683
683
  },
684
684
  ],
685
685
  },
686
686
  "Type": "AWS::SQS::QueuePolicy",
687
687
  },
688
- "workerqueueappStacktopic0CA45134AFB31FF4": Object {
689
- "Properties": Object {
690
- "Endpoint": Object {
691
- "Fn::GetAtt": Array [
688
+ "workerqueueappStacktopic0CA45134AFB31FF4": {
689
+ "Properties": {
690
+ "Endpoint": {
691
+ "Fn::GetAtt": [
692
692
  "workerqueueA05CE5C6",
693
693
  "Arn",
694
694
  ],
695
695
  },
696
696
  "Protocol": "sqs",
697
- "TopicArn": Object {
697
+ "TopicArn": {
698
698
  "Ref": "topic69831491",
699
699
  },
700
700
  },
701
701
  "Type": "AWS::SNS::Subscription",
702
702
  },
703
- "workerqueuedlq42262778": Object {
703
+ "workerqueuedlq42262778": {
704
704
  "DeletionPolicy": "Delete",
705
- "Properties": Object {
706
- "KmsMasterKeyId": Object {
707
- "Fn::GetAtt": Array [
705
+ "Properties": {
706
+ "KmsMasterKeyId": {
707
+ "Fn::GetAtt": [
708
708
  "kmskey49FBC3B3",
709
709
  "Arn",
710
710
  ],