turbot/aws_insights

Query: kms_keys_for_eks_cluster

Usage

powerpipe query aws_insights.query.kms_keys_for_eks_cluster

Steampipe Tables

SQL

select
e -> 'Provider' ->> 'KeyArn' as kms_key_arn
from
aws_eks_cluster,
jsonb_array_elements(encryption_config) as e
where
arn = $1
and account_id = split_part($1, ':', 5)
and region = split_part($1, ':', 4);