Skip to content

Commit

Permalink
Update the EKS examples
Browse files Browse the repository at this point in the history
- Fix an incorrect name in the bottom query
- Update the output
- Update the dates / versions to be more current

Signed-off-by: Tim Smith <[email protected]>
  • Loading branch information
tas50 committed Jul 26, 2024
1 parent 665d635 commit 7b4bc25
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .github/actions/spelling/expect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ Clusterwide
Clw
cmek
cnames
cni
CODENAME
codeql
computeservice
Expand Down Expand Up @@ -112,6 +113,7 @@ eig
eip
ekm
Ekoslaq
eksbuild
enableforcedlogoff
enablesecuritysignature
ERXy
Expand Down Expand Up @@ -296,7 +298,6 @@ securetty
securityimages
SEfirewall
serviceprincipals
shodan
singlequeryargument
sizeconstraintstatement
skype
Expand Down
31 changes: 20 additions & 11 deletions docs/cnquery/cloud/aws/eks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
```

Expand Down Expand Up @@ -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"
}
```

Expand All @@ -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
}
]
```
Expand All @@ -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"
}
]
```
Expand Down

0 comments on commit 7b4bc25

Please sign in to comment.