Skip to content
This repository was archived by the owner on Dec 11, 2023. It is now read-only.

Commit fc543f7

Browse files
committed
Readme update, triggermesh/aws-custom-runtime/#5
1 parent a8cbb52 commit fc543f7

File tree

1 file changed

+32
-2
lines changed

1 file changed

+32
-2
lines changed

README.md

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,33 @@
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

0 commit comments

Comments
 (0)