@mbc-cqrs-serverless/cli 1.1.0 → 1.1.2
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.
|
@@ -48,7 +48,9 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
48
48
|
},
|
|
49
49
|
},
|
|
50
50
|
"UserPoolId": {
|
|
51
|
-
"Value":
|
|
51
|
+
"Value": {
|
|
52
|
+
"Ref": "devuserpool23B1805F",
|
|
53
|
+
},
|
|
52
54
|
},
|
|
53
55
|
"httpdistributiondomain": {
|
|
54
56
|
"Value": {
|
|
@@ -88,7 +90,7 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
88
90
|
"Arn",
|
|
89
91
|
],
|
|
90
92
|
},
|
|
91
|
-
"Runtime": "
|
|
93
|
+
"Runtime": "nodejs22.x",
|
|
92
94
|
"Tags": [
|
|
93
95
|
{
|
|
94
96
|
"Key": "env",
|
|
@@ -96,7 +98,7 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
96
98
|
},
|
|
97
99
|
{
|
|
98
100
|
"Key": "name",
|
|
99
|
-
"Value": "
|
|
101
|
+
"Value": "",
|
|
100
102
|
},
|
|
101
103
|
],
|
|
102
104
|
"Timeout": 120,
|
|
@@ -138,7 +140,7 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
138
140
|
},
|
|
139
141
|
{
|
|
140
142
|
"Key": "name",
|
|
141
|
-
"Value": "
|
|
143
|
+
"Value": "",
|
|
142
144
|
},
|
|
143
145
|
],
|
|
144
146
|
},
|
|
@@ -146,8 +148,8 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
146
148
|
},
|
|
147
149
|
"AppSyncCnameRecord408D9525": {
|
|
148
150
|
"Properties": {
|
|
149
|
-
"HostedZoneId": "
|
|
150
|
-
"Name": "
|
|
151
|
+
"HostedZoneId": "Z0123456789ABCDEFGHIJ",
|
|
152
|
+
"Name": "example.com.",
|
|
151
153
|
"ResourceRecords": [
|
|
152
154
|
{
|
|
153
155
|
"Fn::GetAtt": [
|
|
@@ -170,10 +172,10 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
170
172
|
},
|
|
171
173
|
{
|
|
172
174
|
"Key": "name",
|
|
173
|
-
"Value": "
|
|
175
|
+
"Value": "",
|
|
174
176
|
},
|
|
175
177
|
],
|
|
176
|
-
"TopicName": "dev
|
|
178
|
+
"TopicName": "dev--alarm-sns",
|
|
177
179
|
},
|
|
178
180
|
"Type": "AWS::SNS::Topic",
|
|
179
181
|
},
|
|
@@ -202,14 +204,16 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
202
204
|
"SupportedIdentityProviders": [
|
|
203
205
|
"COGNITO",
|
|
204
206
|
],
|
|
205
|
-
"UserPoolId":
|
|
207
|
+
"UserPoolId": {
|
|
208
|
+
"Ref": "devuserpool23B1805F",
|
|
209
|
+
},
|
|
206
210
|
},
|
|
207
211
|
"Type": "AWS::Cognito::UserPoolClient",
|
|
208
212
|
},
|
|
209
213
|
"commandhandlersfnlog9072E963": {
|
|
210
214
|
"DeletionPolicy": "Delete",
|
|
211
215
|
"Properties": {
|
|
212
|
-
"LogGroupName": "/aws/vendedlogs/states/dev
|
|
216
|
+
"LogGroupName": "/aws/vendedlogs/states/dev---command-handler-state-machine-Logs",
|
|
213
217
|
"RetentionInDays": 180,
|
|
214
218
|
"Tags": [
|
|
215
219
|
{
|
|
@@ -218,7 +222,7 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
218
222
|
},
|
|
219
223
|
{
|
|
220
224
|
"Key": "name",
|
|
221
|
-
"Value": "
|
|
225
|
+
"Value": "",
|
|
222
226
|
},
|
|
223
227
|
],
|
|
224
228
|
},
|
|
@@ -338,7 +342,7 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
338
342
|
"Arn",
|
|
339
343
|
],
|
|
340
344
|
},
|
|
341
|
-
"StateMachineName": "dev
|
|
345
|
+
"StateMachineName": "dev--command-handler",
|
|
342
346
|
"Tags": [
|
|
343
347
|
{
|
|
344
348
|
"Key": "env",
|
|
@@ -346,7 +350,7 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
346
350
|
},
|
|
347
351
|
{
|
|
348
352
|
"Key": "name",
|
|
349
|
-
"Value": "
|
|
353
|
+
"Value": "",
|
|
350
354
|
},
|
|
351
355
|
],
|
|
352
356
|
"TracingConfiguration": {
|
|
@@ -377,7 +381,7 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
377
381
|
},
|
|
378
382
|
{
|
|
379
383
|
"Key": "name",
|
|
380
|
-
"Value": "
|
|
384
|
+
"Value": "",
|
|
381
385
|
},
|
|
382
386
|
],
|
|
383
387
|
},
|
|
@@ -449,10 +453,31 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
449
453
|
},
|
|
450
454
|
"Type": "AWS::IAM::Policy",
|
|
451
455
|
},
|
|
456
|
+
"csvimportmappolicyB91FD9A7": {
|
|
457
|
+
"Properties": {
|
|
458
|
+
"PolicyDocument": {
|
|
459
|
+
"Statement": [
|
|
460
|
+
{
|
|
461
|
+
"Action": "states:StartExecution",
|
|
462
|
+
"Effect": "Allow",
|
|
463
|
+
"Resource": "arn:aws:states:ap-northeast-1:101010101010:stateMachine:dev--import-csv-handler",
|
|
464
|
+
},
|
|
465
|
+
],
|
|
466
|
+
"Version": "2012-10-17",
|
|
467
|
+
},
|
|
468
|
+
"PolicyName": "csvimportmappolicyB91FD9A7",
|
|
469
|
+
"Roles": [
|
|
470
|
+
{
|
|
471
|
+
"Ref": "importcsvstatemachineRole472165F7",
|
|
472
|
+
},
|
|
473
|
+
],
|
|
474
|
+
},
|
|
475
|
+
"Type": "AWS::IAM::Policy",
|
|
476
|
+
},
|
|
452
477
|
"ddbattributes95C63151": {
|
|
453
478
|
"DeletionPolicy": "Delete",
|
|
454
479
|
"Properties": {
|
|
455
|
-
"BucketName": "dev
|
|
480
|
+
"BucketName": "dev--ddb-attributes",
|
|
456
481
|
"CorsConfiguration": {
|
|
457
482
|
"CorsRules": [
|
|
458
483
|
{
|
|
@@ -484,13 +509,93 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
484
509
|
},
|
|
485
510
|
{
|
|
486
511
|
"Key": "name",
|
|
487
|
-
"Value": "
|
|
512
|
+
"Value": "",
|
|
488
513
|
},
|
|
489
514
|
],
|
|
490
515
|
},
|
|
491
516
|
"Type": "AWS::S3::Bucket",
|
|
492
517
|
"UpdateReplacePolicy": "Delete",
|
|
493
518
|
},
|
|
519
|
+
"devuserpool23B1805F": {
|
|
520
|
+
"DeletionPolicy": "Retain",
|
|
521
|
+
"Properties": {
|
|
522
|
+
"AccountRecoverySetting": {
|
|
523
|
+
"RecoveryMechanisms": [
|
|
524
|
+
{
|
|
525
|
+
"Name": "admin_only",
|
|
526
|
+
"Priority": 1,
|
|
527
|
+
},
|
|
528
|
+
],
|
|
529
|
+
},
|
|
530
|
+
"AdminCreateUserConfig": {
|
|
531
|
+
"AllowAdminCreateUserOnly": true,
|
|
532
|
+
},
|
|
533
|
+
"AliasAttributes": [
|
|
534
|
+
"preferred_username",
|
|
535
|
+
],
|
|
536
|
+
"DeletionProtection": "ACTIVE",
|
|
537
|
+
"EmailConfiguration": {
|
|
538
|
+
"EmailSendingAccount": "COGNITO_DEFAULT",
|
|
539
|
+
},
|
|
540
|
+
"EmailVerificationMessage": "The verification code to your new account is {####}",
|
|
541
|
+
"EmailVerificationSubject": "Verify your new account",
|
|
542
|
+
"MfaConfiguration": "OFF",
|
|
543
|
+
"Policies": {
|
|
544
|
+
"PasswordPolicy": {
|
|
545
|
+
"MinimumLength": 6,
|
|
546
|
+
"RequireLowercase": false,
|
|
547
|
+
"RequireNumbers": false,
|
|
548
|
+
"RequireSymbols": false,
|
|
549
|
+
"RequireUppercase": false,
|
|
550
|
+
},
|
|
551
|
+
},
|
|
552
|
+
"Schema": [
|
|
553
|
+
{
|
|
554
|
+
"AttributeDataType": "String",
|
|
555
|
+
"Mutable": true,
|
|
556
|
+
"Name": "tenant",
|
|
557
|
+
"StringAttributeConstraints": {
|
|
558
|
+
"MaxLength": "50",
|
|
559
|
+
},
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
"AttributeDataType": "String",
|
|
563
|
+
"Mutable": true,
|
|
564
|
+
"Name": "company_code",
|
|
565
|
+
"StringAttributeConstraints": {
|
|
566
|
+
"MaxLength": "50",
|
|
567
|
+
},
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
"AttributeDataType": "String",
|
|
571
|
+
"Mutable": true,
|
|
572
|
+
"Name": "member_id",
|
|
573
|
+
"StringAttributeConstraints": {
|
|
574
|
+
"MaxLength": "2024",
|
|
575
|
+
},
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
"AttributeDataType": "String",
|
|
579
|
+
"Mutable": true,
|
|
580
|
+
"Name": "roles",
|
|
581
|
+
},
|
|
582
|
+
],
|
|
583
|
+
"SmsVerificationMessage": "The verification code to your new account is {####}",
|
|
584
|
+
"UserPoolName": "dev--user-pool",
|
|
585
|
+
"UserPoolTags": {
|
|
586
|
+
"env": "dev",
|
|
587
|
+
"name": "",
|
|
588
|
+
},
|
|
589
|
+
"VerificationMessageTemplate": {
|
|
590
|
+
"DefaultEmailOption": "CONFIRM_WITH_CODE",
|
|
591
|
+
"EmailMessage": "The verification code to your new account is {####}",
|
|
592
|
+
"EmailSubject": "Verify your new account",
|
|
593
|
+
"SmsMessage": "The verification code to your new account is {####}",
|
|
594
|
+
},
|
|
595
|
+
},
|
|
596
|
+
"Type": "AWS::Cognito::UserPool",
|
|
597
|
+
"UpdateReplacePolicy": "Retain",
|
|
598
|
+
},
|
|
494
599
|
"httpapiAccessLogs0179ABB1": {
|
|
495
600
|
"DeletionPolicy": "Retain",
|
|
496
601
|
"Properties": {
|
|
@@ -502,7 +607,7 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
502
607
|
},
|
|
503
608
|
{
|
|
504
609
|
"Key": "name",
|
|
505
|
-
"Value": "
|
|
610
|
+
"Value": "",
|
|
506
611
|
},
|
|
507
612
|
],
|
|
508
613
|
},
|
|
@@ -513,7 +618,7 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
513
618
|
"Properties": {
|
|
514
619
|
"DistributionConfig": {
|
|
515
620
|
"Aliases": [
|
|
516
|
-
"
|
|
621
|
+
"",
|
|
517
622
|
],
|
|
518
623
|
"DefaultCacheBehavior": {
|
|
519
624
|
"AllowedMethods": [
|
|
@@ -558,7 +663,7 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
558
663
|
"OriginCustomHeaders": [
|
|
559
664
|
{
|
|
560
665
|
"HeaderName": "X-Origin-Verify",
|
|
561
|
-
"HeaderValue": "dev
|
|
666
|
+
"HeaderValue": "dev--653338303031343731376464613638663933303936316338666463646537",
|
|
562
667
|
},
|
|
563
668
|
],
|
|
564
669
|
},
|
|
@@ -574,7 +679,7 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
574
679
|
},
|
|
575
680
|
},
|
|
576
681
|
"ViewerCertificate": {
|
|
577
|
-
"AcmCertificateArn": "arn:aws:acm:us-east-1:
|
|
682
|
+
"AcmCertificateArn": "arn:aws:acm:us-east-1:101010101010:certificate/test-http",
|
|
578
683
|
"MinimumProtocolVersion": "TLSv1.2_2021",
|
|
579
684
|
"SslSupportMethod": "sni-only",
|
|
580
685
|
},
|
|
@@ -586,7 +691,7 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
586
691
|
},
|
|
587
692
|
{
|
|
588
693
|
"Key": "name",
|
|
589
|
-
"Value": "
|
|
694
|
+
"Value": "",
|
|
590
695
|
},
|
|
591
696
|
],
|
|
592
697
|
},
|
|
@@ -594,8 +699,8 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
594
699
|
},
|
|
595
700
|
"httpdistributionarecord0FBAAC08": {
|
|
596
701
|
"Properties": {
|
|
597
|
-
"HostedZoneId": "
|
|
598
|
-
"Name": "
|
|
702
|
+
"HostedZoneId": "Z0123456789ABCDEFGHIJ",
|
|
703
|
+
"Name": "example.com.",
|
|
599
704
|
"ResourceRecords": [
|
|
600
705
|
{
|
|
601
706
|
"Fn::GetAtt": [
|
|
@@ -609,6 +714,329 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
609
714
|
},
|
|
610
715
|
"Type": "AWS::Route53::RecordSet",
|
|
611
716
|
},
|
|
717
|
+
"importactionsqs5E43BE2E": {
|
|
718
|
+
"DeletionPolicy": "Delete",
|
|
719
|
+
"Properties": {
|
|
720
|
+
"QueueName": "dev--import-action-queue",
|
|
721
|
+
"Tags": [
|
|
722
|
+
{
|
|
723
|
+
"Key": "env",
|
|
724
|
+
"Value": "dev",
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
"Key": "name",
|
|
728
|
+
"Value": "",
|
|
729
|
+
},
|
|
730
|
+
],
|
|
731
|
+
},
|
|
732
|
+
"Type": "AWS::SQS::Queue",
|
|
733
|
+
"UpdateReplacePolicy": "Delete",
|
|
734
|
+
},
|
|
735
|
+
"importactionsqsPolicyCCA46E8B": {
|
|
736
|
+
"Properties": {
|
|
737
|
+
"PolicyDocument": {
|
|
738
|
+
"Statement": [
|
|
739
|
+
{
|
|
740
|
+
"Action": "sqs:SendMessage",
|
|
741
|
+
"Condition": {
|
|
742
|
+
"ArnEquals": {
|
|
743
|
+
"aws:SourceArn": {
|
|
744
|
+
"Ref": "mainsnsC0381B34",
|
|
745
|
+
},
|
|
746
|
+
},
|
|
747
|
+
},
|
|
748
|
+
"Effect": "Allow",
|
|
749
|
+
"Principal": {
|
|
750
|
+
"Service": "sns.amazonaws.com",
|
|
751
|
+
},
|
|
752
|
+
"Resource": {
|
|
753
|
+
"Fn::GetAtt": [
|
|
754
|
+
"importactionsqs5E43BE2E",
|
|
755
|
+
"Arn",
|
|
756
|
+
],
|
|
757
|
+
},
|
|
758
|
+
},
|
|
759
|
+
],
|
|
760
|
+
"Version": "2012-10-17",
|
|
761
|
+
},
|
|
762
|
+
"Queues": [
|
|
763
|
+
{
|
|
764
|
+
"Ref": "importactionsqs5E43BE2E",
|
|
765
|
+
},
|
|
766
|
+
],
|
|
767
|
+
},
|
|
768
|
+
"Type": "AWS::SQS::QueuePolicy",
|
|
769
|
+
},
|
|
770
|
+
"importactionsqsTestInfraStackmainsnsA010224CB9B81AFA": {
|
|
771
|
+
"DependsOn": [
|
|
772
|
+
"importactionsqsPolicyCCA46E8B",
|
|
773
|
+
],
|
|
774
|
+
"Properties": {
|
|
775
|
+
"Endpoint": {
|
|
776
|
+
"Fn::GetAtt": [
|
|
777
|
+
"importactionsqs5E43BE2E",
|
|
778
|
+
"Arn",
|
|
779
|
+
],
|
|
780
|
+
},
|
|
781
|
+
"FilterPolicy": {
|
|
782
|
+
"action": [
|
|
783
|
+
"import-execute",
|
|
784
|
+
],
|
|
785
|
+
},
|
|
786
|
+
"Protocol": "sqs",
|
|
787
|
+
"RawMessageDelivery": true,
|
|
788
|
+
"TopicArn": {
|
|
789
|
+
"Ref": "mainsnsC0381B34",
|
|
790
|
+
},
|
|
791
|
+
},
|
|
792
|
+
"Type": "AWS::SNS::Subscription",
|
|
793
|
+
},
|
|
794
|
+
"importcsvhandlersfnlog948FF17F": {
|
|
795
|
+
"DeletionPolicy": "Delete",
|
|
796
|
+
"Properties": {
|
|
797
|
+
"LogGroupName": "/aws/vendedlogs/states/dev---import-csv-handler-state-machine-logs",
|
|
798
|
+
"RetentionInDays": 180,
|
|
799
|
+
"Tags": [
|
|
800
|
+
{
|
|
801
|
+
"Key": "env",
|
|
802
|
+
"Value": "dev",
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
"Key": "name",
|
|
806
|
+
"Value": "",
|
|
807
|
+
},
|
|
808
|
+
],
|
|
809
|
+
},
|
|
810
|
+
"Type": "AWS::Logs::LogGroup",
|
|
811
|
+
"UpdateReplacePolicy": "Delete",
|
|
812
|
+
},
|
|
813
|
+
"importcsvstatemachine4B3EA406": {
|
|
814
|
+
"DeletionPolicy": "Delete",
|
|
815
|
+
"DependsOn": [
|
|
816
|
+
"importcsvstatemachineRoleDefaultPolicyC6679553",
|
|
817
|
+
"importcsvstatemachineRole472165F7",
|
|
818
|
+
],
|
|
819
|
+
"Properties": {
|
|
820
|
+
"DefinitionString": {
|
|
821
|
+
"Fn::Join": [
|
|
822
|
+
"",
|
|
823
|
+
[
|
|
824
|
+
"{"StartAt":"import-csv","States":{"import-csv":{"Type":"Map","End":true,"ItemProcessor":{"ProcessorConfig":{"Mode":"DISTRIBUTED","ExecutionType":"EXPRESS"},"StartAt":"csv_rows_handler","States":{"csv_rows_handler":{"End":true,"Retry":[{"ErrorEquals":["Lambda.ClientExecutionTimeoutException","Lambda.ServiceException","Lambda.AWSLambdaException","Lambda.SdkClientException"],"IntervalSeconds":2,"MaxAttempts":6,"BackoffRate":2}],"Type":"Task","OutputPath":"$.Payload[0][0]","Resource":"arn:",
|
|
825
|
+
{
|
|
826
|
+
"Ref": "AWS::Partition",
|
|
827
|
+
},
|
|
828
|
+
":states:::lambda:invoke","Parameters":{"FunctionName":"",
|
|
829
|
+
{
|
|
830
|
+
"Fn::GetAtt": [
|
|
831
|
+
"lambdaapi893CD94E",
|
|
832
|
+
"Arn",
|
|
833
|
+
],
|
|
834
|
+
},
|
|
835
|
+
"","Payload":{"input.$":"$","context.$":"$$"}}}}},"MaxConcurrency":50,"ItemReader":{"Resource":"arn:aws:states:::s3:getObject","ReaderConfig":{"InputType":"CSV","CSVHeaderLocation":"FIRST_ROW"},"Parameters":{"Bucket.$":"$.bucket","Key.$":"$.key"}},"ItemBatcher":{"MaxInputBytesPerBatch":10,"BatchInput":{"Attributes.$":"$"}},"Label":"import-csv"}},"Comment":"A state machine for import-csv module handler"}",
|
|
836
|
+
],
|
|
837
|
+
],
|
|
838
|
+
},
|
|
839
|
+
"LoggingConfiguration": {
|
|
840
|
+
"Destinations": [
|
|
841
|
+
{
|
|
842
|
+
"CloudWatchLogsLogGroup": {
|
|
843
|
+
"LogGroupArn": {
|
|
844
|
+
"Fn::GetAtt": [
|
|
845
|
+
"importcsvhandlersfnlog948FF17F",
|
|
846
|
+
"Arn",
|
|
847
|
+
],
|
|
848
|
+
},
|
|
849
|
+
},
|
|
850
|
+
},
|
|
851
|
+
],
|
|
852
|
+
"Level": "ALL",
|
|
853
|
+
},
|
|
854
|
+
"RoleArn": {
|
|
855
|
+
"Fn::GetAtt": [
|
|
856
|
+
"importcsvstatemachineRole472165F7",
|
|
857
|
+
"Arn",
|
|
858
|
+
],
|
|
859
|
+
},
|
|
860
|
+
"StateMachineName": "dev--import-csv-handler",
|
|
861
|
+
"Tags": [
|
|
862
|
+
{
|
|
863
|
+
"Key": "env",
|
|
864
|
+
"Value": "dev",
|
|
865
|
+
},
|
|
866
|
+
{
|
|
867
|
+
"Key": "name",
|
|
868
|
+
"Value": "",
|
|
869
|
+
},
|
|
870
|
+
],
|
|
871
|
+
"TracingConfiguration": {
|
|
872
|
+
"Enabled": true,
|
|
873
|
+
},
|
|
874
|
+
},
|
|
875
|
+
"Type": "AWS::StepFunctions::StateMachine",
|
|
876
|
+
"UpdateReplacePolicy": "Delete",
|
|
877
|
+
},
|
|
878
|
+
"importcsvstatemachineRole472165F7": {
|
|
879
|
+
"Properties": {
|
|
880
|
+
"AssumeRolePolicyDocument": {
|
|
881
|
+
"Statement": [
|
|
882
|
+
{
|
|
883
|
+
"Action": "sts:AssumeRole",
|
|
884
|
+
"Effect": "Allow",
|
|
885
|
+
"Principal": {
|
|
886
|
+
"Service": "states.amazonaws.com",
|
|
887
|
+
},
|
|
888
|
+
},
|
|
889
|
+
],
|
|
890
|
+
"Version": "2012-10-17",
|
|
891
|
+
},
|
|
892
|
+
"Tags": [
|
|
893
|
+
{
|
|
894
|
+
"Key": "env",
|
|
895
|
+
"Value": "dev",
|
|
896
|
+
},
|
|
897
|
+
{
|
|
898
|
+
"Key": "name",
|
|
899
|
+
"Value": "",
|
|
900
|
+
},
|
|
901
|
+
],
|
|
902
|
+
},
|
|
903
|
+
"Type": "AWS::IAM::Role",
|
|
904
|
+
},
|
|
905
|
+
"importcsvstatemachineRoleDefaultPolicyC6679553": {
|
|
906
|
+
"Properties": {
|
|
907
|
+
"PolicyDocument": {
|
|
908
|
+
"Statement": [
|
|
909
|
+
{
|
|
910
|
+
"Action": "lambda:InvokeFunction",
|
|
911
|
+
"Effect": "Allow",
|
|
912
|
+
"Resource": [
|
|
913
|
+
{
|
|
914
|
+
"Fn::GetAtt": [
|
|
915
|
+
"lambdaapi893CD94E",
|
|
916
|
+
"Arn",
|
|
917
|
+
],
|
|
918
|
+
},
|
|
919
|
+
{
|
|
920
|
+
"Fn::Join": [
|
|
921
|
+
"",
|
|
922
|
+
[
|
|
923
|
+
{
|
|
924
|
+
"Fn::GetAtt": [
|
|
925
|
+
"lambdaapi893CD94E",
|
|
926
|
+
"Arn",
|
|
927
|
+
],
|
|
928
|
+
},
|
|
929
|
+
":*",
|
|
930
|
+
],
|
|
931
|
+
],
|
|
932
|
+
},
|
|
933
|
+
],
|
|
934
|
+
},
|
|
935
|
+
{
|
|
936
|
+
"Action": [
|
|
937
|
+
"logs:CreateLogDelivery",
|
|
938
|
+
"logs:GetLogDelivery",
|
|
939
|
+
"logs:UpdateLogDelivery",
|
|
940
|
+
"logs:DeleteLogDelivery",
|
|
941
|
+
"logs:ListLogDeliveries",
|
|
942
|
+
"logs:PutResourcePolicy",
|
|
943
|
+
"logs:DescribeResourcePolicies",
|
|
944
|
+
"logs:DescribeLogGroups",
|
|
945
|
+
],
|
|
946
|
+
"Effect": "Allow",
|
|
947
|
+
"Resource": "*",
|
|
948
|
+
},
|
|
949
|
+
{
|
|
950
|
+
"Action": [
|
|
951
|
+
"xray:PutTraceSegments",
|
|
952
|
+
"xray:PutTelemetryRecords",
|
|
953
|
+
"xray:GetSamplingRules",
|
|
954
|
+
"xray:GetSamplingTargets",
|
|
955
|
+
],
|
|
956
|
+
"Effect": "Allow",
|
|
957
|
+
"Resource": "*",
|
|
958
|
+
},
|
|
959
|
+
{
|
|
960
|
+
"Action": [
|
|
961
|
+
"s3:GetObject*",
|
|
962
|
+
"s3:GetBucket*",
|
|
963
|
+
"s3:List*",
|
|
964
|
+
],
|
|
965
|
+
"Effect": "Allow",
|
|
966
|
+
"Resource": [
|
|
967
|
+
{
|
|
968
|
+
"Fn::GetAtt": [
|
|
969
|
+
"ddbattributes95C63151",
|
|
970
|
+
"Arn",
|
|
971
|
+
],
|
|
972
|
+
},
|
|
973
|
+
{
|
|
974
|
+
"Fn::Join": [
|
|
975
|
+
"",
|
|
976
|
+
[
|
|
977
|
+
{
|
|
978
|
+
"Fn::GetAtt": [
|
|
979
|
+
"ddbattributes95C63151",
|
|
980
|
+
"Arn",
|
|
981
|
+
],
|
|
982
|
+
},
|
|
983
|
+
"/*",
|
|
984
|
+
],
|
|
985
|
+
],
|
|
986
|
+
},
|
|
987
|
+
],
|
|
988
|
+
},
|
|
989
|
+
],
|
|
990
|
+
"Version": "2012-10-17",
|
|
991
|
+
},
|
|
992
|
+
"PolicyName": "importcsvstatemachineRoleDefaultPolicyC6679553",
|
|
993
|
+
"Roles": [
|
|
994
|
+
{
|
|
995
|
+
"Ref": "importcsvstatemachineRole472165F7",
|
|
996
|
+
},
|
|
997
|
+
],
|
|
998
|
+
},
|
|
999
|
+
"Type": "AWS::IAM::Policy",
|
|
1000
|
+
},
|
|
1001
|
+
"importtmpdecsB7F4BA11": {
|
|
1002
|
+
"DeletionPolicy": "Delete",
|
|
1003
|
+
"DependsOn": [
|
|
1004
|
+
"importtmpdecsCustomResourcePolicy8BB24BAE",
|
|
1005
|
+
],
|
|
1006
|
+
"Properties": {
|
|
1007
|
+
"Create": "{"service":"DynamoDB","action":"describeTable","parameters":{"TableName":"dev--import_tmp"},"physicalResourceId":{"responsePath":"Table.TableArn"}}",
|
|
1008
|
+
"InstallLatestAwsSdk": true,
|
|
1009
|
+
"ServiceToken": {
|
|
1010
|
+
"Fn::GetAtt": [
|
|
1011
|
+
"AWS679f53fac002430cb0da5b7982bd22872D164C4C",
|
|
1012
|
+
"Arn",
|
|
1013
|
+
],
|
|
1014
|
+
},
|
|
1015
|
+
},
|
|
1016
|
+
"Type": "Custom::AWS",
|
|
1017
|
+
"UpdateReplacePolicy": "Delete",
|
|
1018
|
+
},
|
|
1019
|
+
"importtmpdecsCustomResourcePolicy8BB24BAE": {
|
|
1020
|
+
"Properties": {
|
|
1021
|
+
"PolicyDocument": {
|
|
1022
|
+
"Statement": [
|
|
1023
|
+
{
|
|
1024
|
+
"Action": "dynamodb:DescribeTable",
|
|
1025
|
+
"Effect": "Allow",
|
|
1026
|
+
"Resource": "*",
|
|
1027
|
+
},
|
|
1028
|
+
],
|
|
1029
|
+
"Version": "2012-10-17",
|
|
1030
|
+
},
|
|
1031
|
+
"PolicyName": "importtmpdecsCustomResourcePolicy8BB24BAE",
|
|
1032
|
+
"Roles": [
|
|
1033
|
+
{
|
|
1034
|
+
"Ref": "AWS679f53fac002430cb0da5b7982bd2287ServiceRoleC1EA0FF2",
|
|
1035
|
+
},
|
|
1036
|
+
],
|
|
1037
|
+
},
|
|
1038
|
+
"Type": "AWS::IAM::Policy",
|
|
1039
|
+
},
|
|
612
1040
|
"lambdaapi893CD94E": {
|
|
613
1041
|
"DependsOn": [
|
|
614
1042
|
"lambdaapiServiceRoleDefaultPolicy852237F1",
|
|
@@ -630,12 +1058,14 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
630
1058
|
"GraphQLUrl",
|
|
631
1059
|
],
|
|
632
1060
|
},
|
|
633
|
-
"APP_NAME": "
|
|
1061
|
+
"APP_NAME": "",
|
|
634
1062
|
"ATTRIBUTE_LIMIT_SIZE": "389120",
|
|
635
|
-
"COGNITO_USER_POOL_ID":
|
|
636
|
-
|
|
1063
|
+
"COGNITO_USER_POOL_ID": {
|
|
1064
|
+
"Ref": "devuserpool23B1805F",
|
|
1065
|
+
},
|
|
1066
|
+
"DATABASE_URL": "postgresql://@/?schema=public",
|
|
637
1067
|
"EVENT_SOURCE_DISABLED": "false",
|
|
638
|
-
"FRONT_BASE_URL": "
|
|
1068
|
+
"FRONT_BASE_URL": "",
|
|
639
1069
|
"LOG_LEVEL": "verbose",
|
|
640
1070
|
"NODE_ENV": "dev",
|
|
641
1071
|
"NODE_OPTIONS": "--enable-source-maps",
|
|
@@ -645,9 +1075,10 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
645
1075
|
"S3_PUBLIC_BUCKET_NAME": {
|
|
646
1076
|
"Ref": "publicbucket0D82CFFB",
|
|
647
1077
|
},
|
|
648
|
-
"SES_FROM_EMAIL": "
|
|
649
|
-
"SFN_COMMAND_ARN": "arn:aws:states:ap-northeast-1:101010101010:stateMachine:dev
|
|
650
|
-
"
|
|
1078
|
+
"SES_FROM_EMAIL": "",
|
|
1079
|
+
"SFN_COMMAND_ARN": "arn:aws:states:ap-northeast-1:101010101010:stateMachine:dev--command-handler",
|
|
1080
|
+
"SFN_IMPORT_CSV_ARN": "arn:aws:states:ap-northeast-1:101010101010:stateMachine:dev--import-csv-handler",
|
|
1081
|
+
"SFN_TASK_ARN": "arn:aws:states:ap-northeast-1:101010101010:stateMachine:dev--sfn-task-handler",
|
|
651
1082
|
"SNS_ALARM_TOPIC_ARN": {
|
|
652
1083
|
"Ref": "alarmsnsFB7BBC3B",
|
|
653
1084
|
},
|
|
@@ -657,7 +1088,7 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
657
1088
|
"TZ": "Asia/Tokyo",
|
|
658
1089
|
},
|
|
659
1090
|
},
|
|
660
|
-
"FunctionName": "dev
|
|
1091
|
+
"FunctionName": "dev--lambda-api",
|
|
661
1092
|
"Handler": "main.handler",
|
|
662
1093
|
"Layers": [
|
|
663
1094
|
{
|
|
@@ -676,7 +1107,7 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
676
1107
|
"Arn",
|
|
677
1108
|
],
|
|
678
1109
|
},
|
|
679
|
-
"Runtime": "
|
|
1110
|
+
"Runtime": "nodejs20.x",
|
|
680
1111
|
"Tags": [
|
|
681
1112
|
{
|
|
682
1113
|
"Key": "env",
|
|
@@ -684,7 +1115,7 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
684
1115
|
},
|
|
685
1116
|
{
|
|
686
1117
|
"Key": "name",
|
|
687
|
-
"Value": "
|
|
1118
|
+
"Value": "",
|
|
688
1119
|
},
|
|
689
1120
|
],
|
|
690
1121
|
"Timeout": 31536000,
|
|
@@ -693,13 +1124,51 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
693
1124
|
},
|
|
694
1125
|
"VpcConfig": {
|
|
695
1126
|
"SecurityGroupIds": [
|
|
696
|
-
|
|
1127
|
+
{
|
|
1128
|
+
"Fn::GetAtt": [
|
|
1129
|
+
"lambdaapiSecurityGroup76BCD08C",
|
|
1130
|
+
"GroupId",
|
|
1131
|
+
],
|
|
1132
|
+
},
|
|
697
1133
|
],
|
|
698
1134
|
"SubnetIds": [],
|
|
699
1135
|
},
|
|
700
1136
|
},
|
|
701
1137
|
"Type": "AWS::Lambda::Function",
|
|
702
1138
|
},
|
|
1139
|
+
"lambdaapiDynamoDBEventSourceTestInfraStackimporttmptableD054449DE218503B": {
|
|
1140
|
+
"Properties": {
|
|
1141
|
+
"BatchSize": 1,
|
|
1142
|
+
"EventSourceArn": {
|
|
1143
|
+
"Fn::GetAtt": [
|
|
1144
|
+
"importtmpdecsB7F4BA11",
|
|
1145
|
+
"Table.LatestStreamArn",
|
|
1146
|
+
],
|
|
1147
|
+
},
|
|
1148
|
+
"FilterCriteria": {
|
|
1149
|
+
"Filters": [
|
|
1150
|
+
{
|
|
1151
|
+
"Pattern": "{"eventName":["INSERT"]}",
|
|
1152
|
+
},
|
|
1153
|
+
],
|
|
1154
|
+
},
|
|
1155
|
+
"FunctionName": {
|
|
1156
|
+
"Ref": "lambdaapi893CD94E",
|
|
1157
|
+
},
|
|
1158
|
+
"StartingPosition": "TRIM_HORIZON",
|
|
1159
|
+
"Tags": [
|
|
1160
|
+
{
|
|
1161
|
+
"Key": "env",
|
|
1162
|
+
"Value": "dev",
|
|
1163
|
+
},
|
|
1164
|
+
{
|
|
1165
|
+
"Key": "name",
|
|
1166
|
+
"Value": "",
|
|
1167
|
+
},
|
|
1168
|
+
],
|
|
1169
|
+
},
|
|
1170
|
+
"Type": "AWS::Lambda::EventSourceMapping",
|
|
1171
|
+
},
|
|
703
1172
|
"lambdaapiDynamoDBEventSourceTestInfraStacksamplecommandtable0EA54DEAC580030B": {
|
|
704
1173
|
"Properties": {
|
|
705
1174
|
"BatchSize": 1,
|
|
@@ -727,7 +1196,7 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
727
1196
|
},
|
|
728
1197
|
{
|
|
729
1198
|
"Key": "name",
|
|
730
|
-
"Value": "
|
|
1199
|
+
"Value": "",
|
|
731
1200
|
},
|
|
732
1201
|
],
|
|
733
1202
|
},
|
|
@@ -760,12 +1229,36 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
760
1229
|
},
|
|
761
1230
|
{
|
|
762
1231
|
"Key": "name",
|
|
763
|
-
"Value": "
|
|
1232
|
+
"Value": "",
|
|
764
1233
|
},
|
|
765
1234
|
],
|
|
766
1235
|
},
|
|
767
1236
|
"Type": "AWS::Lambda::EventSourceMapping",
|
|
768
1237
|
},
|
|
1238
|
+
"lambdaapiSecurityGroup76BCD08C": {
|
|
1239
|
+
"Properties": {
|
|
1240
|
+
"GroupDescription": "Automatic security group for Lambda Function TestInfraStacklambdaapiA7796739",
|
|
1241
|
+
"SecurityGroupEgress": [
|
|
1242
|
+
{
|
|
1243
|
+
"CidrIp": "0.0.0.0/0",
|
|
1244
|
+
"Description": "Allow all outbound traffic by default",
|
|
1245
|
+
"IpProtocol": "-1",
|
|
1246
|
+
},
|
|
1247
|
+
],
|
|
1248
|
+
"Tags": [
|
|
1249
|
+
{
|
|
1250
|
+
"Key": "env",
|
|
1251
|
+
"Value": "dev",
|
|
1252
|
+
},
|
|
1253
|
+
{
|
|
1254
|
+
"Key": "name",
|
|
1255
|
+
"Value": "",
|
|
1256
|
+
},
|
|
1257
|
+
],
|
|
1258
|
+
"VpcId": "vpc-12345",
|
|
1259
|
+
},
|
|
1260
|
+
"Type": "AWS::EC2::SecurityGroup",
|
|
1261
|
+
},
|
|
769
1262
|
"lambdaapiServiceRole7E4263EE": {
|
|
770
1263
|
"Properties": {
|
|
771
1264
|
"AssumeRolePolicyDocument": {
|
|
@@ -813,7 +1306,7 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
813
1306
|
},
|
|
814
1307
|
{
|
|
815
1308
|
"Key": "name",
|
|
816
|
-
"Value": "
|
|
1309
|
+
"Value": "",
|
|
817
1310
|
},
|
|
818
1311
|
],
|
|
819
1312
|
},
|
|
@@ -879,6 +1372,22 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
879
1372
|
],
|
|
880
1373
|
},
|
|
881
1374
|
},
|
|
1375
|
+
{
|
|
1376
|
+
"Action": [
|
|
1377
|
+
"sqs:ReceiveMessage",
|
|
1378
|
+
"sqs:ChangeMessageVisibility",
|
|
1379
|
+
"sqs:GetQueueUrl",
|
|
1380
|
+
"sqs:DeleteMessage",
|
|
1381
|
+
"sqs:GetQueueAttributes",
|
|
1382
|
+
],
|
|
1383
|
+
"Effect": "Allow",
|
|
1384
|
+
"Resource": {
|
|
1385
|
+
"Fn::GetAtt": [
|
|
1386
|
+
"importactionsqs5E43BE2E",
|
|
1387
|
+
"Arn",
|
|
1388
|
+
],
|
|
1389
|
+
},
|
|
1390
|
+
},
|
|
882
1391
|
{
|
|
883
1392
|
"Action": "dynamodb:ListStreams",
|
|
884
1393
|
"Effect": "Allow",
|
|
@@ -912,6 +1421,20 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
912
1421
|
],
|
|
913
1422
|
},
|
|
914
1423
|
},
|
|
1424
|
+
{
|
|
1425
|
+
"Action": [
|
|
1426
|
+
"dynamodb:DescribeStream",
|
|
1427
|
+
"dynamodb:GetRecords",
|
|
1428
|
+
"dynamodb:GetShardIterator",
|
|
1429
|
+
],
|
|
1430
|
+
"Effect": "Allow",
|
|
1431
|
+
"Resource": {
|
|
1432
|
+
"Fn::GetAtt": [
|
|
1433
|
+
"importtmpdecsB7F4BA11",
|
|
1434
|
+
"Table.LatestStreamArn",
|
|
1435
|
+
],
|
|
1436
|
+
},
|
|
1437
|
+
},
|
|
915
1438
|
{
|
|
916
1439
|
"Action": [
|
|
917
1440
|
"cognito-idp:AdminGetUser",
|
|
@@ -926,15 +1449,9 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
926
1449
|
],
|
|
927
1450
|
"Effect": "Allow",
|
|
928
1451
|
"Resource": {
|
|
929
|
-
"Fn::
|
|
930
|
-
"",
|
|
931
|
-
|
|
932
|
-
"arn:",
|
|
933
|
-
{
|
|
934
|
-
"Ref": "AWS::Partition",
|
|
935
|
-
},
|
|
936
|
-
":cognito-idp:ap-northeast-1:101010101010:userpool/ap-northeast-1_NfyqKTjPS",
|
|
937
|
-
],
|
|
1452
|
+
"Fn::GetAtt": [
|
|
1453
|
+
"devuserpool23B1805F",
|
|
1454
|
+
"Arn",
|
|
938
1455
|
],
|
|
939
1456
|
},
|
|
940
1457
|
},
|
|
@@ -1089,6 +1606,31 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
1089
1606
|
},
|
|
1090
1607
|
"Type": "AWS::IAM::Policy",
|
|
1091
1608
|
},
|
|
1609
|
+
"lambdaapiSqsEventSourceTestInfraStackimportactionsqs8852D59E50E2FC5A": {
|
|
1610
|
+
"Properties": {
|
|
1611
|
+
"BatchSize": 1,
|
|
1612
|
+
"EventSourceArn": {
|
|
1613
|
+
"Fn::GetAtt": [
|
|
1614
|
+
"importactionsqs5E43BE2E",
|
|
1615
|
+
"Arn",
|
|
1616
|
+
],
|
|
1617
|
+
},
|
|
1618
|
+
"FunctionName": {
|
|
1619
|
+
"Ref": "lambdaapi893CD94E",
|
|
1620
|
+
},
|
|
1621
|
+
"Tags": [
|
|
1622
|
+
{
|
|
1623
|
+
"Key": "env",
|
|
1624
|
+
"Value": "dev",
|
|
1625
|
+
},
|
|
1626
|
+
{
|
|
1627
|
+
"Key": "name",
|
|
1628
|
+
"Value": "",
|
|
1629
|
+
},
|
|
1630
|
+
],
|
|
1631
|
+
},
|
|
1632
|
+
"Type": "AWS::Lambda::EventSourceMapping",
|
|
1633
|
+
},
|
|
1092
1634
|
"lambdaapiSqsEventSourceTestInfraStacknotifysqs3E7CCF8682B43C89": {
|
|
1093
1635
|
"Properties": {
|
|
1094
1636
|
"BatchSize": 1,
|
|
@@ -1108,7 +1650,7 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
1108
1650
|
},
|
|
1109
1651
|
{
|
|
1110
1652
|
"Key": "name",
|
|
1111
|
-
"Value": "
|
|
1653
|
+
"Value": "",
|
|
1112
1654
|
},
|
|
1113
1655
|
],
|
|
1114
1656
|
},
|
|
@@ -1133,7 +1675,7 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
1133
1675
|
},
|
|
1134
1676
|
{
|
|
1135
1677
|
"Key": "name",
|
|
1136
|
-
"Value": "
|
|
1678
|
+
"Value": "",
|
|
1137
1679
|
},
|
|
1138
1680
|
],
|
|
1139
1681
|
},
|
|
@@ -1158,7 +1700,7 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
1158
1700
|
},
|
|
1159
1701
|
{
|
|
1160
1702
|
"Key": "name",
|
|
1161
|
-
"Value": "
|
|
1703
|
+
"Value": "",
|
|
1162
1704
|
},
|
|
1163
1705
|
],
|
|
1164
1706
|
},
|
|
@@ -1176,7 +1718,7 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
1176
1718
|
"dynamodb:Query",
|
|
1177
1719
|
],
|
|
1178
1720
|
"Effect": "Allow",
|
|
1179
|
-
"Resource": "arn:aws:dynamodb:ap-northeast-1:101010101010:table/dev
|
|
1721
|
+
"Resource": "arn:aws:dynamodb:ap-northeast-1:101010101010:table/dev--*",
|
|
1180
1722
|
},
|
|
1181
1723
|
],
|
|
1182
1724
|
"Version": "2012-10-17",
|
|
@@ -1225,7 +1767,7 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
1225
1767
|
"states:DescribeExecution",
|
|
1226
1768
|
],
|
|
1227
1769
|
"Effect": "Allow",
|
|
1228
|
-
"Resource": "arn:aws:states:ap-northeast-1:101010101010:stateMachine:dev
|
|
1770
|
+
"Resource": "arn:aws:states:ap-northeast-1:101010101010:stateMachine:dev--command-handler",
|
|
1229
1771
|
},
|
|
1230
1772
|
],
|
|
1231
1773
|
"Version": "2012-10-17",
|
|
@@ -1239,12 +1781,36 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
1239
1781
|
},
|
|
1240
1782
|
"Type": "AWS::IAM::Policy",
|
|
1241
1783
|
},
|
|
1784
|
+
"lambdaimportcsvsfnstepfunctionpolicy724D9485": {
|
|
1785
|
+
"Properties": {
|
|
1786
|
+
"PolicyDocument": {
|
|
1787
|
+
"Statement": [
|
|
1788
|
+
{
|
|
1789
|
+
"Action": "states:*",
|
|
1790
|
+
"Effect": "Allow",
|
|
1791
|
+
"Resource": "arn:aws:states:ap-northeast-1:101010101010:stateMachine:dev--import-csv-handler",
|
|
1792
|
+
},
|
|
1793
|
+
],
|
|
1794
|
+
"Version": "2012-10-17",
|
|
1795
|
+
},
|
|
1796
|
+
"PolicyName": "lambdaimportcsvsfnstepfunctionpolicy724D9485",
|
|
1797
|
+
"Roles": [
|
|
1798
|
+
{
|
|
1799
|
+
"Ref": "lambdaapiServiceRole7E4263EE",
|
|
1800
|
+
},
|
|
1801
|
+
],
|
|
1802
|
+
},
|
|
1803
|
+
"Type": "AWS::IAM::Policy",
|
|
1804
|
+
},
|
|
1242
1805
|
"lambdasespolicyC6CB28C8": {
|
|
1243
1806
|
"Properties": {
|
|
1244
1807
|
"PolicyDocument": {
|
|
1245
1808
|
"Statement": [
|
|
1246
1809
|
{
|
|
1247
|
-
"Action":
|
|
1810
|
+
"Action": [
|
|
1811
|
+
"ses:SendEmail",
|
|
1812
|
+
"ses:SendTemplatedEmail",
|
|
1813
|
+
],
|
|
1248
1814
|
"Effect": "Allow",
|
|
1249
1815
|
"Resource": "*",
|
|
1250
1816
|
},
|
|
@@ -1267,7 +1833,7 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
1267
1833
|
{
|
|
1268
1834
|
"Action": "states:*",
|
|
1269
1835
|
"Effect": "Allow",
|
|
1270
|
-
"Resource": "arn:aws:states:ap-northeast-1:101010101010:stateMachine:dev
|
|
1836
|
+
"Resource": "arn:aws:states:ap-northeast-1:101010101010:stateMachine:dev--sfn-task-handler",
|
|
1271
1837
|
},
|
|
1272
1838
|
],
|
|
1273
1839
|
"Version": "2012-10-17",
|
|
@@ -1363,11 +1929,11 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
1363
1929
|
"MaxAge": 31536000,
|
|
1364
1930
|
},
|
|
1365
1931
|
"Description": "HTTP API for Lambda integration",
|
|
1366
|
-
"Name": "dev
|
|
1932
|
+
"Name": "dev--api",
|
|
1367
1933
|
"ProtocolType": "HTTP",
|
|
1368
1934
|
"Tags": {
|
|
1369
1935
|
"env": "dev",
|
|
1370
|
-
"name": "
|
|
1936
|
+
"name": "",
|
|
1371
1937
|
},
|
|
1372
1938
|
},
|
|
1373
1939
|
"Type": "AWS::ApiGatewayV2::Api",
|
|
@@ -1387,7 +1953,17 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
1387
1953
|
"Ref": "apigwclientE7D084A5",
|
|
1388
1954
|
},
|
|
1389
1955
|
],
|
|
1390
|
-
"Issuer":
|
|
1956
|
+
"Issuer": {
|
|
1957
|
+
"Fn::Join": [
|
|
1958
|
+
"",
|
|
1959
|
+
[
|
|
1960
|
+
"https://cognito-idp.ap-northeast-1.amazonaws.com/",
|
|
1961
|
+
{
|
|
1962
|
+
"Ref": "devuserpool23B1805F",
|
|
1963
|
+
},
|
|
1964
|
+
],
|
|
1965
|
+
],
|
|
1966
|
+
},
|
|
1391
1967
|
},
|
|
1392
1968
|
"Name": "CognitoAuthorizer",
|
|
1393
1969
|
},
|
|
@@ -1467,7 +2043,7 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
1467
2043
|
"StageName": "$default",
|
|
1468
2044
|
"Tags": {
|
|
1469
2045
|
"env": "dev",
|
|
1470
|
-
"name": "
|
|
2046
|
+
"name": "",
|
|
1471
2047
|
},
|
|
1472
2048
|
},
|
|
1473
2049
|
"Type": "AWS::ApiGatewayV2::Stage",
|
|
@@ -1793,13 +2369,13 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
1793
2369
|
"arm64",
|
|
1794
2370
|
],
|
|
1795
2371
|
"CompatibleRuntimes": [
|
|
1796
|
-
"
|
|
2372
|
+
"nodejs20.x",
|
|
1797
2373
|
],
|
|
1798
2374
|
"Content": {
|
|
1799
2375
|
"S3Bucket": "cdk-hnb659fds-assets-101010101010-ap-northeast-1",
|
|
1800
2376
|
"S3Key": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.zip",
|
|
1801
2377
|
},
|
|
1802
|
-
"LayerName": "dev
|
|
2378
|
+
"LayerName": "dev--main-layer",
|
|
1803
2379
|
},
|
|
1804
2380
|
"Type": "AWS::Lambda::LayerVersion",
|
|
1805
2381
|
},
|
|
@@ -1812,17 +2388,17 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
1812
2388
|
},
|
|
1813
2389
|
{
|
|
1814
2390
|
"Key": "name",
|
|
1815
|
-
"Value": "
|
|
2391
|
+
"Value": "",
|
|
1816
2392
|
},
|
|
1817
2393
|
],
|
|
1818
|
-
"TopicName": "dev
|
|
2394
|
+
"TopicName": "dev--main-sns",
|
|
1819
2395
|
},
|
|
1820
2396
|
"Type": "AWS::SNS::Topic",
|
|
1821
2397
|
},
|
|
1822
2398
|
"notifysqsEC095A61": {
|
|
1823
2399
|
"DeletionPolicy": "Delete",
|
|
1824
2400
|
"Properties": {
|
|
1825
|
-
"QueueName": "dev
|
|
2401
|
+
"QueueName": "dev--notification-queue",
|
|
1826
2402
|
"Tags": [
|
|
1827
2403
|
{
|
|
1828
2404
|
"Key": "env",
|
|
@@ -1830,7 +2406,7 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
1830
2406
|
},
|
|
1831
2407
|
{
|
|
1832
2408
|
"Key": "name",
|
|
1833
|
-
"Value": "
|
|
2409
|
+
"Value": "",
|
|
1834
2410
|
},
|
|
1835
2411
|
],
|
|
1836
2412
|
},
|
|
@@ -1900,7 +2476,7 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
1900
2476
|
"publicbucket0D82CFFB": {
|
|
1901
2477
|
"DeletionPolicy": "Delete",
|
|
1902
2478
|
"Properties": {
|
|
1903
|
-
"BucketName": "dev
|
|
2479
|
+
"BucketName": "dev--public",
|
|
1904
2480
|
"CorsConfiguration": {
|
|
1905
2481
|
"CorsRules": [
|
|
1906
2482
|
{
|
|
@@ -1932,7 +2508,7 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
1932
2508
|
},
|
|
1933
2509
|
{
|
|
1934
2510
|
"Key": "name",
|
|
1935
|
-
"Value": "
|
|
2511
|
+
"Value": "",
|
|
1936
2512
|
},
|
|
1937
2513
|
],
|
|
1938
2514
|
},
|
|
@@ -2048,7 +2624,7 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
2048
2624
|
},
|
|
2049
2625
|
{
|
|
2050
2626
|
"Key": "name",
|
|
2051
|
-
"Value": "
|
|
2627
|
+
"Value": "",
|
|
2052
2628
|
},
|
|
2053
2629
|
],
|
|
2054
2630
|
},
|
|
@@ -2064,12 +2640,14 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
2064
2640
|
"AuthenticationType": "AMAZON_COGNITO_USER_POOLS",
|
|
2065
2641
|
"UserPoolConfig": {
|
|
2066
2642
|
"AwsRegion": "ap-northeast-1",
|
|
2067
|
-
"UserPoolId":
|
|
2643
|
+
"UserPoolId": {
|
|
2644
|
+
"Ref": "devuserpool23B1805F",
|
|
2645
|
+
},
|
|
2068
2646
|
},
|
|
2069
2647
|
},
|
|
2070
2648
|
],
|
|
2071
2649
|
"AuthenticationType": "API_KEY",
|
|
2072
|
-
"Name": "dev
|
|
2650
|
+
"Name": "dev--realtime",
|
|
2073
2651
|
"Tags": [
|
|
2074
2652
|
{
|
|
2075
2653
|
"Key": "env",
|
|
@@ -2077,7 +2655,7 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
2077
2655
|
},
|
|
2078
2656
|
{
|
|
2079
2657
|
"Key": "name",
|
|
2080
|
-
"Value": "
|
|
2658
|
+
"Value": "",
|
|
2081
2659
|
},
|
|
2082
2660
|
],
|
|
2083
2661
|
"XrayEnabled": true,
|
|
@@ -2110,18 +2688,18 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
2110
2688
|
"ApiId",
|
|
2111
2689
|
],
|
|
2112
2690
|
},
|
|
2113
|
-
"DomainName": "
|
|
2691
|
+
"DomainName": "",
|
|
2114
2692
|
},
|
|
2115
2693
|
"Type": "AWS::AppSync::DomainNameApiAssociation",
|
|
2116
2694
|
},
|
|
2117
2695
|
"realtimeDomainName01674B94": {
|
|
2118
2696
|
"Properties": {
|
|
2119
|
-
"CertificateArn": "arn:aws:acm:us-east-1:
|
|
2697
|
+
"CertificateArn": "arn:aws:acm:us-east-1:101010101010:certificate/test-appsync",
|
|
2120
2698
|
"Description": {
|
|
2121
2699
|
"Fn::Join": [
|
|
2122
2700
|
"",
|
|
2123
2701
|
[
|
|
2124
|
-
"domain for dev
|
|
2702
|
+
"domain for dev--realtime at ",
|
|
2125
2703
|
{
|
|
2126
2704
|
"Fn::GetAtt": [
|
|
2127
2705
|
"realtime0CF38FF2",
|
|
@@ -2131,7 +2709,17 @@ exports[`snapshot test for InfraStack 1`] = `
|
|
|
2131
2709
|
],
|
|
2132
2710
|
],
|
|
2133
2711
|
},
|
|
2134
|
-
"DomainName": "
|
|
2712
|
+
"DomainName": "",
|
|
2713
|
+
"Tags": [
|
|
2714
|
+
{
|
|
2715
|
+
"Key": "env",
|
|
2716
|
+
"Value": "dev",
|
|
2717
|
+
},
|
|
2718
|
+
{
|
|
2719
|
+
"Key": "name",
|
|
2720
|
+
"Value": "",
|
|
2721
|
+
},
|
|
2722
|
+
],
|
|
2135
2723
|
},
|
|
2136
2724
|
"Type": "AWS::AppSync::DomainName",
|
|
2137
2725
|
},
|
|
@@ -2219,7 +2807,7 @@ schema {
|
|
|
2219
2807
|
"samplecommanddecsCustomResourcePolicyE6F75ED3",
|
|
2220
2808
|
],
|
|
2221
2809
|
"Properties": {
|
|
2222
|
-
"Create": "{"service":"DynamoDB","action":"describeTable","parameters":{"TableName":"dev
|
|
2810
|
+
"Create": "{"service":"DynamoDB","action":"describeTable","parameters":{"TableName":"dev--sample-command"},"physicalResourceId":{"responsePath":"Table.TableArn"}}",
|
|
2223
2811
|
"InstallLatestAwsSdk": true,
|
|
2224
2812
|
"ServiceToken": {
|
|
2225
2813
|
"Fn::GetAtt": [
|
|
@@ -2255,7 +2843,7 @@ schema {
|
|
|
2255
2843
|
"subtaskstatussqs337C4C1A": {
|
|
2256
2844
|
"DeletionPolicy": "Delete",
|
|
2257
2845
|
"Properties": {
|
|
2258
|
-
"QueueName": "dev
|
|
2846
|
+
"QueueName": "dev--sub-task-status-queue",
|
|
2259
2847
|
"Tags": [
|
|
2260
2848
|
{
|
|
2261
2849
|
"Key": "env",
|
|
@@ -2263,7 +2851,7 @@ schema {
|
|
|
2263
2851
|
},
|
|
2264
2852
|
{
|
|
2265
2853
|
"Key": "name",
|
|
2266
|
-
"Value": "
|
|
2854
|
+
"Value": "",
|
|
2267
2855
|
},
|
|
2268
2856
|
],
|
|
2269
2857
|
},
|
|
@@ -2332,7 +2920,7 @@ schema {
|
|
|
2332
2920
|
"taskdeadlettersqs91D16094": {
|
|
2333
2921
|
"DeletionPolicy": "Delete",
|
|
2334
2922
|
"Properties": {
|
|
2335
|
-
"QueueName": "dev
|
|
2923
|
+
"QueueName": "dev--task-dead-letter-queue",
|
|
2336
2924
|
"Tags": [
|
|
2337
2925
|
{
|
|
2338
2926
|
"Key": "env",
|
|
@@ -2340,7 +2928,7 @@ schema {
|
|
|
2340
2928
|
},
|
|
2341
2929
|
{
|
|
2342
2930
|
"Key": "name",
|
|
2343
|
-
"Value": "
|
|
2931
|
+
"Value": "",
|
|
2344
2932
|
},
|
|
2345
2933
|
],
|
|
2346
2934
|
},
|
|
@@ -2404,7 +2992,7 @@ schema {
|
|
|
2404
2992
|
"taskhandlersfnlogB2666A7A": {
|
|
2405
2993
|
"DeletionPolicy": "Delete",
|
|
2406
2994
|
"Properties": {
|
|
2407
|
-
"LogGroupName": "/aws/vendedlogs/states/dev
|
|
2995
|
+
"LogGroupName": "/aws/vendedlogs/states/dev--task-handler-state-machine-Logs",
|
|
2408
2996
|
"RetentionInDays": 180,
|
|
2409
2997
|
"Tags": [
|
|
2410
2998
|
{
|
|
@@ -2413,7 +3001,7 @@ schema {
|
|
|
2413
3001
|
},
|
|
2414
3002
|
{
|
|
2415
3003
|
"Key": "name",
|
|
2416
|
-
"Value": "
|
|
3004
|
+
"Value": "",
|
|
2417
3005
|
},
|
|
2418
3006
|
],
|
|
2419
3007
|
},
|
|
@@ -2467,7 +3055,7 @@ schema {
|
|
|
2467
3055
|
"Arn",
|
|
2468
3056
|
],
|
|
2469
3057
|
},
|
|
2470
|
-
"StateMachineName": "dev
|
|
3058
|
+
"StateMachineName": "dev--sfn-task-handler",
|
|
2471
3059
|
"Tags": [
|
|
2472
3060
|
{
|
|
2473
3061
|
"Key": "env",
|
|
@@ -2475,7 +3063,7 @@ schema {
|
|
|
2475
3063
|
},
|
|
2476
3064
|
{
|
|
2477
3065
|
"Key": "name",
|
|
2478
|
-
"Value": "
|
|
3066
|
+
"Value": "",
|
|
2479
3067
|
},
|
|
2480
3068
|
],
|
|
2481
3069
|
"TracingConfiguration": {
|
|
@@ -2506,7 +3094,7 @@ schema {
|
|
|
2506
3094
|
},
|
|
2507
3095
|
{
|
|
2508
3096
|
"Key": "name",
|
|
2509
|
-
"Value": "
|
|
3097
|
+
"Value": "",
|
|
2510
3098
|
},
|
|
2511
3099
|
],
|
|
2512
3100
|
},
|
|
@@ -2584,7 +3172,7 @@ schema {
|
|
|
2584
3172
|
"tasksdecsCustomResourcePolicy766680A1",
|
|
2585
3173
|
],
|
|
2586
3174
|
"Properties": {
|
|
2587
|
-
"Create": "{"service":"DynamoDB","action":"describeTable","parameters":{"TableName":"dev
|
|
3175
|
+
"Create": "{"service":"DynamoDB","action":"describeTable","parameters":{"TableName":"dev--tasks"},"physicalResourceId":{"responsePath":"Table.TableArn"}}",
|
|
2588
3176
|
"InstallLatestAwsSdk": true,
|
|
2589
3177
|
"ServiceToken": {
|
|
2590
3178
|
"Fn::GetAtt": [
|
|
@@ -2620,7 +3208,7 @@ schema {
|
|
|
2620
3208
|
"tasksqs12D9B615": {
|
|
2621
3209
|
"DeletionPolicy": "Delete",
|
|
2622
3210
|
"Properties": {
|
|
2623
|
-
"QueueName": "dev
|
|
3211
|
+
"QueueName": "dev--task-action-queue",
|
|
2624
3212
|
"RedrivePolicy": {
|
|
2625
3213
|
"deadLetterTargetArn": {
|
|
2626
3214
|
"Fn::GetAtt": [
|
|
@@ -2637,7 +3225,7 @@ schema {
|
|
|
2637
3225
|
},
|
|
2638
3226
|
{
|
|
2639
3227
|
"Key": "name",
|
|
2640
|
-
"Value": "
|
|
3228
|
+
"Value": "",
|
|
2641
3229
|
},
|
|
2642
3230
|
],
|
|
2643
3231
|
},
|