- 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\":\"\"}"
}
推薦閱讀
- Linux設備驅動開發詳解:基于最新的Linux4.0內核
- Mastering KVM Virtualization
- Application Development in iOS 7
- Delphi Programming Projects
- Windows Vista終極技巧金典
- Linux網絡操作系統項目教程(RHEL 7.4/CentOS 7.4)(第3版)(微課版)
- OpenVZ Essentials
- Web Penetration Testing with Kali Linux(Third Edition)
- CSS揭秘
- Azure Resource Manager Templates Quick Start Guide
- 電腦辦公(Windows10+Office2016)從新手到高手
- 微軟360度
- 48小時精通SolidWorks 2014中文版鈑金設計技巧
- 庖丁解牛Linux操作系統分析
- Command Line Fundamentals