1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-12-09 14:51:50 +00:00

[zprezto] Add EKS clusters summary to AWS module

This commit is contained in:
Daniel Carrillo 2024-10-07 11:05:31 +02:00
parent c6e45e4344
commit 13ebe2b120

View File

@ -148,6 +148,15 @@ function aws_cf {
| jq -r ".[] | [.id, .domain, .aliases, .status, .origin] | @csv" | tr -d '"' | column --separator="," --table
}
function aws_eks {
local profile=$(_get_aws_profile)
for cluster in $(aws eks list-clusters --output text --query 'clusters'); do
aws eks describe-cluster --name $cluster --output ${_aws_output} \
--query "cluster.{name:name,endpoint:endpoint,access:resourcesVpcConfig.publicAccessCidrs | join(' ',@),issues:health.issues | join(' ',@)}"
done
}
# ~/.ssh/config
#
# Host i-*