This repository was archived by the owner on Dec 11, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +32
-2
lines changed Expand file tree Collapse file tree 1 file changed +32
-2
lines changed Original file line number Diff line number Diff line change 1- ### AWS Lambda Python 3.7 buildtemplate
1+ ### AWS Lambda Python buildtemplates
22
3- Knative buildtemplate based on [ LambCI] ( https://github.com/lambci/docker-lambda ) Python 3.7 runtime
3+ #### Python 3.7
4+
5+ Knative buildtemplate based on [ LambCI] ( https://github.com/lambci/docker-lambda ) Python 3.7 runtime.
6+ Function deployment example using [ tm] ( https://github.com/triggermesh/tm ) CLI:
7+
8+ 1 . Install buildtemplate
9+
10+ ```
11+ tm deploy buildtemplate -f https://raw.githubusercontent.com/triggermesh/aws-python-runtime/master/python-3.7/buildtemplate.yaml
12+ ```
13+
14+ 2 . Deploy [ function] ( https://github.com/serverless/examples/tree/master/aws-python-simple-http-endpoint )
15+
16+ ```
17+ tm deploy service python-test -f https://github.com/serverless/examples --build-template aws-python37-runtime --build-argument DIRECTORY=aws-python-simple-http-endpoint --build-argument HANDLER=handler.endpoint --wait
18+ ```
19+
20+ 3 . Execute function via public URL
21+
22+ ```
23+ curl python-test.default.dev.triggermesh.io
24+ {"statusCode": 200, "body": "{\"message\": \"Hello, the current time is 06:45:49.174383\"}"}
25+ ```
26+
27+ #### Python 2.7
28+
29+ TODO
30+
31+ #### Nodejs
32+
33+ TODO
You can’t perform that action at this time.
0 commit comments