turbot/aws_compliance

Query: eks_cluster_endpoint_restrict_public_access

Usage

powerpipe query aws_compliance.query.eks_cluster_endpoint_restrict_public_access

Steampipe Tables

SQL

select
arn as resource,
case
when resources_vpc_config ->> 'EndpointPublicAccess' = 'true' then 'alarm'
else 'ok'
end as status,
case
when resources_vpc_config ->> 'EndpointPublicAccess' = 'true' then title || ' endpoint publicly accessible.'
else title || ' endpoint not publicly accessible.'
end as reason
, region, account_id
from
aws_eks_cluster;

Controls

The query is being used by the following controls: