Created
September 20, 2022 08:33
-
-
Save saurabh2590/19d7ce1db747a86c3aded0e1858ddd5b to your computer and use it in GitHub Desktop.
Checks AWS Lamdba
This file contains 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 | |
PROFILE=$1 | |
RUNTIME=$2 | |
REGIONS=$(aws --profile ${PROFILE} ec2 describe-regions --query 'Regions[*].RegionName' --output text) | |
for REGION in ${REGIONS}; do | |
echo ${REGION} | |
aws --profile ${PROFILE} lambda list-functions --function-version ALL --region ${REGION} --output json --query "Functions[?Runtime=='${RUNTIME}'].FunctionArn" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment