aws_lambda_permission resource returning failure for x-ray scanning #8227
Closed
MattBergin
started this conversation in
Bugs
Replies: 1 comment
-
thanks this looks like a bug, track #8228 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
The aws_lambda_permission resource is being mistakenly scanned by trivy as a lambda function and returning a failure that it doesn't have x-ray tracing enabled.
This should not be the case as you cannot enable x-ray tracing on an aws_lambda_permission resource, only on a Lambda function.
Desired Behavior
aws_lambda_permissions resource should not be scanned for x-ray tracing
Actual Behavior
aws_lambda_permission resource is scanned for x-ray tracing and returns a failure as it cannot be applied to this resource.
Reproduction Steps
Running a trivy scan on this returns the following error:
Operating System
Tested on Linux and MacOs
Version
Checklist
trivy clean --all
Beta Was this translation helpful? Give feedback.
All reactions