Skip to content

Instantly share code, notes, and snippets.

@mijdavis2
Created December 3, 2021 18:45
Show Gist options
  • Save mijdavis2/6a00776f5c3c4ae676f29431e05b44bd to your computer and use it in GitHub Desktop.
Save mijdavis2/6a00776f5c3c4ae676f29431e05b44bd to your computer and use it in GitHub Desktop.
AWS lambda runtime discovery command
#!/bin/bash
# Helpful for finding lambdas that are using an old runtime, etc.
RUNTIME=node
ARN_SUFFIX=etl
aws lambda list-functions --region us-west-2 | \
jq '.Functions[] | select(.Runtime | startswith("${RUNTIME}")) | select (.FunctionArn | endswith("${ARN_SUFFIX}")) | .FunctionName'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment