Skip to content

Commit 19ded6f

Browse files
committed
add changes 😔
1 parent 9b6cc93 commit 19ded6f

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

chapter16/chapter16.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ aws dynamodb create-table --table-name messages \
3232
--provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=5
3333
```
3434

35-
You'll get back the Arn identifier:
35+
You'll get back the Arn identifier `TableArn` along with other information:
3636

3737
```js
3838
{
@@ -258,7 +258,6 @@ aws lambda create-function --function-name db-api \
258258
--timeout 10
259259
```
260260

261-
262261
Results will look similar to this but with different IDs of course:
263262

264263
```js
@@ -293,10 +292,10 @@ Run from a CLI (recommended) to execute function in the cloud:
293292

294293
```
295294
aws lambda invoke \
296-
--invocation-type RequestResponse \
297-
--function-name db-api \
298-
--payload file://db-api-test.json \
299-
output.txt
295+
--invocation-type RequestResponse \
296+
--function-name db-api \
297+
--payload file://db-api-test.json \
298+
output.txt
300299
```
301300

302301
Or testing can be done from the web console in Lambda dashboard (blue test button once you navigate to function detailed view):
@@ -500,7 +499,7 @@ Finally, delete the database too by its name:
500499
aws dynamodb delete-table --table-name messages
501500
```
502501

503-
# Troubleshooting
502+
I taught this project over 20 times so I know the common problems. Thus, let's do troubleshooting of the common issues:
504503

505504
* Internal server error: Check your JSON input. DynamoDB requires special format for Table Name and Key.
506505
* Permissions: Check the permission for API resource and method to invoke Lambda. Use test in API Gateway to debug
@@ -511,3 +510,5 @@ aws dynamodb delete-table --table-name messages
511510

512511
Summary
513512
=======
513+
514+
Amazon Web Services offers myriads of cloud services and most of them benefit or use Node. Serverless architecture is one of them. In AWS serverless service is AWS Lambda. It uses managed and configured Node environment to run code (among other environment such as Python, Java, and other dinosaurs). The code can be HTTP request-response services (microservices) when you add API Gateway to Lambda. That's what we did but that's not all. Lambdas can be just code for sending notifications, data crunching and any other tasks.

0 commit comments

Comments
 (0)