CCSS (Common Configuration Scoring System) is a set of measures used to determine the severity of the rule.
Each rule is associated with a high-level category. For example IAM, Container, Monitoring, Logging, Network, etc.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsAPI endpoint of the EKS cluster is public. Anyone may be able to establish network connectivity to the API server.
Set the endpoint_public_access attribute in aws_eks_cluster resource to false OR Set the endpoint_public_access attribute to true and public_access_cidrs attribute to a specific IP address in aws_eks_cluster resource.
Example configuration:
resource "aws_eks_cluster" "allowed-1" {
  name     = "eks-endpoint-cidr"
  role_arn = aws_iam_role.eks_role.arn
  vpc_config {
    subnet_ids             = [aws_default_subnet.default_subnet-1.id, aws_default_subnet.default_subnet-2.id, aws_default_subnet.default_subnet-3.id]
    endpoint_public_access = true
    public_access_cidrs    = ["182.31.0.0/24"]
  }
  depends_on = [
    aws_iam_role_policy_attachment.Eks-attach-1,
    aws_iam_role_policy_attachment.Eks-attach-2,
  ]
}
resource "aws_eks_cluster" "allowed-2" {
  name     = "eks-endpoint"
  role_arn = aws_iam_role.eks_role.arn
  vpc_config {
    subnet_ids              = [aws_default_subnet.default_subnet-1.id, aws_default_subnet.default_subnet-2.id, aws_default_subnet.default_subnet-3.id]
    endpoint_public_access  = false
    endpoint_private_access = true
  }
  depends_on = [
    aws_iam_role_policy_attachment.Eks-attach-1,
    aws_iam_role_policy_attachment.Eks-attach-2,
  ]
}
resource "aws_eks_cluster" "allowed-3" {
  name     = "eks-cidr"
  role_arn = aws_iam_role.eks_role.arn
  vpc_config {
    subnet_ids          = [aws_default_subnet.default_subnet-1.id, aws_default_subnet.default_subnet-2.id, aws_default_subnet.default_subnet-3.id]
    public_access_cidrs = ["182.31.0.0/24"]
  }
  depends_on = [
    aws_iam_role_policy_attachment.Eks-attach-1,
    aws_iam_role_policy_attachment.Eks-attach-2,
  ]
}