Table: aws_waf_web_acls

This table shows data for WAF Web ACLs.

https://docs.aws.amazon.com/waf/latest/APIReference/API_waf_WebACLSummary.html (opens in a new tab)

The primary key for this table is arn.

Columns

NameType
_cq_iduuid
_cq_parent_iduuid
account_idutf8
arn (PK)utf8
tagsjson
default_actionjson
rulesjson
web_acl_idutf8
metric_nameutf8
nameutf8
web_acl_arnutf8
logging_configurationjson

Example Queries

These SQL queries are sampled from CloudQuery policies and are compatible with PostgreSQL.

AWS WAF Classic global web ACL logging should be enabled

-- WAF Classic
SELECT
  'AWS WAF Classic global web ACL logging should be enabled' AS title,
  account_id,
  arn AS resource_id,
  CASE
  WHEN logging_configuration IS NULL OR logging_configuration = '{}' THEN 'fail'
  ELSE 'pass'
  END
    AS status
FROM
  aws_waf_web_acls;

AWS WAF Classic global web ACL logging should be enabled

(
  SELECT
    'AWS WAF Classic global web ACL logging should be enabled' AS title,
    account_id,
    arn AS resource_id,
    CASE
    WHEN logging_configuration IS NULL OR logging_configuration = '{}'
    THEN 'fail'
    ELSE 'pass'
    END
      AS status
  FROM
    aws_waf_web_acls
)
UNION
  (
    SELECT
      'AWS WAF Classic global web ACL logging should be enabled' AS title,
      account_id,
      arn AS resource_id,
      CASE
      WHEN logging_configuration IS NULL OR logging_configuration = '{}'
      THEN 'fail'
      ELSE 'pass'
      END
        AS status
    FROM
      aws_wafv2_web_acls
  );