To understand how to use AWS-Amplify I am following this document.
It all goes well, except when reaching this command:
$ amplify push
It ends like this:
Following resources failed
Resource Name: PinpointFunction (AWS::Lambda::Function)
Event Type: create
Reason: The runtime parameter of nodejs6.10 is no longer supported
for creating or updating AWS Lambda functions. We recommend you use
the new runtime (nodejs8.10) while creating or updating functions.
(Service: AWSLambdaInternal; Status Code: 400;
Error Code: InvalidParameterValueException; Request ID: xxxx-8a8e-.....-yyyy-zzzz)
✖ An error occurred when pushing the resources to the cloud
Resource is not in the state stackUpdateComplete
Why am I getting this error? I have already run the same command in the past. And I did not change my NodeJS version.