Cloudformation deploy demo-app failed

aws cloudformation deploy --template-file .template.yml --stack-name demo-app --capabilities CAPABILITY_IAM
...was not successfully created: The following resource(s) failed to create: [DashboardFunction].


Can you go to CloudFormation and search for “DashboardFunction” and switch from “Active” to “Deleted”. Select the stack that is found and copy the first events with an error status.


oh, I see it’s about node version

The runtime parameter of nodejs8.10 is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (nodejs12.x) while creating or updating functions. (Service: AWSLambdaInternal; Status Code: 400; Error Code: InvalidParameterValueException;

You seem to use an old version of the book/code. Have you received an email with the subject line “Rapid Docker on AWS update available” from us? If not, please send us an email to us with your order id and we resend that email to you.