- DevOps for Serverless Applications
- Shashikant Bangera
- 100字
- 2021-07-16 17:35:36
Invoking locally
Pushing the code to AWS Lambda and testing every time would be expensive and time consuming. So with Serverless Framework, we can invoke or test functions locally and then deploy them to the cloud. We can have this as part of the continuous deployment pipeline, where we can set the local invocation for dev stage deployment, set up automated testing, and then move them further down the pipeline to deploy and test remotely. The following command is used to invoke the function locally:
$ serverless invoke local --function hello
{
"statusCode": 200,
"body": "{\"message\":\"My Serverless World\",\"input\":\"\"}"
}
推薦閱讀
- Citrix XenApp Performance Essentials
- Linux網絡管理與配置(第2版)
- Linux系統文件安全實戰全攻略
- Mastering Distributed Tracing
- Persistence in PHP with the Doctrine ORM
- 精通Linux內核開發
- 操作系統基礎與實踐:基于openEuler平臺
- 嵌入式應用程序設計綜合教程(微課版)
- 計算機系統開發與優化實戰
- 網絡操作系統教程:Windows Server 2016管理與配置
- Mastering Reactive JavaScript
- AutoCAD 2014中文版從入門到精通
- Learning Magento 2 Administration
- Windows 7實戰從入門到精通
- Hadoop Real-World Solutions Cookbook