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

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\":\"\"}"
}
主站蜘蛛池模板: 南乐县| 右玉县| 满洲里市| 新安县| 云梦县| 顺平县| 修文县| 罗山县| 合作市| 怀远县| 株洲市| 花莲市| 九江市| 岳阳县| 南充市| 军事| 监利县| 翁牛特旗| 沙洋县| 榆中县| 定州市| 定州市| 西贡区| 旺苍县| 城步| 临猗县| 和林格尔县| 女性| 平南县| 依安县| 中江县| 康平县| 金寨县| 方城县| 巨鹿县| 玉溪市| 永福县| 利津县| 侯马市| 若尔盖县| 西乡县|