You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Inspired by https://stackoverflow.com/a/54096479/526860
FUNCTION_NAME=$1
if [ $FUNCTION_NAME ] && [ $FUNCTION_NAME != '--help' ]
then
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
else
echo "Usage:"
echo ""
echo "find-lambda-edge-logs FUNCTION_NAME"
echo ""
echo "To specify a profile set the AWS_PROFILE environment variable."