turbot/gcp_compliance

Query: compute_instance_serial_port_connection_disabled

Usage

powerpipe query gcp_compliance.query.compute_instance_serial_port_connection_disabled

Steampipe Tables

SQL

select
self_link resource,
case
when metadata -> 'items' @> '[{"key": "serial-port-enable", "value": "true"}]' then 'alarm'
else 'ok'
end as status,
case
when metadata -> 'items' @> '[{"key": "serial-port-enable", "value": "true"}]'
then title || ' serial port connections enabled.'
else title || ' serial port connections disabled.'
end as reason
, location as location, project as project
from
gcp_compute_instance;

Controls

The query is being used by the following controls: