2020-10-28 18:12:01 +00:00
|
|
|
# aws lambda
|
|
|
|
|
|
|
|
> CLI for AWS lambda.
|
2021-04-10 16:14:55 +01:00
|
|
|
> More information: <https://docs.aws.amazon.com/cli/latest/reference/lambda/>.
|
2020-10-28 18:12:01 +00:00
|
|
|
|
|
|
|
- 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}}`
|