i m trying diff commands in aws eks and when there is wrong cmd it spits out too long of output.
aws kubectl get pod
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters
]
To see help text, you can run:
aws help
aws <command> help
aws <command> <subcommand> help
aws: error: argument command: Invalid choice, valid choices are:
accessanalyzer | account
acm | acm-pca
alexaforbusiness | amp
amplify | amplifybackend
in case i only want to see the error msg and not 2 screens of all possible cmds how to limit the output in case of error?
i tried :
aws eks describe-cluster --voice wrongparameter | head 10
but it s not working
There is no such command
aws kubectl get pod!!It is either
kubectl get podto list pods in current namespace if you have kubectl cli installed and configured with the correct context oraws eks describe-cluster --name demoto describe your AWS Kubernetes cluster with namedemoin the current region and profile.