turbot/steampipe-mod-terraform-azure-compliance

Control: Machine Learning Compute Clusters minimum node count should be set to zero

Description

This control checks whether Machine Learning Compute Cluster minimum node count is set to zero. This control is non-complaint if Machine Learning Compute Cluster minimum node count is not set to zero.

Usage

Run the control in your terminal:

powerpipe control run terraform_azure_compliance.control.machine_learning_compute_cluster_minimum_node_zero

Snapshot and share results via Turbot Pipes:

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

SQL

This control uses a named query:

select
address as resource,
case
when (attributes_std -> 'scale_settings' ->> 'min_node_count')::int = 0 then 'ok'
else 'alarm'
end status,
name || ' minimum node count set to ' || (attributes_std -> 'scale_settings' ->> 'min_node_count') || '.' reason
, path || ':' || start_line
from
terraform_resource
where
type = 'azurerm_machine_learning_compute_cluster';

Tags