You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python-lambda is a toolset for developing microservices in AWS Lambda.
17
+
Python-lambda is a toolset for developing and deploying *serverless* Python code in AWS Lambda.
18
18
19
19
Description
20
20
===========
@@ -23,7 +23,7 @@ AWS Lambda is a service that allows you to write Python, Java, or Node.js code t
23
23
24
24
Working with Lambda is relatively easy, but the process of bundling and deploying your code is not as simple as it could be.
25
25
26
-
The *Python-Lambda* library takes away the guest work of developing your Python-Lambda microservices by providing you a toolset to streamline the annoying parts.
26
+
The *Python-Lambda* library takes away the guest work of developing your Python-Lambda services by providing you a toolset to streamline the annoying parts.
27
27
28
28
Requirements
29
29
============
@@ -40,20 +40,20 @@ Begin by creating a new virtualenv and project folder.
40
40
41
41
.. code:: bash
42
42
43
-
$ mkvirtualenv my_microservice
44
-
(my_microservice) $ mkdir my_microservice
43
+
$ mkvirtualenv lambduh
44
+
(lambduh) $ mkdir lambduh
45
45
46
46
Next, download *Python-Lambda* using pip via pypi.
47
47
48
48
.. code:: bash
49
49
50
-
(my_microservice) $ pip install python-lambda
50
+
(lambduh) $ pip install python-lambda
51
51
52
-
From your ``my_microservice`` directory, run the following to bootstrap your project.
52
+
From your ``lambduh`` directory, run the following to bootstrap your project.
53
53
54
54
.. code:: bash
55
55
56
-
(my_microservice) $ lambda init
56
+
(lambduh) $ lambda init
57
57
58
58
This will create the following files: ``event.json``, ``__init__.py``, ``service.py``, and ``config.yaml``.
59
59
@@ -81,7 +81,7 @@ If you now try and run:
81
81
82
82
.. code:: bash
83
83
84
-
(my_microservice) $ lambda invoke
84
+
(lambduh) $ lambda invoke
85
85
# "your test handler was successfully invoked!"
86
86
# below shows the result returned by your function execution:
87
87
# 5.858
@@ -94,7 +94,7 @@ When you're ready to deploy your code to Lambda simply run:
94
94
95
95
.. code:: bash
96
96
97
-
(my_microservice) $ lambda deploy
97
+
(lambduh) $ lambda deploy
98
98
99
99
The deploy script will evaluate your virtualenv and identify your project dependencies. It will package these up along with your handler function to a zip file that it then uploads to AWS Lambda.
0 commit comments