Skip to content

Instantly share code, notes, and snippets.

@anatoly-scherbakov
anatoly-scherbakov / reserved-concurrency.sh
Created May 11, 2020 07:15
Reserved concurrency per AWS Lambda function
#!/usr/bin/env bash
get_concurrency="aws lambda get-function-concurrency --function-name {} | jq -r '\"{.},\( .ReservedConcurrentExecutions )\"'"
tmpfile=$(tempfile) || exit
aws lambda list-functions \
| jq -r '.Functions[] .FunctionName' \
| parallel "$get_concurrency" > ${tmpfile}