Skip to content

Commit 7bdd808

Browse files
author
Nikita Tchayka
committed
Update images
1 parent 917a3bb commit 7bdd808

File tree

1 file changed

+22
-10
lines changed

1 file changed

+22
-10
lines changed

doc/06-deploying-a-lambda.md

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,28 @@ cd build && zip function.zip bootstrap && rm bootstrap && cd ..
3131

3232
## AWS Lambda Console
3333

34-
In the AWS Lambda console select `Create function` and give your function a name,
34+
In the AWS Lambda console select `Create function` and give your function a name,
3535
e.g. `myHaskellLambda`, and for the runtime select `'Provide your own bootstrap'`.
36-
<P>
37-
Inside your function configuration, select `'Upload a .zip file'` for code entry type.
38-
Select the `function.zip` in the Function package. Change the Handler
39-
to `src/Lib.handler`.
40-
<P>
36+
37+
![creating a lambda screenshot](https://imgur.com/Q8vT9ow.png)
38+
39+
![filling aws lambda information](https://imgur.com/OaUL8aA.png)
40+
41+
Inside your function configuration, select `'Upload a .zip file'` for code entry type.
42+
Select the `function.zip` in the Function package. Change the Handler
43+
to `src/Lib.handler`.
44+
4145
Remember to select `Save` to save your configuration.
42-
<P>
43-
Next to the Test button select `'Configure test events'` and use the following JSON for
46+
47+
![uploading handler](https://imgur.com/fdCmjGS.png)
48+
49+
50+
Next to the Test button select `'Configure test events'` and use the following JSON for
4451
a successful test.
4552

53+
![configuring test events location](https://imgur.com/mYLA3xX.png)
54+
![configuring test events window](https://imgur.com/gpvKMSD.png)
55+
4656
```
4757
{
4858
"personName": "Bobby",
@@ -59,7 +69,9 @@ For a test which captures the error and results in a failure use the following J
5969
}
6070
```
6171
After selecting the test you wish to run and pressing `Test` you will see the resul in the `Execution result` area. For successful execution the returned data will be the same as the input.
62-
<P>
72+
6373
In the failure case the returned data will be `'A person's age must be positive'`.
64-
<P>
74+
75+
![failed execution](https://imgur.com/P4J1AQc.png)
76+
6577
Congratulations you have ran your first AWS Lambda using the Haskell runtime!

0 commit comments

Comments
 (0)