turbot/steampipe-mod-azure-compliance

Control: Kubernetes clusters should use standard SKU

Description

Ensure that Kubernetes clusters uses standard SKU tier for production workloads. This control is non-compliant if App Configuration does not use standard SKU.

Usage

Run the control in your terminal:

powerpipe control run azure_compliance.control.kubernetes_cluster_sku_standard

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run azure_compliance.control.kubernetes_cluster_sku_standard --share

SQL

This control uses a named query:

select
c.id as resource,
case
when sku ->> 'tier' = 'Paid' then 'ok'
else 'alarm'
end as status,
case
when sku ->> 'tier' = 'Paid' then c.name || ' uses standard SKU tier.'
else c.name || ' uses free SKU tier.'
end as reason
, c.resource_group as resource_group
, sub.display_name as subscription
from
azure_kubernetes_cluster c,
azure_subscription sub
where
sub.subscription_id = c.subscription_id;

Tags