Control: Lambda functions should be in a VPC
Description
Deploy AWS Lambda functions within an AWS Virtual Private Cloud (AWS VPC) for a secure communication between a function and other services within the AWS VPC.
Usage
Run the control in your terminal:
powerpipe control run aws_compliance.control.lambda_function_in_vpcSnapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_compliance.control.lambda_function_in_vpc --shareSQL
This control uses a named query:
select  arn as resource,  case    when vpc_id is null or vpc_id = '' then 'alarm'    else 'ok'  end status,  case    when vpc_id is null or vpc_id = '' then title || ' is not in VPC.'    else title || ' is in VPC ' || vpc_id || '.'  end reason    , region, account_idfrom  aws_lambda_function;