Skip to content

Commit e76e5bc

Browse files
authored
Removed base64 string
The put-record command does the base64 encoding.
1 parent 250398c commit e76e5bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc_source/with-kinesis-example.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,11 @@ In the response, you can verify the status value is `enabled`\. Event source map
159159

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

162-
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\.
162+
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\.
163163

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

169169
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 commit comments

Comments
 (0)