turbot/terraform_azure_compliance

Query: appservice_web_app_worker_more_than_one

Usage

powerpipe query terraform_azure_compliance.query.appservice_web_app_worker_more_than_one

Steampipe Tables

SQL

select
address as resource,
case
when (attributes_std ->> 'worker_count')::int >= 2 then 'ok'
when (attributes_std ->> 'worker_count')::int < 2 then 'alarm'
else 'alarm'
end status,
split_part(address, '.', 2) || case
when (attributes_std ->> 'worker_count')::int >= 2 then ' has ' || (attributes_std ->> 'worker_count') || ' number of workers'
when (attributes_std ->> 'worker_count')::int < 2 then ' has ' || (attributes_std ->> 'worker_count') || ' number of workers'
else ' worker count is not set'
end || '.' reason
, path || ':' || start_line
from
terraform_resource
where
type = 'azurerm_service_plan';

Controls

The query is being used by the following controls: