Update AWS lambda deployment example notebook
"source": [
"### Make curl request to the Lambda endpoint\n",
"\n",
- "Update the URL from previous command's return result and run following command in the terminal\n",
+ "Replace the [URL] from the following command with the endpoints value from the previous output and then run it in a terminal\n",
"```bash\n",
"curl -i \\\n",
"--header \"Content-Type: application/json\" \\\n",
"--data '[\"good movie\", \"bad food\"]' \\\n",
"--request POST \\\n",
- "https://URL\n",
+ "[URL]\n",
+ "```\n",
+ "\n",
+ "Here is an example of running this command:\n",
+ "\n",
+ "```\n",
+ "$curl -i \\\n",
+ "> --header \"Content-Type: application/json\" \\\n",
+ "> --data '[\"good movie\", \"bad food\"]' \\\n",
+ "> --request POST \\\n",
+ "> https://yw38wha2tl.execute-api.ap-northeast-1.amazonaws.com/default/predict\n",
+ "\n",
+ "HTTP/1.1 200 OK\n",
+ "Content-Type: application/json\n",
+ "Content-Length: 6\n",
+ "Connection: keep-alive\n",
+ "Date: Mon, 18 Nov 2019 13:10:12 GMT\n",
+ "x-amzn-RequestId: 245ac5ac-64cd-40b5-9ac4-8414eb1e5162\n",
+ "x-amz-apigw-id: DWy1xEPVtjMFrqQ=\n",
+ "X-Amzn-Trace-Id: Root=1-5dd29824-8d6d9748fc441bd0abc699e8;Sampled=0\n",
+ "X-Cache: Miss from cloudfront\n",
+ "Via: 1.1 4ac3d01dc034ade34c90e81091421c76.cloudfront.net (CloudFront)\n",
+ "X-Amz-Cf-Pop: SIN5-C1\n",
+ "X-Amz-Cf-Id: ZpFAY2QOzO5MZHs1cA5G2CmAy70x-s9Ch9ShoY22jK0w-gmWsLUpWQ==\n",
+ "\n",
+ "[4, 0]\n",
"```"
]
},
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.7.2"
+ "version": "3.7.3"
}
},
"nbformat": 4,
