Control: Lambda permissions should restrict service permission by source account or source arn
Description
Ensure that Lambda permissions restricts service permission by source account or source arn.
Usage
Run the control in your terminal:
powerpipe control run terraform_aws_compliance.control.lambda_permission_restricted_service_permission
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run terraform_aws_compliance.control.lambda_permission_restricted_service_permission --share
SQL
This control uses a named query:
lambda_permission_restricted_service_permission