yatas-aws icon indicating copy to clipboard operation
yatas-aws copied to clipboard

Lambda checks suggestions

Open ThomasLachaux opened this issue 1 year ago • 0 comments

Hey !

Here are some suggestions to add to lambdas checks

Check if any environment variable key contains SECRET, KEY, TOKEN (case insensitive) to check if there is sensitive data. Equivalent CLI : aws lambda list-functions | grep -i TOKEN

Check if the lambda is triggerable via an URL Equivalient CLI : for f in $(aws lambda list-functions | jq -r '.Functions[].FunctionName'); do aws lambda get-function-url-config --function-name $f; done

ThomasLachaux avatar Nov 23 '22 13:11 ThomasLachaux