官术网_书友最值得收藏!

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\":\"\"}"
}
主站蜘蛛池模板: 杨浦区| 民乐县| 普兰店市| 河间市| 昌邑市| 额尔古纳市| 游戏| 长海县| 和林格尔县| 延寿县| 广宁县| 甘谷县| 延边| 游戏| 库尔勒市| 祥云县| 济阳县| 漳州市| 太湖县| 大洼县| 连山| 齐河县| 清水河县| 山西省| 丰城市| 麦盖提县| 东阳市| 沁阳市| 六盘水市| 磐安县| 新兴县| 称多县| 鱼台县| 区。| 长泰县| 徐州市| 望城县| 江北区| 游戏| 舞阳县| 嘉义市|