turbot/aws_insights

Query: eks_cluster_endpoint_restrict_public_access

Usage

powerpipe query aws_insights.query.eks_cluster_endpoint_restrict_public_access

Steampipe Tables

SQL

select
'Endpoint Public Access' as label,
case when resources_vpc_config ->> 'EndpointPublicAccess' = 'true' then 'Enabled' else 'Disabled' end as value,
case when resources_vpc_config ->> 'EndpointPublicAccess' = 'true' then 'alert' else 'ok' end as type
from
aws_eks_cluster
where
arn = $1
and account_id = split_part($1, ':', 5)
and region = split_part($1, ':', 4);

Dashboards

The query is used in the dashboards: