Last active
October 18, 2019 07:30
-
-
Save mkjsix/4991b7c99b4dc2d4e2a00257b71b9591 to your computer and use it in GitHub Desktop.
Describe AWS CloudWatch Log Groups for a profile and a region
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 | |
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