Skip to content

Commit 093578c

Browse files
committed
Update doc
1 parent 0dd3842 commit 093578c

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

docs/patterns/messaging-patterns/sam-lambda-kinesis-message-processor.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,16 @@ sam build
223223
sam deploy
224224
```
225225

226-
You can then invoke the function using the below CLI command, replacing the `<STREAM_ARN>` with the URL that was output as part of the `sam deploy` step. The `sam logs` command will grab the latest logs.
226+
This pattern also ships with a small test utility that allows you to interact with Kinesis. Run the below commands to use the test utility, replacing the `<STREAM_ARN>` with the URL that was output as part of the `sam deploy` step:
227+
228+
```bash test-utility.sh
229+
cd test-utility
230+
cargo run -- <STREAM_ARN>
231+
```
232+
233+
The test utility simulates a set of IoT devices sending temperature readings to Kinesis. It will send 10 records every 1 second. You can then use the `sam logs` command to retrieve the latest log messages.
234+
235+
Alternatively, you can then invoke the function using the below CLI command, replacing the `<STREAM_ARN>` with the URL that was output as part of the `sam deploy` step. The `sam logs` command will grab the latest logs.
227236

228237
```bash test.sh
229238
aws kinesis put-record --data "eyJ0ZW1wZXJhdHVyZSI6IDg5LjksICJyZWFkaW5nVGltZXN0YW1wIjogODkyMzc0MiB9" --partition-key "sensor-1" --region eu-west-1 --profile dev --stream-arn <STREAM_ARN>

0 commit comments

Comments
 (0)