@aws-solutions-constructs/aws-alb-lambda 2.44.0 → 2.46.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 (24) hide show
  1. package/.jsii +105 -14
  2. package/lib/index.js +6 -5
  3. package/package.json +6 -6
  4. package/test/alb-lambda.test.js +90 -1
  5. package/test/{integ.privateApiExistingResources.expected.json → integ.alblam-privateApiExistingResources.expected.json} +121 -120
  6. package/test/integ.alblam-privateApiExistingResources.js +80 -0
  7. package/test/{integ.privateApiNewResources.expected.json → integ.alblam-privateApiNewResources.expected.json} +54 -53
  8. package/test/integ.alblam-privateApiNewResources.js +58 -0
  9. package/test/{integ.publicApiExistingResources.expected.json → integ.alblam-publicApiExistingResources.expected.json} +121 -120
  10. package/test/integ.alblam-publicApiExistingResources.js +88 -0
  11. package/test/{integ.publicApiNewResources.expected.json → integ.alblam-publicApiNewResources.expected.json} +121 -120
  12. package/test/integ.alblam-publicApiNewResources.js +58 -0
  13. package/test/{integ.twoTargets.expected.json → integ.alblam-twoTargets.expected.json} +130 -129
  14. package/test/integ.alblam-twoTargets.js +74 -0
  15. package/test/integ.privateApiExistingResources.js +0 -80
  16. package/test/integ.privateApiNewResources.js +0 -58
  17. package/test/integ.publicApiExistingResources.js +0 -88
  18. package/test/integ.publicApiNewResources.js +0 -58
  19. package/test/integ.twoTargets.js +0 -74
  20. /package/test/{integ.privateApiExistingResources.d.ts → integ.alblam-privateApiExistingResources.d.ts} +0 -0
  21. /package/test/{integ.privateApiNewResources.d.ts → integ.alblam-privateApiNewResources.d.ts} +0 -0
  22. /package/test/{integ.publicApiExistingResources.d.ts → integ.alblam-publicApiExistingResources.d.ts} +0 -0
  23. /package/test/{integ.publicApiNewResources.d.ts → integ.alblam-publicApiNewResources.d.ts} +0 -0
  24. /package/test/{integ.twoTargets.d.ts → integ.alblam-twoTargets.d.ts} +0 -0
