Skip to content

Instantly share code, notes, and snippets.

@k-nishijima
Created April 19, 2019 02:02
Show Gist options
  • Save k-nishijima/2c9f78a92904b17d5ae96a8ba978343e to your computer and use it in GitHub Desktop.
Save k-nishijima/2c9f78a92904b17d5ae96a8ba978343e to your computer and use it in GitHub Desktop.
export CHECK_AWS_PROFILE="yourProfile"; declare -a name=("eu-north-1" "ap-south-1" "eu-west-3" "eu-west-2" "eu-west-1" "ap-northeast-2" "ap-northeast-1" "sa-east-1" "ca-central-1" "ap-southeast-1" "ap-southeast-2" "eu-central-1" "us-east-1" "us-east-2" "us-west-1" "us-west-2") ; for i in ${name[@]} ; do aws --profile=$CHECK_AWS_PROFILE --region=$i lambda list-functions | jq -r '.Functions[] | [.FunctionName, .Runtime, .FunctionArn] | @csv' | sort -t "," -k 2 ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment