turbot/aws_perimeter
GitHub
Loading controls...

Control: Lambda functions should be in a VPC

Description

This control checks whether Lambda functions are in a VPC. It does not evaluate the VPC subnet routing configuration to determine public access. You should ensure that Amazon Lambda functions are not attached to public subnets.

Usage

Run the control in your terminal:

steampipe check aws_perimeter.control.lambda_function_in_vpc

Snapshot and share results via Steampipe Cloud:

steampipe login
steampipe check --share aws_perimeter.control.lambda_function_in_vpc

Plugins & Tables

SQL

select
arn as resource,
case
when vpc_id is null then 'alarm'
else 'ok'
end status,
case
when vpc_id is null then title || ' is not in VPC.'
else title || ' is in VPC ' || vpc_id || '.'
end reason,
region,
account_id
from
aws_lambda_function;

Tags