turbot/steampipe-mod-terraform-azure-compliance

Control: SignalR services should use paid SKU

Description

SignalR services should use paid SKU to enable advanced features such as auto-scaling, hybrid connections, and zone redundancy.

Usage

Run the control in your terminal:

powerpipe control run terraform_azure_compliance.control.signalr_services_uses_paid_sku

Snapshot and share results via Turbot Pipes:

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

SQL

This control uses a named query:

select
address as resource,
case
when (attributes_std -> 'sku' ->> 'name') = 'Free_F1' then 'alarm'
else 'ok'
end status,
split_part(address, '.', 2) || case
when (attributes_std -> 'sku' ->> 'name') = 'Free_F1' then ' is not using paid SKU'
else ' is using paid SKU'
end || '.' reason
, path || ':' || start_line
from
terraform_resource
where
type = 'azurerm_signalr_service';

Tags