Skip to content

Instantly share code, notes, and snippets.

@sansagara
Created July 24, 2019 16:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sansagara/cfc06a8c38f3a80d36c7334cbfcd20de to your computer and use it in GitHub Desktop.
Save sansagara/cfc06a8c38f3a80d36c7334cbfcd20de to your computer and use it in GitHub Desktop.
Print a list of AWS EMR Cluster names
#!/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