Created
March 1, 2022 19:00
-
-
Save kevinhooke/f2b59f5e3240f99852c806d3451728f7 to your computer and use it in GitHub Desktop.
aws cli list lambdas by name using query
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
#list-functions is paginated by default so need to set page-size, no-paginate or simiilar to get complete list | |
# see https://docs.aws.amazon.com/cli/latest/reference/lambda/list-functions.html | |
# https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-pagination.html | |
aws lambda list-functions --region us-west-2 | |
--query 'Functions[?starts_with(FunctionName, `name-pattern-here`) == `true`].FunctionName' | |
--page-size 300 >> output.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment