Susan Harkins (345) [Avatar] Offline
#1
Please post errors in the published version of AWS Lambda in Action here. We'll publish a comprehensive list for everyone's convenience. Thank you!

Susan Harkins
Errata Editor
Manning Publications
443453 (1) [Avatar] Offline
#2
About this book

AUTHOR ONLINE
www.manning.com/aws-lambda-in-action should be www.manning.com/books/aws-lambda-in-action
Joseph Knecht (1) [Avatar] Offline
#3
page 54: 'curl https://<your endpoint>/prod/users/JohnDoe123/greet'

The API Gateway URL should be for 'user' instead of 'users', because the name of the resource readers were instructed to create was 'User'.
270304 (3) [Avatar] Offline
#4
Author Online:

The link to the forum currently is www.manning.com/aws-lambda-in-action

it should be www.manning.com/forums/aws-lambda-in-action
257722 (2) [Avatar] Offline
#5
Typo in 3rd paragraph chapter 1-it's the first full paragraph on page 4 of the pdf

The last sentence in the paragraph reads 'Even if you use a container-based approach in building the environment,
with tools such as Docker, you’re still in change of managing versioning and
updates of the containers you use.'

change should be changed to charge
Susan Harkins (345) [Avatar] Offline
#6
529583 (4) [Avatar] Offline
#7
Susan, that url no longer works.
24997 (13) [Avatar] Offline
#8
529583 (4) [Avatar] Offline
#9
1. Ch 5.2.2, Listing 5.1, pg 89:

var dstKey = "thumbs/" + srcKey);


Has an extra ')' on the end that should not be there.

2. Ch 5.2.2, Listing 5.1, pg 89:

Bad indentation on these lines:

var imageType = getImageType(srcKey, callback);


and

s3.getObject({
    Bucket: srcBucket,
    Key: srcKey
  },
  next);
},


3. Ch 5.2.2, Listing 5.1, pg 89:

Function name type in:

function tranformImage(response, next) { 


Should be

function transformImage(response, next) {
Susan Harkins (345) [Avatar] Offline
#10
The current errata list is at https://manning-content.s3.amazonaws.com/download/0/bee6826-ca36-4b36-bcd2-50ebf7056d05/Poccia_AWSLambdainAction_Err2.html. I'm sorry for any inconvenience. Thank you!

Susan Harkins
Errata Editor
516719 (1) [Avatar] Offline
#11
Chapter 9, Page 185:

'name' should be bolded in both function definitions to reflect that they have been added.

1) function storeUser(email, *name*, password, salt, fn)

2) function sendVerificationEmail(email, *name*, token, fn)

472618 (13) [Avatar] Offline
#12
ch9 page 174, last resource in Policy_Cognito_Unauthenticated_Role should be

"arn:aws:lambda:<REGION>:<ACCOUNT>:function:sampleAuthLogin"

not

"arn:aws:lambda:<REGION>:<ACCOUNT>:function:login"


likewise, ch10 page 207, the first bullet after Policy_Cognito_Authenticated_Role should be

The sampleAuthLogin function, to authenticate the user

not

The login function, to authenticate the user
472618 (13) [Avatar] Offline
#13
ch10 page 211 and 212 when calling computeHash, it should be called as

cyrptoUtils.computeHash(...