Benchmark: EKS
Description
This benchmark provides a set of controls that detect Terraform AWS EKS resources deviating from security best practices.
Usage
Install the mod:
mkdir dashboardscd dashboardspowerpipe mod initpowerpipe mod install github.com/turbot/steampipe-mod-terraform-aws-compliance
Start the Powerpipe server:
steampipe service startpowerpipe server
Open http://localhost:9033 in your browser and select EKS.
Run this benchmark in your terminal:
powerpipe benchmark run terraform_aws_compliance.benchmark.eks
Snapshot and share results via Turbot Pipes:
powerpipe benchmark run terraform_aws_compliance.benchmark.eks --share
Controls
- EKS cluster control plane logging should be enabled for all log types
- EKS clusters endpoint should restrict public access
- EKS cluster log types should be enabled
- EKS cluster node group should be configured to restrict SSH access from 0.0.0.0/0
- EKS cluster should run on supported Kubernetes version
- EKS clusters should be configured to have kubernetes secrets encrypted using KMS