turbot/terraform_aws_compliance

Query: config_aggregator_enabled_all_regions

Usage

powerpipe query terraform_aws_compliance.query.config_aggregator_enabled_all_regions

Steampipe Tables

SQL

select
address as resource,
case
when (
attributes_std -> 'account_aggregation_source' ->> 'all_regions'
) :: boolean then 'ok'
else 'ok'
end status,
split_part(address, '.', 2) || case
when (
attributes_std -> 'account_aggregation_source' ->> 'all_regions'
) :: boolean then ' enabled in all regions'
else ' not enabled in all regions'
end || '.' as reason,
path || ':' || start_line
from
terraform_resource
where
type = 'aws_config_configuration_aggregator';

Controls

The query is being used by the following controls: