github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/rules/cloud/policies/aws/lambda/enable_tracing.cf.go (about) 1 package lambda 2 3 var cloudFormationEnableTracingGoodExamples = []string{ 4 `--- 5 Resources: 6 Function: 7 Type: AWS::Lambda::Function 8 Properties: 9 Handler: index.handler 10 Role: arn:aws:iam::123456789012:role/lambda-role 11 Code: 12 S3Bucket: my-bucket 13 S3Key: function.zip 14 Runtime: nodejs12.x 15 Timeout: 5 16 TracingConfig: 17 Mode: Active 18 VpcConfig: 19 SecurityGroupIds: 20 - sg-085912345678492fb 21 SubnetIds: 22 - subnet-071f712345678e7c8 23 - subnet-07fd123456788a036`, 24 } 25 26 var cloudFormationEnableTracingBadExamples = []string{ 27 `--- 28 Resources: 29 BadExample: 30 Type: AWS::Lambda::Function 31 Properties: 32 Handler: index.handler 33 Role: arn:aws:iam::123456789012:role/lambda-role 34 Code: 35 S3Bucket: my-bucket 36 S3Key: function.zip 37 Runtime: nodejs12.x 38 Timeout: 5 39 VpcConfig: 40 SecurityGroupIds: 41 - sg-085912345678492fb 42 SubnetIds: 43 - subnet-071f712345678e7c8 44 - subnet-07fd123456788a036`, 45 } 46 47 var cloudFormationEnableTracingLinks = []string{} 48 49 var cloudFormationEnableTracingRemediationMarkdown = ``