- Building Serverless Python Web Services with Zappa
- Abdulwahid Abdulhaque Barguzar
- 113字
- 2021-07-16 18:16:11
Invoking the function
The Lambda CLI provides a command to directly invoke the Lambda function:
$ aws lambda invoke --function-name <value> <outfile>
Let's look at the parameters:
- --function-name (required): This parameter asks for a Lambda function name
- outfile (required): Here, you need to mention a filename where the returned output or response by the Lambda function will be stored
Here are other optional parameters available that you can list by the help command.
Let's invoke our recently created HelloWorldCLI function:

When we invoked the Lambda function, it immediately responded with a status code and the Lambda function returned the output data stored in the newly created lambda_output.txt file by the lambda invoke command.
推薦閱讀
- Twilio Cookbook
- Hands-On Industrial Internet of Things
- Spring Boot 2.0 Projects
- Proxmox High Availability
- 互聯(lián)網(wǎng)安全的40個(gè)智慧洞見:2014年中國互聯(lián)網(wǎng)安全大會文集
- 通信簡史:從信鴿到6G+
- 物聯(lián)網(wǎng)與無線傳感器網(wǎng)絡(luò)
- 電力物聯(lián)網(wǎng)工程技術(shù)原理與應(yīng)用
- jQuery Mobile Web Development Essentials
- AWS Lambda Quick Start Guide
- 云工廠:開啟中國制造云時(shí)代
- 互聯(lián)網(wǎng)安全的40個(gè)智慧洞見(2016)
- 物聯(lián)網(wǎng)的機(jī)遇與利用
- 基于IPv6的家居物聯(lián)網(wǎng)開發(fā)與應(yīng)用技術(shù)
- 全聯(lián)網(wǎng)標(biāo)識服務(wù)