Skip to content

Instantly share code, notes, and snippets.

View stephanfuchs's full-sized avatar

Stephan Fuchs stephanfuchs

View GitHub Profile
@weyderfs
weyderfs / awscli_jq_tricks.sh
Last active June 17, 2024 19:26
AWS CLI JQ Tricks - Outputs likes to export for CSV file
#List ECS Clusters by Name
aws ecs list-clusters --region <region> | jq -r '.clusterArns[]' | cut -d/ -f2
#List ECS List ServiceNames by Cluster
aws ecs list-services --cluster <cluster-name> --region sa-east-1 | jq -r '.serviceArns[]' | cut -d/ -f3
#List EventBridge Event Buses
aws events list-event-buses --region <region> | jq -r '.EventBuses[].Name'
#List EventBridge Rules