Control: ECR repositories should have lifecycle policies configured
Description
This control checks if ECR repositories have lifecycle policy configured. This rule fails if ECR repository lifecycle policy is not enabled.
Usage
Run the control in your terminal:
powerpipe control run aws_compliance.control.ecr_repository_lifecycle_policy_configured
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_compliance.control.ecr_repository_lifecycle_policy_configured --share
SQL
This control uses a named query:
ecr_repository_lifecycle_policy_configured