Skyscanner / LambdaGuard

AWS Serverless Security
Apache License 2.0
400 stars 69 forks source link

use region arg if FunctionCount in account usage is 0 #26

Closed lagebaue closed 4 years ago

lagebaue commented 4 years ago

If the account does not have the right to list the function count (not sure which policy that is) lambda guard crashes with an error because usage is empty.

This small fix reverts to the previous behavior of directly using the region argument in that case.

adeptex commented 4 years ago

hey @lagebaue thank you for your contribution! I will test it out and get back to you.

adeptex commented 4 years ago

Merged! Thanks again for your contribution :)