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

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\":\"\"}"
}
主站蜘蛛池模板: 江口县| 灵川县| 攀枝花市| 涡阳县| 颍上县| 石楼县| 宁武县| 沛县| 万安县| 禹城市| 集贤县| 昭通市| 上栗县| 云浮市| 台中县| 镇远县| 子洲县| 惠安县| 准格尔旗| 日土县| 威海市| 马公市| 霍邱县| 林州市| 合作市| 双城市| 巴南区| 都昌县| 迁安市| 铅山县| 屏山县| 安平县| 靖安县| 商城县| 封丘县| 金寨县| 安图县| 锡林浩特市| 平武县| 北流市| 中方县|