Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

37
aws-lambda Normal file
View File

@@ -0,0 +1,37 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# aws lambda
> CLI for AWS lambda.
> More information: <https://docs.aws.amazon.com/cli/latest/reference/lambda/>.
- Run a function:
`aws lambda invoke --function-name {{name}} {{path/to/response.json}}`
- Run a function with an input payload in JSON format:
`aws lambda invoke --function-name {{name}} --payload {{json}} {{path/to/response.json}}`
- List functions:
`aws lambda list-functions`
- Display the configuration of a function:
`aws lambda get-function-configuration --function-name {{name}}`
- List function aliases:
`aws lambda list-aliases --function-name {{name}}`
- Display the reserved concurrency configuration for a function:
`aws lambda get-function-concurrency --function-name {{name}}`
- List which AWS services can invoke the function:
`aws lambda get-policy --function-name {{name}}`