Control: Config aggregator should be enabled in all regions
Description
AWS Config should enable the config aggregator - allowing you to analyze the configuration across multiple accounts and regions.
Usage
Run the control in your terminal:
powerpipe control run terraform_aws_compliance.control.config_aggregator_enabled_all_regionsSnapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run terraform_aws_compliance.control.config_aggregator_enabled_all_regions --shareSQL
This control uses a named query:
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_linefrom  terraform_resourcewhere  type = 'aws_config_configuration_aggregator';