Created
February 18, 2021 10:45
-
-
Save mjaromi/3065f19a49334c3108af26ab88108f6e to your computer and use it in GitHub Desktop.
AWS ElasticSearch Cluster Health
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws es list-domain-names | jq -r .DomainNames[].DomainName | while read dn; do echo -ne "$dn - " ; curl -sk https://$(aws es describe-elasticsearch-domain --domain-name ${dn} | jq -r .DomainStatus.Endpoints.vpc)/_cluster/health | jq .status ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment