turbot/terraform_azure_compliance

Query: compute_vm_and_scale_set_ssh_key_enabled_linux

Usage

powerpipe query terraform_azure_compliance.query.compute_vm_and_scale_set_ssh_key_enabled_linux

Steampipe Tables

SQL

select
address as resource,
case
when (attributes_std -> 'admin_ssh_key') is not null then 'ok'
else 'alarm'
end status,
split_part(address, '.', 2) || case
when (attributes_std -> 'admin_ssh_key') is not null then ' SSH key enabled'
else ' SSH key disabled'
end || '.' reason
, path || ':' || start_line
from
terraform_resource
where
type in ('azurerm_linux_virtual_machine_scale_set', 'azurerm_windows_virtual_machine_scale_set');

Controls

The query is being used by the following controls: