turbot/aws_thrifty

GitHub

Query: ec2_reserved_instance_lease_expiration_days

Usage

steampipe query aws_thrifty.query.ec2_reserved_instance_lease_expiration_days

Plugins & Tables

SQL

select
reserved_instance_id as resource,
case
when date_part('day', end_time - now()) <= $1 then 'alarm'
else 'ok'
end as status,
title || ' lease expires in ' || date_part('day', end_time-now()) || ' days.' as reason,
region,
account_id
from
aws_ec2_reserved_instance;

Controls

The query is being used by the following controls: