turbot/aws_compliance

Query: ec2_instance_termination_protection_enabled

Usage

powerpipe query aws_compliance.query.ec2_instance_termination_protection_enabled

Steampipe Tables

SQL

select
arn as resource,
case
when disable_api_termination then 'ok'
else 'alarm'
end status,
case
when disable_api_termination then instance_id || ' termination protection enabled.'
else instance_id || ' termination protection disabled.'
end reason
, region, account_id
from
aws_ec2_instance;

Controls

The query is being used by the following controls: