From 7f82988deb86f5d0a6615ee700ac64c6ebca1f50 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Fri, 26 Jul 2024 14:15:06 -0700 Subject: [PATCH] Update the EKS examples - Fix an incorrect name in the bottom query - Update the output - Update the dates / versions to be more current Signed-off-by: Tim Smith --- docs/cnquery/cloud/aws/eks.mdx | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/docs/cnquery/cloud/aws/eks.mdx b/docs/cnquery/cloud/aws/eks.mdx index fff582655..e7660b8f9 100644 --- a/docs/cnquery/cloud/aws/eks.mdx +++ b/docs/cnquery/cloud/aws/eks.mdx @@ -33,8 +33,8 @@ It returns each cluster's ARN and current state: ```coffeescript aws.eks.clusters: [ - 0: aws.eks.cluster arn="arn:aws:eks:us-east-1:177043759486:cluster/eks-cluster" version="1.22" status="FAILED" - 1: aws.eks.cluster arn="arn:aws:eks:us-east-2:177043759486:cluster/online-shop-eks-cluster-byh8" version="1.22" status="ACTIVE" + 0: aws.eks.cluster arn="arn:aws:eks:us-east-1:177043759486:cluster/eks-cluster" version="1.30" status="FAILED" + 1: aws.eks.cluster arn="arn:aws:eks:us-east-2:177043759486:cluster/online-shop-eks-cluster-byh8" version="1.30" status="ACTIVE" ] ``` @@ -100,19 +100,28 @@ aws.eks.clusters[1]: { ] VpcId: "vpc-05905b857f7424833" } - version: "1.22" + version: "1.30" name: "online-shop-eks-cluster-byh8" networkConfig: { IpFamily: "ipv4" ServiceIpv4Cidr: "172.20.0.0/16" ServiceIpv6Cidr: null } - createdAt: 2022-10-23 23:12:54.304 +0000 UTC + createdAt: 2024-01-23 23:12:54.304 +0000 UTC arn: "arn:aws:eks:us-east-2:177043759486:cluster/online-shop-eks-cluster-byh8" region: "us-east-2" endpoint: "https://8D2087DAD267CF9F24358D00F7553B84.gr7.us-east-2.eks.amazonaws.com" - platformVersion: "eks.6" - status: "ACTIVE" + platformVersion: "eks.2" + status: "ACTIVE", + addons: [ + 0: aws.eks.addon name="aws-efs-csi-driver" addonVersion="v2.0.4-eksbuild.1" status="ACTIVE" + 1: aws.eks.addon name="aws-mountpoint-s3-csi-driver" addonVersion="v1.7.0-eksbuild.1" status="ACTIVE" + 2: aws.eks.addon name="coredns" addonVersion="v1.11.1-eksbuild.9" status="ACTIVE" + 3: aws.eks.addon name="eks-pod-identity-agent" addonVersion="v1.3.0-eksbuild.1" status="ACTIVE" + 4: aws.eks.addon name="kube-proxy" addonVersion="v1.30.0-eksbuild.3" status="ACTIVE" + 5: aws.eks.addon name="vpc-cni" addonVersion="v1.18.2-eksbuild.1" status="ACTIVE" + ], + authenticationMode: "API_AND_CONFIG_MAP" } ``` @@ -130,11 +139,11 @@ It returns a list with only the information you asked for: aws.eks.clusters: [ 0: { arn: "arn:aws:eks:us-east-1:177043759486:cluster/eks-cluster" - createdAt: 2022-09-08 09:41:11.26 +0000 UTC + createdAt: 2023-09-08 09:41:11.26 +0000 UTC } 1: { arn: "arn:aws:eks:us-east-2:177043759486:cluster/online-shop-eks-cluster-byh8" - createdAt: 2022-10-23 23:12:54.304 +0000 UTC + createdAt: 2024-01-23 23:12:54.304 +0000 UTC } ] ``` @@ -154,12 +163,12 @@ It lists each cluster's ARN and creation date: ```coffeescript aws.eks.clusters.where: [ 0: { - createdAt: 2022-09-08 09:41:11.26 +0000 UTC + createdAt: 2023-09-08 09:41:11.26 +0000 UTC arn: "arn:aws:eks:us-east-1:177043759486:cluster/eks-cluster" } 1: { - createdAt: 2021-12-08 09:03:22.44 +0000 UTC - arn: "arn:aws:eks:us-west-1:177043759533:cluster/lunashop-eks-cluster" + createdAt: 2024-01-23 23:12:54.304 +0000 UTC + arn: "arn:aws:eks:us-east-2:177043759486:cluster/online-shop-eks-cluster-byh8" } ] ```