mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-21 14:48:01 +00:00
[zprezto] Add EKS clusters summary to AWS module
This commit is contained in:
parent
c6e45e4344
commit
13ebe2b120
@ -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-*
|
||||
|
Loading…
Reference in New Issue
Block a user