17 lines
427 B
Bash
17 lines
427 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
function listRes() {
|
||
|
aws --region $1 lambda list-functions | jq -cr '.Functions[] | [.FunctionName, .Runtime, .Architectures[]] | @csv' | tr -d \"
|
||
|
}
|
||
|
|
||
|
export -f listRes
|
||
|
|
||
|
# Generate inventory in all regions
|
||
|
|
||
|
echo "FunctionName, Runtime, Architecture"
|
||
|
aws --region=us-east-1 ec2 describe-regions --query Regions[].RegionName --output text | sed -e 's/\t/\n/g' | while read r; do
|
||
|
sem -j6 listRes $r
|
||
|
done
|
||
|
|
||
|
sem --wait
|