Skip to content

Instantly share code, notes, and snippets.

@prog893
Created July 17, 2019 03:51
Show Gist options
  • Save prog893/12a3c552ae4a58bcf410e1c50f143b1c to your computer and use it in GitHub Desktop.
Save prog893/12a3c552ae4a58bcf410e1c50f143b1c to your computer and use it in GitHub Desktop.
List all Lambda runtimes used in all regions
#!/bin/bash
# all regions (2019/07/17)
regions=("ap-northeast-1" "ap-northeast-2" "ap-northeast-3" "ap-south-1" "ap-southeast-1" "ap-southeast-2" "ca-central-1" "eu-central-1" "eu-north-1" "eu-west-1" "eu-west-2" "eu-west-3" "sa-east-1" "us-east-1" "us-east-2" "us-west-1" "us-west-2")
for region in "${regions[@]}"
do
echo "Lambda runtimes used in region ${region}"
aws lambda list-functions --region ${region} | jq '.Functions[].Runtime' | sort | uniq
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment