Skip to content

Commit

Permalink
Removed base64 string
Browse files Browse the repository at this point in the history
The put-record command does the base64 encoding.
  • Loading branch information
klmz authored Nov 29, 2018
1 parent 250398c commit e76e5bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc_source/with-kinesis-example.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,11 @@ In the response, you can verify the status value is `enabled`\. Event source map

## Test the Setup<a name="with-kinesis-example-configure-event-source-test-end-to-end"></a>

To test the event source mapping, add event records to your Kinesis stream\. The `--data` value is a base64\-encoded value of the `"Hello, this is a test."` string\. You can run the same command more than once to add multiple records to the stream\.
To test the event source mapping, add event records to your Kinesis stream\. The `--data` value will be base64\-encoded when it is added to the Kinesis stream. You can run the same command more than once to add multiple records to the stream\.

```
$ aws kinesis put-record --stream-name lambda-stream \
--data "SGVsbG8sIHRoaXMgaXMgYSB0ZXN0Lg==" --partition-key shardId-000000000000
--data "Hello, this is a test." --partition-key shardId-000000000000
```

Lambda uses the execution role to read records from the stream\. Then it invokes your Lambda function, passing in batches of records\. The function decodes data from each record and logs it, sending the output to CloudWatch Logs\. View the logs in the [CloudWatch console](https://console.aws.amazon.com/cloudwatch)\.

0 comments on commit e76e5bc

Please sign in to comment.