-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error awslambda.py L31 #1320
Comments
Could you please provide the |
We've seen such errors a few times and my theory is that a role was configured on the Lambda which was then deleted. Would have to test to confirm. |
|
I can confirm this is the behavior in the case explained by @x4v13r64 above. |
…its associated execution role was deleted.
A similar check to below existing one was done. ScoutSuite/ScoutSuite/providers/aws/facade/awslambda.py Lines 24 to 26 in b9b8e20
For this use case: ScoutSuite/ScoutSuite/providers/aws/facade/awslambda.py Lines 46 to 48 in bc9f32e
Although, we might want to consider to refactor a bit this class (and maybe others were similar things could be happening) in order to use the standard Boto3 exceptions. For this specific use case |
Hi
I got the current error while scanning AWS env. which contains Lambda service.
2021-06-15 11:49:07 kali scout[1561] ERROR awslambda.py L31: Failed to get role from managed policies: An error occurred (NoSuchEntity) when calling the GetRole operation: The role with name XXX-dev-getAllTransactionsRole-XXX cannot be found.
What can be the reasons for not founding the Entity?
BR
The text was updated successfully, but these errors were encountered: