turbot/aws_compliance

Query: ecr_repository_lifecycle_policy_configured

Usage

powerpipe query aws_compliance.query.ecr_repository_lifecycle_policy_configured

Steampipe Tables

SQL

select
arn as resource,
case
when lifecycle_policy -> 'rules' is not null then 'ok'
else 'alarm'
end as status,
case
when lifecycle_policy -> 'rules' is not null then title || ' lifecycle policy configured.'
else title || ' lifecycle policy not configured.'
end as reason
, region, account_id
from
aws_ecr_repository;

Controls

The query is being used by the following controls: