turbot/aws_insights

Query: kms_keys_for_ecr_repository

Usage

powerpipe query aws_insights.query.kms_keys_for_ecr_repository

Steampipe Tables

SQL

select
encryption_configuration ->> 'KmsKey' as kms_key_arn
from
aws_ecr_repository
where
encryption_configuration ->> 'KmsKey' is not null
and arn = $1
and region = split_part($1, ':', 4)
and account_id = split_part($1, ':', 5);