@@ -61,7 +61,7 @@
61
61
  "testonetestonealbSecurityGroup4DED9E2A": {
62
62
  "Type": "AWS::EC2::SecurityGroup",
63
63
  "Properties": {
64
- "GroupDescription": "Automatically created Security Group for ELB twoTargetstestonetestonealbB0E5AEF9",
64
+ "GroupDescription": "Automatically created Security Group for ELB alblamtwoTargetstestonetestonealbCEEAAF66",
65
65
  "SecurityGroupEgress": [
66
66
  {
67
67
  "CidrIp": "255.255.255.255/32",
@@ -193,6 +193,7 @@
193
193
  },
194
194
  {
195
195
  "Action": [
196
+ "s3:PutBucketPolicy",
196
197
  "s3:GetBucket*",
197
198
  "s3:List*",
198
199
  "s3:DeleteObject*"
@@ -435,7 +436,7 @@
435
436
  "testoneReplaceDefaultSecurityGroupsecuritygroupE46270FE": {
436
437
  "Type": "AWS::EC2::SecurityGroup",
437
438
  "Properties": {
438
- "GroupDescription": "twoTargets/test-one/ReplaceDefaultSecurityGroup-security-group",
439
+ "GroupDescription": "alblam-twoTargets/test-one/ReplaceDefaultSecurityGroup-security-group",
439
440
  "SecurityGroupEgress": [
440
441
  {
441
442
  "CidrIp": "0.0.0.0/0",
@@ -471,18 +472,18 @@
471
472
  },
472
473
  "S3Key": "7caf594b8ad91abecca72f7f10a23a5cf446d05dc00d6194619935e7e3fd5a79.zip"
473
474
  },
474
- "Role": {
475
- "Fn::GetAtt": [
476
- "testoneLambdaFunctionServiceRoleE92573D3",
477
- "Arn"
478
- ]
479
- },
480
475
  "Environment": {
481
476
  "Variables": {
482
477
  "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1"
483
478
  }
484
479
  },
485
480
  "Handler": "index.handler",
481
+ "Role": {
482
+ "Fn::GetAtt": [
483
+ "testoneLambdaFunctionServiceRoleE92573D3",
484
+ "Arn"
485
+ ]
486
+ },
486
487
  "Runtime": "nodejs16.x",
487
488
  "TracingConfig": {
488
489
  "Mode": "Active"
@@ -620,6 +621,7 @@
620
621
  "testonetg2tg6459EC7C": {
621
622
  "Type": "AWS::ElasticLoadBalancingV2::TargetGroup",
622
623
  "Properties": {
624
+ "TargetType": "lambda",
623
625
  "Targets": [
624
626
  {
625
627
  "Id": {
@@ -629,8 +631,7 @@
629
631
  ]
630
632
  }
631
633
  }
632
- ],
633
- "TargetType": "lambda"
634
+ ]
634
635
  },
635
636
  "DependsOn": [
636
637
  "testoneLambdaFunctionInvoke2UTWxhlfyqbT5FTn5jvgbLgjFfJwzswGk55DU1HY508A8518"
@@ -646,7 +647,7 @@
646
647
  "Tags": [
647
648
  {
648
649
  "Key": "Name",
649
- "Value": "twoTargets/Vpc"
650
+ "Value": "alblam-twoTargets/Vpc"
650
651
  }
651
652
  ]
652
653
  }
@@ -654,9 +655,6 @@
654
655
  "VpcPublicSubnet1Subnet5C2D37C4": {
655
656
  "Type": "AWS::EC2::Subnet",
656
657
  "Properties": {
657
- "VpcId": {
658
- "Ref": "Vpc8378EB38"
659
- },
660
658
  "AvailabilityZone": "test-region-1a",
661
659
  "CidrBlock": "10.0.0.0/19",
662
660
  "MapPublicIpOnLaunch": true,
@@ -671,9 +669,12 @@
671
669
  },
672
670
  {
673
671
  "Key": "Name",
674
- "Value": "twoTargets/Vpc/PublicSubnet1"
672
+ "Value": "alblam-twoTargets/Vpc/PublicSubnet1"
675
673
  }
676
- ]
674
+ ],
675
+ "VpcId": {
676
+ "Ref": "Vpc8378EB38"
677
+ }
677
678
  },
678
679
  "Metadata": {
679
680
  "cfn_nag": {
@@ -689,15 +690,15 @@
689
690
  "VpcPublicSubnet1RouteTable6C95E38E": {
690
691
  "Type": "AWS::EC2::RouteTable",
691
692
  "Properties": {
692
- "VpcId": {
693
- "Ref": "Vpc8378EB38"
694
- },
695
693
  "Tags": [
696
694
  {
697
695
  "Key": "Name",
698
- "Value": "twoTargets/Vpc/PublicSubnet1"
696
+ "Value": "alblam-twoTargets/Vpc/PublicSubnet1"
699
697
  }
700
- ]
698
+ ],
699
+ "VpcId": {
700
+ "Ref": "Vpc8378EB38"
701
+ }
701
702
  }
702
703
  },
703
704
  "VpcPublicSubnet1RouteTableAssociation97140677": {
@@ -714,12 +715,12 @@
714
715
  "VpcPublicSubnet1DefaultRoute3DA9E72A": {
715
716
  "Type": "AWS::EC2::Route",
716
717
  "Properties": {
717
- "RouteTableId": {
718
- "Ref": "VpcPublicSubnet1RouteTable6C95E38E"
719
- },
720
718
  "DestinationCidrBlock": "0.0.0.0/0",
721
719
  "GatewayId": {
722
720
  "Ref": "VpcIGWD7BA715C"
721
+ },
722
+ "RouteTableId": {
723
+ "Ref": "VpcPublicSubnet1RouteTable6C95E38E"
723
724
  }
724
725
  },
725
726
  "DependsOn": [
@@ -733,7 +734,7 @@
733
734
  "Tags": [
734
735
  {
735
736
  "Key": "Name",
736
- "Value": "twoTargets/Vpc/PublicSubnet1"
737
+ "Value": "alblam-twoTargets/Vpc/PublicSubnet1"
737
738
  }
738
739
  ]
739
740
  }
@@ -741,19 +742,19 @@
741
742
  "VpcPublicSubnet1NATGateway4D7517AA": {
742
743
  "Type": "AWS::EC2::NatGateway",
743
744
  "Properties": {
744
- "SubnetId": {
745
- "Ref": "VpcPublicSubnet1Subnet5C2D37C4"
746
- },
747
745
  "AllocationId": {
748
746
  "Fn::GetAtt": [
749
747
  "VpcPublicSubnet1EIPD7E02669",
750
748
  "AllocationId"
751
749
  ]
752
750
  },
751
+ "SubnetId": {
752
+ "Ref": "VpcPublicSubnet1Subnet5C2D37C4"
753
+ },
753
754
  "Tags": [
754
755
  {
755
756
  "Key": "Name",
756
- "Value": "twoTargets/Vpc/PublicSubnet1"
757
+ "Value": "alblam-twoTargets/Vpc/PublicSubnet1"
757
758
  }
758
759
  ]
759
760
  },
@@ -765,9 +766,6 @@
765
766
  "VpcPublicSubnet2Subnet691E08A3": {
766
767
  "Type": "AWS::EC2::Subnet",
767
768
  "Properties": {
768
- "VpcId": {
769
- "Ref": "Vpc8378EB38"
770
- },
771
769
  "AvailabilityZone": "test-region-1b",
772
770
  "CidrBlock": "10.0.32.0/19",
773
771
  "MapPublicIpOnLaunch": true,
@@ -782,9 +780,12 @@
782
780
  },
783
781
  {
784
782
  "Key": "Name",
785
- "Value": "twoTargets/Vpc/PublicSubnet2"
783
+ "Value": "alblam-twoTargets/Vpc/PublicSubnet2"
786
784
  }
787
- ]
785
+ ],
786
+ "VpcId": {
787
+ "Ref": "Vpc8378EB38"
788
+ }
788
789
  },
789
790
  "Metadata": {
790
791
  "cfn_nag": {
@@ -800,15 +801,15 @@
800
801
  "VpcPublicSubnet2RouteTable94F7E489": {
801
802
  "Type": "AWS::EC2::RouteTable",
802
803
  "Properties": {
803
- "VpcId": {
804
- "Ref": "Vpc8378EB38"
805
- },
806
804
  "Tags": [
807
805
  {
808
806
  "Key": "Name",
809
- "Value": "twoTargets/Vpc/PublicSubnet2"
807
+ "Value": "alblam-twoTargets/Vpc/PublicSubnet2"
810
808
  }
811
- ]
809
+ ],
810
+ "VpcId": {
811
+ "Ref": "Vpc8378EB38"
812
+ }
812
813
  }
813
814
  },
814
815
  "VpcPublicSubnet2RouteTableAssociationDD5762D8": {
@@ -825,12 +826,12 @@
825
826
  "VpcPublicSubnet2DefaultRoute97F91067": {
826
827
  "Type": "AWS::EC2::Route",
827
828
  "Properties": {
828
- "RouteTableId": {
829
- "Ref": "VpcPublicSubnet2RouteTable94F7E489"
830
- },
831
829
  "DestinationCidrBlock": "0.0.0.0/0",
832
830
  "GatewayId": {
833
831
  "Ref": "VpcIGWD7BA715C"
832
+ },
833
+ "RouteTableId": {
834
+ "Ref": "VpcPublicSubnet2RouteTable94F7E489"
834
835
  }
835
836
  },
836
837
  "DependsOn": [
@@ -844,7 +845,7 @@
844
845
  "Tags": [
845
846
  {
846
847
  "Key": "Name",
847
- "Value": "twoTargets/Vpc/PublicSubnet2"
848
+ "Value": "alblam-twoTargets/Vpc/PublicSubnet2"
848
849
  }
849
850
  ]
850
851
  }
@@ -852,19 +853,19 @@
852
853
  "VpcPublicSubnet2NATGateway9182C01D": {
853
854
  "Type": "AWS::EC2::NatGateway",
854
855
  "Properties": {
855
- "SubnetId": {
856
- "Ref": "VpcPublicSubnet2Subnet691E08A3"
857
- },
858
856
  "AllocationId": {
859
857
  "Fn::GetAtt": [
860
858
  "VpcPublicSubnet2EIP3C605A87",
861
859
  "AllocationId"
862
860
  ]
863
861
  },
862
+ "SubnetId": {
863
+ "Ref": "VpcPublicSubnet2Subnet691E08A3"
864
+ },
864
865
  "Tags": [
865
866
  {
866
867
  "Key": "Name",
867
- "Value": "twoTargets/Vpc/PublicSubnet2"
868
+ "Value": "alblam-twoTargets/Vpc/PublicSubnet2"
868
869
  }
869
870
  ]
870
871
  },
@@ -876,9 +877,6 @@
876
877
  "VpcPublicSubnet3SubnetBE12F0B6": {
877
878
  "Type": "AWS::EC2::Subnet",
878
879
  "Properties": {
879
- "VpcId": {
880
- "Ref": "Vpc8378EB38"
881
- },
882
880
  "AvailabilityZone": "test-region-1c",
883
881
  "CidrBlock": "10.0.64.0/19",
884
882
  "MapPublicIpOnLaunch": true,
@@ -893,9 +891,12 @@
893
891
  },
894
892
  {
895
893
  "Key": "Name",
896
- "Value": "twoTargets/Vpc/PublicSubnet3"
894
+ "Value": "alblam-twoTargets/Vpc/PublicSubnet3"
897
895
  }
898
- ]
896
+ ],
897
+ "VpcId": {
898
+ "Ref": "Vpc8378EB38"
899
+ }
899
900
  },
900
901
  "Metadata": {
901
902
  "cfn_nag": {
@@ -911,15 +912,15 @@
911
912
  "VpcPublicSubnet3RouteTable93458DBB": {
912
913
  "Type": "AWS::EC2::RouteTable",
913
914
  "Properties": {
914
- "VpcId": {
915
- "Ref": "Vpc8378EB38"
916
- },
917
915
  "Tags": [
918
916
  {
919
917
  "Key": "Name",
920
- "Value": "twoTargets/Vpc/PublicSubnet3"
918
+ "Value": "alblam-twoTargets/Vpc/PublicSubnet3"
921
919
  }
922
- ]
920
+ ],
921
+ "VpcId": {
922
+ "Ref": "Vpc8378EB38"
923
+ }
923
924
  }
924
925
  },
925
926
  "VpcPublicSubnet3RouteTableAssociation1F1EDF02": {
@@ -936,12 +937,12 @@
936
937
  "VpcPublicSubnet3DefaultRoute4697774F": {
937
938
  "Type": "AWS::EC2::Route",
938
939
  "Properties": {
939
- "RouteTableId": {
940
- "Ref": "VpcPublicSubnet3RouteTable93458DBB"
941
- },
942
940
  "DestinationCidrBlock": "0.0.0.0/0",
943
941
  "GatewayId": {
944
942
  "Ref": "VpcIGWD7BA715C"
943
+ },
944
+ "RouteTableId": {
945
+ "Ref": "VpcPublicSubnet3RouteTable93458DBB"
945
946
  }
946
947
  },
947
948
  "DependsOn": [
@@ -955,7 +956,7 @@
955
956
  "Tags": [
956
957
  {
957
958
  "Key": "Name",
958
- "Value": "twoTargets/Vpc/PublicSubnet3"
959
+ "Value": "alblam-twoTargets/Vpc/PublicSubnet3"
959
960
  }
960
961
  ]
961
962
  }
@@ -963,19 +964,19 @@
963
964
  "VpcPublicSubnet3NATGateway7640CD1D": {
964
965
  "Type": "AWS::EC2::NatGateway",
965
966
  "Properties": {
966
- "SubnetId": {
967
- "Ref": "VpcPublicSubnet3SubnetBE12F0B6"
968
- },
969
967
  "AllocationId": {
970
968
  "Fn::GetAtt": [
971
969
  "VpcPublicSubnet3EIP3A666A23",
972
970
  "AllocationId"
973
971
  ]
974
972
  },
973
+ "SubnetId": {
974
+ "Ref": "VpcPublicSubnet3SubnetBE12F0B6"
975
+ },
975
976
  "Tags": [
976
977
  {
977
978
  "Key": "Name",
978
- "Value": "twoTargets/Vpc/PublicSubnet3"
979
+ "Value": "alblam-twoTargets/Vpc/PublicSubnet3"
979
980
  }
980
981
  ]
981
982
  },
@@ -987,9 +988,6 @@
987
988
  "VpcPrivateSubnet1Subnet536B997A": {
988
989
  "Type": "AWS::EC2::Subnet",
989
990
  "Properties": {
990
- "VpcId": {
991
- "Ref": "Vpc8378EB38"
992
- },
993
991
  "AvailabilityZone": "test-region-1a",
994
992
  "CidrBlock": "10.0.96.0/19",
995
993
  "MapPublicIpOnLaunch": false,
@@ -1004,23 +1002,26 @@
1004
1002
  },
1005
1003
  {
1006
1004
  "Key": "Name",
1007
- "Value": "twoTargets/Vpc/PrivateSubnet1"
1005
+ "Value": "alblam-twoTargets/Vpc/PrivateSubnet1"
1008
1006
  }
1009
- ]
1007
+ ],
1008
+ "VpcId": {
1009
+ "Ref": "Vpc8378EB38"
1010
+ }
1010
1011
  }
1011
1012
  },
1012
1013
  "VpcPrivateSubnet1RouteTableB2C5B500": {
1013
1014
  "Type": "AWS::EC2::RouteTable",
1014
1015
  "Properties": {
1015
- "VpcId": {
1016
- "Ref": "Vpc8378EB38"
1017
- },
1018
1016
  "Tags": [
1019
1017
  {
1020
1018
  "Key": "Name",
1021
- "Value": "twoTargets/Vpc/PrivateSubnet1"
1019
+ "Value": "alblam-twoTargets/Vpc/PrivateSubnet1"
1022
1020
  }
1023
- ]
1021
+ ],
1022
+ "VpcId": {
1023
+ "Ref": "Vpc8378EB38"
1024
+ }
1024
1025
  }
1025
1026
  },
1026
1027
  "VpcPrivateSubnet1RouteTableAssociation70C59FA6": {
@@ -1037,21 +1038,18 @@
1037
1038
  "VpcPrivateSubnet1DefaultRouteBE02A9ED": {
1038
1039
  "Type": "AWS::EC2::Route",
1039
1040
  "Properties": {
1040
- "RouteTableId": {
1041
- "Ref": "VpcPrivateSubnet1RouteTableB2C5B500"
1042
- },
1043
1041
  "DestinationCidrBlock": "0.0.0.0/0",
1044
1042
  "NatGatewayId": {
1045
1043
  "Ref": "VpcPublicSubnet1NATGateway4D7517AA"
1044
+ },
1045
+ "RouteTableId": {
1046
+ "Ref": "VpcPrivateSubnet1RouteTableB2C5B500"
1046
1047
  }
1047
1048
  }
1048
1049
  },
1049
1050
  "VpcPrivateSubnet2Subnet3788AAA1": {
1050
1051
  "Type": "AWS::EC2::Subnet",
1051
1052
  "Properties": {
1052
- "VpcId": {
1053
- "Ref": "Vpc8378EB38"
1054
- },
1055
1053
  "AvailabilityZone": "test-region-1b",
1056
1054
  "CidrBlock": "10.0.128.0/19",
1057
1055
  "MapPublicIpOnLaunch": false,
@@ -1066,23 +1064,26 @@
1066
1064
  },
1067
1065
  {
1068
1066
  "Key": "Name",
1069
- "Value": "twoTargets/Vpc/PrivateSubnet2"
1067
+ "Value": "alblam-twoTargets/Vpc/PrivateSubnet2"
1070
1068
  }
1071
- ]
1069
+ ],
1070
+ "VpcId": {
1071
+ "Ref": "Vpc8378EB38"
1072
+ }
1072
1073
  }
1073
1074
  },
1074
1075
  "VpcPrivateSubnet2RouteTableA678073B": {
1075
1076
  "Type": "AWS::EC2::RouteTable",
1076
1077
  "Properties": {
1077
- "VpcId": {
1078
- "Ref": "Vpc8378EB38"
1079
- },
1080
1078
  "Tags": [
1081
1079
  {
1082
1080
  "Key": "Name",
1083
- "Value": "twoTargets/Vpc/PrivateSubnet2"
1081
+ "Value": "alblam-twoTargets/Vpc/PrivateSubnet2"
1084
1082
  }
1085
- ]
1083
+ ],
1084
+ "VpcId": {
1085
+ "Ref": "Vpc8378EB38"
1086
+ }
1086
1087
  }
1087
1088
  },
1088
1089
  "VpcPrivateSubnet2RouteTableAssociationA89CAD56": {
@@ -1099,21 +1100,18 @@
1099
1100
  "VpcPrivateSubnet2DefaultRoute060D2087": {
1100
1101
  "Type": "AWS::EC2::Route",
1101
1102
  "Properties": {
1102
- "RouteTableId": {
1103
- "Ref": "VpcPrivateSubnet2RouteTableA678073B"
1104
- },
1105
1103
  "DestinationCidrBlock": "0.0.0.0/0",
1106
1104
  "NatGatewayId": {
1107
1105
  "Ref": "VpcPublicSubnet2NATGateway9182C01D"
1106
+ },
1107
+ "RouteTableId": {
1108
+ "Ref": "VpcPrivateSubnet2RouteTableA678073B"
1108
1109
  }
1109
1110
  }
1110
1111
  },
1111
1112
  "VpcPrivateSubnet3SubnetF258B56E": {
1112
1113
  "Type": "AWS::EC2::Subnet",
1113
1114
  "Properties": {
1114
- "VpcId": {
1115
- "Ref": "Vpc8378EB38"
1116
- },
1117
1115
  "AvailabilityZone": "test-region-1c",
1118
1116
  "CidrBlock": "10.0.160.0/19",
1119
1117
  "MapPublicIpOnLaunch": false,
@@ -1128,23 +1126,26 @@
1128
1126
  },
1129
1127
  {
1130
1128
  "Key": "Name",
1131
- "Value": "twoTargets/Vpc/PrivateSubnet3"
1129
+ "Value": "alblam-twoTargets/Vpc/PrivateSubnet3"
1132
1130
  }
1133
- ]
1131
+ ],
1132
+ "VpcId": {
1133
+ "Ref": "Vpc8378EB38"
1134
+ }
1134
1135
  }
1135
1136
  },
1136
1137
  "VpcPrivateSubnet3RouteTableD98824C7": {
1137
1138
  "Type": "AWS::EC2::RouteTable",
1138
1139
  "Properties": {
1139
- "VpcId": {
1140
- "Ref": "Vpc8378EB38"
1141
- },
1142
1140
  "Tags": [
1143
1141
  {
1144
1142
  "Key": "Name",
1145
- "Value": "twoTargets/Vpc/PrivateSubnet3"
1143
+ "Value": "alblam-twoTargets/Vpc/PrivateSubnet3"
1146
1144
  }
1147
- ]
1145
+ ],
1146
+ "VpcId": {
1147
+ "Ref": "Vpc8378EB38"
1148
+ }
1148
1149
  }
1149
1150
  },
1150
1151
  "VpcPrivateSubnet3RouteTableAssociation16BDDC43": {
@@ -1161,12 +1162,12 @@
1161
1162
  "VpcPrivateSubnet3DefaultRoute94B74F0D": {
1162
1163
  "Type": "AWS::EC2::Route",
1163
1164
  "Properties": {
1164
- "RouteTableId": {
1165
- "Ref": "VpcPrivateSubnet3RouteTableD98824C7"
1166
- },
1167
1165
  "DestinationCidrBlock": "0.0.0.0/0",
1168
1166
  "NatGatewayId": {
1169
1167
  "Ref": "VpcPublicSubnet3NATGateway7640CD1D"
1168
+ },
1169
+ "RouteTableId": {
1170
+ "Ref": "VpcPrivateSubnet3RouteTableD98824C7"
1170
1171
  }
1171
1172
  }
1172
1173
  },
@@ -1176,7 +1177,7 @@
1176
1177
  "Tags": [
1177
1178
  {
1178
1179
  "Key": "Name",
1179
- "Value": "twoTargets/Vpc"
1180
+ "Value": "alblam-twoTargets/Vpc"
1180
1181
  }
1181
1182
  ]
1182
1183
  }
@@ -1184,11 +1185,11 @@
1184
1185
  "VpcVPCGWBF912B6E": {
1185
1186
  "Type": "AWS::EC2::VPCGatewayAttachment",
1186
1187
  "Properties": {
1187
- "VpcId": {
1188
- "Ref": "Vpc8378EB38"
1189
- },
1190
1188
  "InternetGatewayId": {
1191
1189
  "Ref": "VpcIGWD7BA715C"
1190
+ },
1191
+ "VpcId": {
1192
+ "Ref": "Vpc8378EB38"
1192
1193
  }
1193
1194
  }
1194
1195
  },
@@ -1210,7 +1211,7 @@
1210
1211
  "Tags": [
1211
1212
  {
1212
1213
  "Key": "Name",
1213
- "Value": "twoTargets/Vpc"
1214
+ "Value": "alblam-twoTargets/Vpc/FlowLog"
1214
1215
  }
1215
1216
  ]
1216
1217
  }
@@ -1262,7 +1263,7 @@
1262
1263
  "Tags": [
1263
1264
  {
1264
1265
  "Key": "Name",
1265
- "Value": "twoTargets/Vpc"
1266
+ "Value": "alblam-twoTargets/Vpc/FlowLog"
1266
1267
  }
1267
1268
  ]
1268
1269
  },
@@ -1282,11 +1283,6 @@
1282
1283
  "VpcFlowLog8FF33A73": {
1283
1284
  "Type": "AWS::EC2::FlowLog",
1284
1285
  "Properties": {
1285
- "ResourceId": {
1286
- "Ref": "Vpc8378EB38"
1287
- },
1288
- "ResourceType": "VPC",
1289
- "TrafficType": "ALL",
1290
1286
  "DeliverLogsPermissionArn": {
1291
1287
  "Fn::GetAtt": [
1292
1288
  "VpcFlowLogIAMRole6A475D41",
@@ -1297,12 +1293,17 @@
1297
1293
  "LogGroupName": {
1298
1294
  "Ref": "VpcFlowLogLogGroup7B5C56B9"
1299
1295
  },
1296
+ "ResourceId": {
1297
+ "Ref": "Vpc8378EB38"
1298
+ },
1299
+ "ResourceType": "VPC",
1300
1300
  "Tags": [
1301
1301
  {
1302
1302
  "Key": "Name",
1303
- "Value": "twoTargets/Vpc"
1303
+ "Value": "alblam-twoTargets/Vpc/FlowLog"
1304
1304
  }
1305
- ]
1305
+ ],
1306
+ "TrafficType": "ALL"
1306
1307
  }
1307
1308
  },
1308
1309
  "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": {
@@ -1334,18 +1335,18 @@
1334
1335
  "S3Bucket": {
1335
1336
  "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-us-east-1"
1336
1337
  },
1337
- "S3Key": "e57c1acaa363d7d2b81736776007a7091bc73dff4aeb8135627c4511a51e7dca.zip"
1338
+ "S3Key": "b7f33614a69548d6bafe224d751a7ef238cde19097415e553fe8b63a4c8fd8a6.zip"
1338
1339
  },
1339
1340
  "Timeout": 900,
1340
1341
  "MemorySize": 128,
1341
- "Handler": "__entrypoint__.handler",
1342
+ "Handler": "index.handler",
1342
1343
  "Role": {
1343
1344
  "Fn::GetAtt": [
1344
1345
  "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092",
1345
1346
  "Arn"
1346
1347
  ]
1347
1348
  },
1348
- "Runtime": "nodejs16.x",
1349
+ "Runtime": "nodejs18.x",
1349
1350
  "Description": {
1350
1351
  "Fn::Join": [
1351
1352
  "",
@@ -1484,7 +1485,7 @@
1484
1485
  "testtwoReplaceDefaultSecurityGroupsecuritygroupE62CC6C1": {
1485
1486
  "Type": "AWS::EC2::SecurityGroup",
1486
1487
  "Properties": {
1487
- "GroupDescription": "twoTargets/test-two/ReplaceDefaultSecurityGroup-security-group",
1488
+ "GroupDescription": "alblam-twoTargets/test-two/ReplaceDefaultSecurityGroup-security-group",
1488
1489
  "SecurityGroupEgress": [
1489
1490
  {
1490
1491
  "CidrIp": "0.0.0.0/0",
@@ -1520,18 +1521,18 @@
1520
1521
  },
1521
1522
  "S3Key": "7caf594b8ad91abecca72f7f10a23a5cf446d05dc00d6194619935e7e3fd5a79.zip"
1522
1523
  },
1523
- "Role": {
1524
- "Fn::GetAtt": [
1525
- "testtwoLambdaFunctionServiceRoleD100E5F8",
1526
- "Arn"
1527
- ]
1528
- },
1529
1524
  "Environment": {
1530
1525
  "Variables": {
1531
1526
  "AWS_NODEJS_CONNECTION_REUSE_ENABLED": "1"
1532
1527
  }
1533
1528
  },
1534
1529
  "Handler": "index.handler",
1530
+ "Role": {
1531
+ "Fn::GetAtt": [
1532
+ "testtwoLambdaFunctionServiceRoleD100E5F8",
1533
+ "Arn"
1534
+ ]
1535
+ },
1535
1536
  "Runtime": "nodejs16.x",
1536
1537
  "TracingConfig": {
1537
1538
  "Mode": "Active"
@@ -1611,6 +1612,7 @@
1611
1612
  "testtwotg2tg35BE6697": {
1612
1613
  "Type": "AWS::ElasticLoadBalancingV2::TargetGroup",
1613
1614
  "Properties": {
1615
+ "TargetType": "lambda",
1614
1616
  "Targets": [
1615
1617
  {
1616
1618
  "Id": {
@@ -1620,8 +1622,7 @@
1620
1622
  ]
1621
1623
  }
1622
1624
  }
1623
- ],
1624
- "TargetType": "lambda"
1625
+ ]
1625
1626
  },
1626
1627
  "DependsOn": [
1627
1628
  "testtwoLambdaFunctionInvoke2UTWxhlfyqbT5FTn5jvgbLgjFfJwzswGk55DU1HY068D8D47"