Skip to content

Commit 5df65d4

Browse files
committed
cleaned up curl command + renamed fake virtualenv
1 parent 0f748c7 commit 5df65d4

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

README.rst

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,20 @@ Begin by creating a new virtualenv and project folder.
4040

4141
.. code:: bash
4242
43-
$ mkvirtualenv lambduh
44-
(lambduh) $ mkdir lambduh
43+
$ mkvirtualenv pylambda
44+
(pylambda) $ mkdir pylambda
4545
4646
Next, download *Python-Lambda* using pip via pypi.
4747

4848
.. code:: bash
4949
50-
(lambduh) $ pip install python-lambda
50+
(pylambda) $ pip install python-lambda
5151
52-
From your ``lambduh`` directory, run the following to bootstrap your project.
52+
From your ``pylambda`` directory, run the following to bootstrap your project.
5353

5454
.. code:: bash
5555
56-
(lambduh) $ lambda init
56+
(pylambda) $ lambda init
5757
5858
This will create the following files: ``event.json``, ``__init__.py``, ``service.py``, and ``config.yaml``.
5959

@@ -89,7 +89,7 @@ If you now try and run:
8989

9090
.. code:: bash
9191
92-
(lambduh) $ lambda invoke -v
92+
(pylambda) $ lambda invoke -v
9393
9494
You will get:
9595

@@ -108,7 +108,7 @@ When you're ready to deploy your code to Lambda simply run:
108108

109109
.. code:: bash
110110
111-
(lambduh) $ lambda deploy
111+
(pylambda) $ lambda deploy
112112
113113
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.
114114

@@ -129,5 +129,8 @@ Now try and run:
129129

130130
.. code:: bash
131131
132-
$ curl -H "Content-Type: application/json" -X POST -d '{"pi": 3.14, "e": 2.718}' https://<API endpoint URL>
132+
$ curl --header "Content-Type:application/json" \
133+
--request POST \
134+
--data '{"pi": 3.14, "e": 2.718}' \
135+
https://<API endpoint URL>
133136
# 5.8580000000000005

0 commit comments

Comments
 (0)