Created
July 24, 2019 16:24
-
-
Save sansagara/cfc06a8c38f3a80d36c7334cbfcd20de to your computer and use it in GitHub Desktop.
Print a list of AWS EMR Cluster names
This file contains hidden or 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
#!/bin/bash | |
# lists all emr cluster names. | |
# depends on AWS CLI and JQ | |
``` | |
for cluster in `aws emr list-clusters --active | jq .Clusters[].Name -r`; do | |
echo $cluster | |
done | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment