Skip to content

Commit 8a7fa53

Browse files
committed
add links to event/sns debugging S3 objects
1 parent d7d448c commit 8a7fa53

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,22 @@ Ensure you follow all the instructions in
249249
to get the SNS Topic to trigger the Lambda function for SES notifications.
250250
251251
252+
### Debugging
253+
254+
255+
Enable debugging by setting the `NODE_ENV=test` environment variable.
256+
257+
<img width="821" alt="NODE_ENV=test" src="https://user-images.githubusercontent.com/194400/78032144-75dfad00-735c-11ea-8eac-681bb2a3da9a.png">
258+
259+
Now the _latest_ `event` will be saved to:
260+
https://ademoapp.s3.eu-west-1.amazonaws.com/event.json
261+
![image](https://user-images.githubusercontent.com/194400/78031698-cd314d80-735b-11ea-85b3-b7645f3e4c2a.png)
262+
263+
And SNS messages are saved to:
264+
https://ademoapp.s3.eu-west-1.amazonaws.com/sns.json
265+
![image](https://user-images.githubusercontent.com/194400/78031940-24372280-735c-11ea-878f-d0fe2f4d2415.png)
266+
267+
252268
253269
<br /> <br /> <br />
254270

0 commit comments

Comments
 (0)