Skip to content

Commit 250398c

Browse files
authored
Fixed inconsistencies in commands
The lambda is created with a different name from that which is used in the rest of the document.
1 parent 4bc1fe1 commit 250398c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc_source/with-kinesis-example.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ exports.handler = function(event, context) {
7777
1. Create a Lambda function with the `create-function` command\.
7878

7979
```
80-
$ aws lambda create-function --function-name ProcessKinesisRecord \
80+
$ aws lambda create-function --function-name ProcessKinesisRecords \
8181
--zip-file fileb://function.zip --handler index.handler --runtime nodejs8.10 \
8282
--role role-arn
8383
```
@@ -105,7 +105,7 @@ Invoke your Lambda function manually using the `invoke` AWS Lambda CLI command a
105105
"invokeIdentityArn": "arn:aws:iam::account-id:role/testLEBRole",
106106
"eventVersion": "1.0",
107107
"eventName": "aws:kinesis:record",
108-
"eventSourceARN": "arn:aws:kinesis:us-west-2:35667example:stream/examplestream",
108+
"eventSourceARN": "arn:aws:kinesis:us-west-2:35667example:stream/lambda-stream",
109109
"awsRegion": "us-west-2"
110110
}
111111
]
@@ -132,7 +132,7 @@ $ aws kinesis create-stream --stream-name lambda-stream --shard-count 1
132132
Run the following `describe-stream` command to get the stream ARN\.
133133

134134
```
135-
$ aws kinesis describe-stream --stream-name examplestream
135+
$ aws kinesis describe-stream --stream-name lambda-stream
136136
arn:aws:kinesis:us-east-2:123456789012:stream/lambda-stream
137137
```
138138

@@ -162,8 +162,8 @@ In the response, you can verify the status value is `enabled`\. Event source map
162162
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\.
163163

164164
```
165-
$ aws kinesis put-record --stream-name examplestream \
165+
$ aws kinesis put-record --stream-name lambda-stream \
166166
--data "SGVsbG8sIHRoaXMgaXMgYSB0ZXN0Lg==" --partition-key shardId-000000000000
167167
```
168168

169-
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)\.
169+
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)