turbot/steampipe-mod-terraform-azure-compliance

Control: Cognitive Search services should maintain SLA for index updates

Description

This control checks if Cognitive Search maintains SLA for index updates.

Usage

Run the control in your terminal:

powerpipe control run terraform_azure_compliance.control.search_service_replica_count_3

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run terraform_azure_compliance.control.search_service_replica_count_3 --share

SQL

This control uses a named query:

select
address as resource,
case
when (attributes_std ->> 'replica_count')::int > 3 then 'ok'
else 'alarm'
end status,
split_part(address, '.', 2) || case
when (attributes_std ->> 'replica_count')::int > 3 then ' replica count is greater than 3'
else ' replica count is greater than 3'
end || '.' reason
, path || ':' || start_line
from
terraform_resource
where
type = 'azurerm_search_service';

Tags