Created
September 25, 2020 01:31
-
-
Save phanviet/792bb9bf84324bebbf9234d5c9927d2b to your computer and use it in GitHub Desktop.
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
FUNCTION_NAME=dev-earlybird-edge-image-resize | |
for region in $(aws --output text ec2 describe-regions | cut -f 4) | |
do | |
for loggroup in $(aws --output text logs describe-log-groups --log-group-name "/aws/lambda/us-east-1.$FUNCTION_NAME" --region $region --query 'logGroups[].logGroupName') | |
do | |
echo $region $loggroup | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment