@aws-solutions-constructs/aws-alb-lambda 2.44.0 → 2.45.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.
- package/.jsii +105 -14
- package/lib/index.js +6 -5
- package/package.json +6 -6
- package/test/alb-lambda.test.js +90 -1
- package/test/integ.privateApiExistingResources.expected.json +98 -98
- package/test/integ.privateApiNewResources.expected.json +44 -44
- package/test/integ.publicApiExistingResources.expected.json +98 -98
- package/test/integ.publicApiNewResources.expected.json +98 -98
- package/test/integ.twoTargets.expected.json +106 -106
|
@@ -465,18 +465,18 @@
|
|
|
465
465
|
},
|
|
466
466
|
"S3Key": "7caf594b8ad91abecca72f7f10a23a5cf446d05dc00d6194619935e7e3fd5a79.zip"
|
|
467
467
|
},
|
|
468
|
-
"Role": {
|
|
469
|
-
"Fn::GetAtt": [
|
|
470
|
-
"testoneLambdaFunctionServiceRoleE92573D3",
|
|
471
|
-
"Arn"
|
|
472
|
-
]
|
|
473
|
-
},
|
|
474
468
|
"Environment": {
|
|
475
469
|
"Variables": {
|
|
476
470
|
"AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1"
|
|
477
471
|
}
|
|
478
472
|
},
|
|
479
473
|
"Handler": "index.handler",
|
|
474
|
+
"Role": {
|
|
475
|
+
"Fn::GetAtt": [
|
|
476
|
+
"testoneLambdaFunctionServiceRoleE92573D3",
|
|
477
|
+
"Arn"
|
|
478
|
+
]
|
|
479
|
+
},
|
|
480
480
|
"Runtime": "nodejs16.x",
|
|
481
481
|
"TracingConfig": {
|
|
482
482
|
"Mode": "Active"
|
|
@@ -581,6 +581,7 @@
|
|
|
581
581
|
"testonetg2tg6459EC7C": {
|
|
582
582
|
"Type": "AWS::ElasticLoadBalancingV2::TargetGroup",
|
|
583
583
|
"Properties": {
|
|
584
|
+
"TargetType": "lambda",
|
|
584
585
|
"Targets": [
|
|
585
586
|
{
|
|
586
587
|
"Id": {
|
|
@@ -590,8 +591,7 @@
|
|
|
590
591
|
]
|
|
591
592
|
}
|
|
592
593
|
}
|
|
593
|
-
]
|
|
594
|
-
"TargetType": "lambda"
|
|
594
|
+
]
|
|
595
595
|
},
|
|
596
596
|
"DependsOn": [
|
|
597
597
|
"testoneLambdaFunctionInvoke2UTWxhlfyqbT5FTn5jvgbLgjFfJwzswGk55DU1HY508A8518"
|
|
@@ -615,9 +615,6 @@
|
|
|
615
615
|
"VpcisolatedSubnet1SubnetE62B1B9B": {
|
|
616
616
|
"Type": "AWS::EC2::Subnet",
|
|
617
617
|
"Properties": {
|
|
618
|
-
"VpcId": {
|
|
619
|
-
"Ref": "Vpc8378EB38"
|
|
620
|
-
},
|
|
621
618
|
"AvailabilityZone": "test-region-1a",
|
|
622
619
|
"CidrBlock": "10.0.0.0/18",
|
|
623
620
|
"MapPublicIpOnLaunch": false,
|
|
@@ -634,21 +631,24 @@
|
|
|
634
631
|
"Key": "Name",
|
|
635
632
|
"Value": "privateApiNewResources/Vpc/isolatedSubnet1"
|
|
636
633
|
}
|
|
637
|
-
]
|
|
634
|
+
],
|
|
635
|
+
"VpcId": {
|
|
636
|
+
"Ref": "Vpc8378EB38"
|
|
637
|
+
}
|
|
638
638
|
}
|
|
639
639
|
},
|
|
640
640
|
"VpcisolatedSubnet1RouteTableE442650B": {
|
|
641
641
|
"Type": "AWS::EC2::RouteTable",
|
|
642
642
|
"Properties": {
|
|
643
|
-
"VpcId": {
|
|
644
|
-
"Ref": "Vpc8378EB38"
|
|
645
|
-
},
|
|
646
643
|
"Tags": [
|
|
647
644
|
{
|
|
648
645
|
"Key": "Name",
|
|
649
646
|
"Value": "privateApiNewResources/Vpc/isolatedSubnet1"
|
|
650
647
|
}
|
|
651
|
-
]
|
|
648
|
+
],
|
|
649
|
+
"VpcId": {
|
|
650
|
+
"Ref": "Vpc8378EB38"
|
|
651
|
+
}
|
|
652
652
|
}
|
|
653
653
|
},
|
|
654
654
|
"VpcisolatedSubnet1RouteTableAssociationD259E31A": {
|
|
@@ -665,9 +665,6 @@
|
|
|
665
665
|
"VpcisolatedSubnet2Subnet39217055": {
|
|
666
666
|
"Type": "AWS::EC2::Subnet",
|
|
667
667
|
"Properties": {
|
|
668
|
-
"VpcId": {
|
|
669
|
-
"Ref": "Vpc8378EB38"
|
|
670
|
-
},
|
|
671
668
|
"AvailabilityZone": "test-region-1b",
|
|
672
669
|
"CidrBlock": "10.0.64.0/18",
|
|
673
670
|
"MapPublicIpOnLaunch": false,
|
|
@@ -684,21 +681,24 @@
|
|
|
684
681
|
"Key": "Name",
|
|
685
682
|
"Value": "privateApiNewResources/Vpc/isolatedSubnet2"
|
|
686
683
|
}
|
|
687
|
-
]
|
|
684
|
+
],
|
|
685
|
+
"VpcId": {
|
|
686
|
+
"Ref": "Vpc8378EB38"
|
|
687
|
+
}
|
|
688
688
|
}
|
|
689
689
|
},
|
|
690
690
|
"VpcisolatedSubnet2RouteTable334F9764": {
|
|
691
691
|
"Type": "AWS::EC2::RouteTable",
|
|
692
692
|
"Properties": {
|
|
693
|
-
"VpcId": {
|
|
694
|
-
"Ref": "Vpc8378EB38"
|
|
695
|
-
},
|
|
696
693
|
"Tags": [
|
|
697
694
|
{
|
|
698
695
|
"Key": "Name",
|
|
699
696
|
"Value": "privateApiNewResources/Vpc/isolatedSubnet2"
|
|
700
697
|
}
|
|
701
|
-
]
|
|
698
|
+
],
|
|
699
|
+
"VpcId": {
|
|
700
|
+
"Ref": "Vpc8378EB38"
|
|
701
|
+
}
|
|
702
702
|
}
|
|
703
703
|
},
|
|
704
704
|
"VpcisolatedSubnet2RouteTableAssociation25A4716F": {
|
|
@@ -715,9 +715,6 @@
|
|
|
715
715
|
"VpcisolatedSubnet3Subnet44F2537D": {
|
|
716
716
|
"Type": "AWS::EC2::Subnet",
|
|
717
717
|
"Properties": {
|
|
718
|
-
"VpcId": {
|
|
719
|
-
"Ref": "Vpc8378EB38"
|
|
720
|
-
},
|
|
721
718
|
"AvailabilityZone": "test-region-1c",
|
|
722
719
|
"CidrBlock": "10.0.128.0/18",
|
|
723
720
|
"MapPublicIpOnLaunch": false,
|
|
@@ -734,21 +731,24 @@
|
|
|
734
731
|
"Key": "Name",
|
|
735
732
|
"Value": "privateApiNewResources/Vpc/isolatedSubnet3"
|
|
736
733
|
}
|
|
737
|
-
]
|
|
734
|
+
],
|
|
735
|
+
"VpcId": {
|
|
736
|
+
"Ref": "Vpc8378EB38"
|
|
737
|
+
}
|
|
738
738
|
}
|
|
739
739
|
},
|
|
740
740
|
"VpcisolatedSubnet3RouteTableA2F6BBC0": {
|
|
741
741
|
"Type": "AWS::EC2::RouteTable",
|
|
742
742
|
"Properties": {
|
|
743
|
-
"VpcId": {
|
|
744
|
-
"Ref": "Vpc8378EB38"
|
|
745
|
-
},
|
|
746
743
|
"Tags": [
|
|
747
744
|
{
|
|
748
745
|
"Key": "Name",
|
|
749
746
|
"Value": "privateApiNewResources/Vpc/isolatedSubnet3"
|
|
750
747
|
}
|
|
751
|
-
]
|
|
748
|
+
],
|
|
749
|
+
"VpcId": {
|
|
750
|
+
"Ref": "Vpc8378EB38"
|
|
751
|
+
}
|
|
752
752
|
}
|
|
753
753
|
},
|
|
754
754
|
"VpcisolatedSubnet3RouteTableAssociationDC010BEB": {
|
|
@@ -780,7 +780,7 @@
|
|
|
780
780
|
"Tags": [
|
|
781
781
|
{
|
|
782
782
|
"Key": "Name",
|
|
783
|
-
"Value": "privateApiNewResources/Vpc"
|
|
783
|
+
"Value": "privateApiNewResources/Vpc/FlowLog"
|
|
784
784
|
}
|
|
785
785
|
]
|
|
786
786
|
}
|
|
@@ -832,7 +832,7 @@
|
|
|
832
832
|
"Tags": [
|
|
833
833
|
{
|
|
834
834
|
"Key": "Name",
|
|
835
|
-
"Value": "privateApiNewResources/Vpc"
|
|
835
|
+
"Value": "privateApiNewResources/Vpc/FlowLog"
|
|
836
836
|
}
|
|
837
837
|
]
|
|
838
838
|
},
|
|
@@ -852,11 +852,6 @@
|
|
|
852
852
|
"VpcFlowLog8FF33A73": {
|
|
853
853
|
"Type": "AWS::EC2::FlowLog",
|
|
854
854
|
"Properties": {
|
|
855
|
-
"ResourceId": {
|
|
856
|
-
"Ref": "Vpc8378EB38"
|
|
857
|
-
},
|
|
858
|
-
"ResourceType": "VPC",
|
|
859
|
-
"TrafficType": "ALL",
|
|
860
855
|
"DeliverLogsPermissionArn": {
|
|
861
856
|
"Fn::GetAtt": [
|
|
862
857
|
"VpcFlowLogIAMRole6A475D41",
|
|
@@ -867,12 +862,17 @@
|
|
|
867
862
|
"LogGroupName": {
|
|
868
863
|
"Ref": "VpcFlowLogLogGroup7B5C56B9"
|
|
869
864
|
},
|
|
865
|
+
"ResourceId": {
|
|
866
|
+
"Ref": "Vpc8378EB38"
|
|
867
|
+
},
|
|
868
|
+
"ResourceType": "VPC",
|
|
870
869
|
"Tags": [
|
|
871
870
|
{
|
|
872
871
|
"Key": "Name",
|
|
873
|
-
"Value": "privateApiNewResources/Vpc"
|
|
872
|
+
"Value": "privateApiNewResources/Vpc/FlowLog"
|
|
874
873
|
}
|
|
875
|
-
]
|
|
874
|
+
],
|
|
875
|
+
"TrafficType": "ALL"
|
|
876
876
|
}
|
|
877
877
|
},
|
|
878
878
|
"CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": {
|
|
@@ -904,18 +904,18 @@
|
|
|
904
904
|
"S3Bucket": {
|
|
905
905
|
"Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-us-east-1"
|
|
906
906
|
},
|
|
907
|
-
"S3Key": "
|
|
907
|
+
"S3Key": "5194f926380567b6fdffc61629afdad2afc818614cb227df45e499c69db163a7.zip"
|
|
908
908
|
},
|
|
909
909
|
"Timeout": 900,
|
|
910
910
|
"MemorySize": 128,
|
|
911
|
-
"Handler": "
|
|
911
|
+
"Handler": "index.handler",
|
|
912
912
|
"Role": {
|
|
913
913
|
"Fn::GetAtt": [
|
|
914
914
|
"CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092",
|
|
915
915
|
"Arn"
|
|
916
916
|
]
|
|
917
917
|
},
|
|
918
|
-
"Runtime": "
|
|
918
|
+
"Runtime": "nodejs18.x",
|
|
919
919
|
"Description": {
|
|
920
920
|
"Fn::Join": [
|
|
921
921
|
"",
|