Errata

Full Stack Serverless

Errata for Full Stack Serverless

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted By Date submitted Date corrected
ePub
Page ?
Chapter 6 - related to confirmed serious technical error additional change needed

Chapter 6. Section: Adding the Custom Logic for Resizing the Image As per https://sharp.pixelplumbing.com/install#aws-lambda - nodejs runtime must be 12.x. I got an error with the default of 10.x "Something went wrong installing the "sharp" module" need to update \lambda-trigger-example\amplify\backend\function\<S3Trigger>\<s3trigger>-cloudformation-template.json line 59 from "Runtime": "nodejs10.x", to "Runtime": "nodejs12.x",

Note from the Author or Editor:
I've just made these updates to the most recent version in the OReilly portal, but for anyone that is running into this, here is what needs to be fixed: Sharp requires version 12.x of Node.js so we'll need to check the Lambda runtime in our function to be sure it's set to at least 12.x and if it is not, update it. To do this, open amplify/backend/function/<function-name>/<function-name-template>.json and be sure the "Runtime" property is set to at least nodejs12.x and if it is not, update and save the file: "Runtime": "nodejs12.x",

Anonymous  Sep 05, 2020 
Safari Books Online
?
First listing

this listing: // amplify/backend/function/<function_name>/src/add-to-group.js if (isAdmin) { groupParams.GroupName = 'Admin', userParams.GroupName = 'Admin' There should not be a comma after the groupParams.GroupName = 'Admin',

Note from the Author or Editor:
Please remove the trailing comma for this to work properly.

Matthew Gillard  Sep 05, 2020 
Printed
Page 88
Center code block

Lines: "scripts": { "install": "npm install --arch=x64 --platform=linux --target=10.15.0 sharp" }, Should read as: "scripts": { "install": "npm install --arch=x64 --platform=linux sharp" },

Anonymous  Jul 24, 2020