turbot/alicloud_compliance

Query: ecs_instance_with_no_legacy_network

Usage

powerpipe query alicloud_compliance.query.ecs_instance_with_no_legacy_network

Steampipe Tables

SQL

select
arn as resource,
case
when instance_network_type = 'vpc' then 'ok'
else 'alarm'
end as status,
case
when instance_network_type = 'vpc' then title || ' has VPC network.'
else title || ' has legacy network.'
end as reason
, account_id as account_id, region as region
from
alicloud_ecs_instance;

Controls

The query is being used by the following controls: