Skip to content
This repository was archived by the owner on Jun 6, 2025. It is now read-only.

Commit a9405d4

Browse files
tas50mm-weber
andcommitted
Update core/mondoo-aws-security.mql.yaml
Co-authored-by: Manuel Weber <112621871+mm-weber@users.noreply.github.com> Signed-off-by: Tim Smith <tim@mondoo.com>
1 parent daaf4fe commit a9405d4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

core/mondoo-aws-security.mql.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -346,9 +346,9 @@ queries:
346346
- uid: mondoo-aws-security-eks-cluster-private-controlplane-terraform-plan
347347
filters: asset.platform == "terraform-plan" && terraform.plan.resourceChanges.contains(type == "aws_eks_cluster")
348348
mql: |
349-
eksPlan = terraform.plan.resourceChanges.where(type == "aws_eks_cluster").map(change.after.vpc_config).first
350-
eksPlan.contains('endpoint_private_access') && eksPlan.contains(true)
351-
eksPlan.contains('endpoint_public_access') && eksPlan.contains(false)
349+
eksPlan = terraform.plan.resourceChanges.where(type == "aws_eks_cluster").map(change.after.vpc_config).flat
350+
eksPlan.all(_['endpoint_private_access'] == true)
351+
eksPlan.all(_['endpoint_public_access'] == false)
352352
- uid: mondoo-aws-security-eks-cluster-private-controlplane-terraform-state
353353
filters: asset.platform == "terraform-state"
354354
mql: |

0 commit comments

Comments
 (0)