Skip to content

Instantly share code, notes, and snippets.

@mkjsix
Last active October 18, 2019 07:30
Show Gist options
  • Save mkjsix/4991b7c99b4dc2d4e2a00257b71b9591 to your computer and use it in GitHub Desktop.
Save mkjsix/4991b7c99b4dc2d4e2a00257b71b9591 to your computer and use it in GitHub Desktop.
Describe AWS CloudWatch Log Groups for a profile and a region
#!/bin/bash
export AWS_PROFILE=$1
export AWS_REGION=$2
echo "AWS_PROFILE=$AWS_PROFILE, AWS_REGION=$AWS_REGION"
aws logs --region "$AWS_REGION" describe-log-groups --query 'logGroups[*].[logGroupName]' | grep / | sed 's/"//g'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment