Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevinhooke/f2b59f5e3240f99852c806d3451728f7 to your computer and use it in GitHub Desktop.
Save kevinhooke/f2b59f5e3240f99852c806d3451728f7 to your computer and use it in GitHub Desktop.
aws cli list lambdas by name using query
#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