@@ -375,6 +375,7 @@ Object {
375
375
" Ref" : " testapigatewaylambdaLambdaRestApiE957E944" ,
376
376
},
377
377
" StageName" : " prod" ,
378
+ " TracingEnabled" : true ,
378
379
},
379
380
" Type" : " AWS::ApiGateway::Stage" ,
380
381
},
@@ -594,6 +595,7 @@ Object {
594
595
},
595
596
" testapigatewaylambdaLambdaFunction18FF222F" : Object {
596
597
" DependsOn" : Array [
598
+ " testapigatewaylambdaLambdaFunctionServiceRoleDefaultPolicyA5D0BE32" ,
597
599
" testapigatewaylambdaLambdaFunctionServiceRole5CD2E9F7" ,
598
600
],
599
601
" Metadata" : Object {
@@ -658,6 +660,9 @@ Object {
658
660
],
659
661
},
660
662
" Runtime" : " nodejs10.x" ,
663
+ " TracingConfig" : Object {
664
+ " Mode" : " Active" ,
665
+ },
661
666
},
662
667
" Type" : " AWS::Lambda::Function" ,
663
668
},
@@ -712,6 +717,40 @@ Object {
712
717
},
713
718
" Type" : " AWS::IAM::Role" ,
714
719
},
720
+ " testapigatewaylambdaLambdaFunctionServiceRoleDefaultPolicyA5D0BE32" : Object {
721
+ " Metadata" : Object {
722
+ " cfn_nag" : Object {
723
+ " rules_to_suppress" : Array [
724
+ Object {
725
+ " id" : " W12" ,
726
+ " reason" : " Lambda needs the following minimum required permissions to send trace data to X-Ray." ,
727
+ },
728
+ ],
729
+ },
730
+ },
731
+ " Properties" : Object {
732
+ " PolicyDocument" : Object {
733
+ " Statement" : Array [
734
+ Object {
735
+ " Action" : Array [
736
+ " xray:PutTraceSegments" ,
737
+ " xray:PutTelemetryRecords" ,
738
+ ],
739
+ " Effect" : " Allow" ,
740
+ " Resource" : " *" ,
741
+ },
742
+ ],
743
+ " Version" : " 2012-10-17" ,
744
+ },
745
+ " PolicyName" : " testapigatewaylambdaLambdaFunctionServiceRoleDefaultPolicyA5D0BE32" ,
746
+ " Roles" : Array [
747
+ Object {
748
+ " Ref" : " testapigatewaylambdaLambdaFunctionServiceRole5CD2E9F7" ,
749
+ },
750
+ ],
751
+ },
752
+ " Type" : " AWS::IAM::Policy" ,
753
+ },
715
754
" testapigatewaylambdaLambdaRestApiANY1FACA749" : Object {
716
755
" Properties" : Object {
717
756
" AuthorizationType" : " AWS_IAM" ,
@@ -952,6 +991,7 @@ Object {
952
991
" Ref" : " testapigatewaylambdaLambdaRestApiE957E944" ,
953
992
},
954
993
" StageName" : " prod" ,
994
+ " TracingEnabled" : true ,
955
995
},
956
996
" Type" : " AWS::ApiGateway::Stage" ,
957
997
},
@@ -1197,6 +1237,7 @@ Object {
1197
1237
},
1198
1238
" pattern1LambdaFunction4AE2BC2A" : Object {
1199
1239
" DependsOn" : Array [
1240
+ " pattern1LambdaFunctionServiceRoleDefaultPolicy3DAB9197" ,
1200
1241
" pattern1LambdaFunctionServiceRoleEEE9B913" ,
1201
1242
],
1202
1243
" Metadata" : Object {
@@ -1261,9 +1302,46 @@ Object {
1261
1302
],
1262
1303
},
1263
1304
" Runtime" : " nodejs10.x" ,
1305
+ " TracingConfig" : Object {
1306
+ " Mode" : " Active" ,
1307
+ },
1264
1308
},
1265
1309
" Type" : " AWS::Lambda::Function" ,
1266
1310
},
1311
+ " pattern1LambdaFunctionServiceRoleDefaultPolicy3DAB9197" : Object {
1312
+ " Metadata" : Object {
1313
+ " cfn_nag" : Object {
1314
+ " rules_to_suppress" : Array [
1315
+ Object {
1316
+ " id" : " W12" ,
1317
+ " reason" : " Lambda needs the following minimum required permissions to send trace data to X-Ray." ,
1318
+ },
1319
+ ],
1320
+ },
1321
+ },
1322
+ " Properties" : Object {
1323
+ " PolicyDocument" : Object {
1324
+ " Statement" : Array [
1325
+ Object {
1326
+ " Action" : Array [
1327
+ " xray:PutTraceSegments" ,
1328
+ " xray:PutTelemetryRecords" ,
1329
+ ],
1330
+ " Effect" : " Allow" ,
1331
+ " Resource" : " *" ,
1332
+ },
1333
+ ],
1334
+ " Version" : " 2012-10-17" ,
1335
+ },
1336
+ " PolicyName" : " pattern1LambdaFunctionServiceRoleDefaultPolicy3DAB9197" ,
1337
+ " Roles" : Array [
1338
+ Object {
1339
+ " Ref" : " pattern1LambdaFunctionServiceRoleEEE9B913" ,
1340
+ },
1341
+ ],
1342
+ },
1343
+ " Type" : " AWS::IAM::Policy" ,
1344
+ },
1267
1345
" pattern1LambdaFunctionServiceRoleEEE9B913" : Object {
1268
1346
" Properties" : Object {
1269
1347
" AssumeRolePolicyDocument" : Object {
@@ -1566,6 +1644,7 @@ Object {
1566
1644
" Ref" : " pattern1LambdaRestApi6083801A" ,
1567
1645
},
1568
1646
" StageName" : " prod" ,
1647
+ " TracingEnabled" : true ,
1569
1648
},
1570
1649
" Type" : " AWS::ApiGateway::Stage" ,
1571
1650
},
@@ -1725,6 +1804,7 @@ Object {
1725
1804
},
1726
1805
" pattern2LambdaFunction20E7E90C" : Object {
1727
1806
" DependsOn" : Array [
1807
+ " pattern2LambdaFunctionServiceRoleDefaultPolicyB413F001" ,
1728
1808
" pattern2LambdaFunctionServiceRoleF8D0D0F1" ,
1729
1809
],
1730
1810
" Metadata" : Object {
@@ -1789,9 +1869,46 @@ Object {
1789
1869
],
1790
1870
},
1791
1871
" Runtime" : " nodejs10.x" ,
1872
+ " TracingConfig" : Object {
1873
+ " Mode" : " Active" ,
1874
+ },
1792
1875
},
1793
1876
" Type" : " AWS::Lambda::Function" ,
1794
1877
},
1878
+ " pattern2LambdaFunctionServiceRoleDefaultPolicyB413F001" : Object {
1879
+ " Metadata" : Object {
1880
+ " cfn_nag" : Object {
1881
+ " rules_to_suppress" : Array [
1882
+ Object {
1883
+ " id" : " W12" ,
1884
+ " reason" : " Lambda needs the following minimum required permissions to send trace data to X-Ray." ,
1885
+ },
1886
+ ],
1887
+ },
1888
+ },
1889
+ " Properties" : Object {
1890
+ " PolicyDocument" : Object {
1891
+ " Statement" : Array [
1892
+ Object {
1893
+ " Action" : Array [
1894
+ " xray:PutTraceSegments" ,
1895
+ " xray:PutTelemetryRecords" ,
1896
+ ],
1897
+ " Effect" : " Allow" ,
1898
+ " Resource" : " *" ,
1899
+ },
1900
+ ],
1901
+ " Version" : " 2012-10-17" ,
1902
+ },
1903
+ " PolicyName" : " pattern2LambdaFunctionServiceRoleDefaultPolicyB413F001" ,
1904
+ " Roles" : Array [
1905
+ Object {
1906
+ " Ref" : " pattern2LambdaFunctionServiceRoleF8D0D0F1" ,
1907
+ },
1908
+ ],
1909
+ },
1910
+ " Type" : " AWS::IAM::Policy" ,
1911
+ },
1795
1912
" pattern2LambdaFunctionServiceRoleF8D0D0F1" : Object {
1796
1913
" Properties" : Object {
1797
1914
" AssumeRolePolicyDocument" : Object {
@@ -2094,6 +2211,7 @@ Object {
2094
2211
" Ref" : " pattern2LambdaRestApi7106C394" ,
2095
2212
},
2096
2213
" StageName" : " prod" ,
2214
+ " TracingEnabled" : true ,
2097
2215
},
2098
2216
" Type" : " AWS::ApiGateway::Stage" ,
2099
2217
},
0 commit comments