Created
December 3, 2021 18:45
-
-
Save mijdavis2/6a00776f5c3c4ae676f29431e05b44bd to your computer and use it in GitHub Desktop.
AWS lambda runtime discovery command
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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