turbot/steampipe-mod-aws-compliance

Control: Networkfirewall firewall should be in a VPC

Description

Deploy AWS Networkfirewall firewall 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.networkfirewall_firewall_in_vpc

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run aws_compliance.control.networkfirewall_firewall_in_vpc --share

SQL

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_id
from
aws_networkfirewall_firewall;

Tags