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

Deploying and testing hello world

Zappa deployment is super easy, as you only need to run a single command in order start the deployment:

$ zappa deploy <stage_name>

That's it! We are done with deployment. Now, let's deploy the hello world program. The following screenshot describes the deployment process:

Once the deployment completes, we get the API URL endpoint. Let's test the hello world application by hitting the API URL with the /hello endpoint:

$ curl -l  https://071h4br4e0.execute-api.ap-south-1.amazonaws.com/dev/hello

After running the preceding command, you will see the following output:

Hello World!

It's really amazing to be able to configure the service and deploy it in a few seconds. Now, we will see its basic uses related to the zappa_settings.json file in detail.

主站蜘蛛池模板: 禹州市| 平舆县| 丰县| 鹤壁市| 甘洛县| 日喀则市| 襄樊市| 连山| 于田县| 乡城县| 枣阳市| 曲沃县| 平武县| 霍邱县| 阳高县| 原平市| 噶尔县| 无为县| 扎囊县| 滕州市| 牟定县| 资阳市| 临夏市| 冀州市| 黎城县| 池州市| 抚顺县| 上高县| 江阴市| 明水县| 襄汾县| 合作市| 兴山县| 东丰县| 汉沽区| 白沙| 鞍山市| 遵义市| 焦作市| 南开区| 英德市|