Describe the bug
I'm trying to build a brand new test angular application and it appears that
amplify push
fails when trying to create a lambda function using an EOL runtime.
To Reproduce
Steps to reproduce the behavior:
$ amplify init
$ amplify add auth
$ amplify add storage
$ amplify add api
$ amplify push
CREATE_FAILED UserPoolClientLambda AWS::Lambda::Function Thu May 16 2019 16:37:18 GMT+0100 (British Summer Time) 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: 7cd01a6d-77f0-11e9-b134-ad1b84093343)
....
Changing the runtime version in the autogenerated cloudformation template (amplify/backend/auth/cognitod839ba04 in my case) to use nodejs8.10 appears to create the stack. However, i don't know if this is a good idea as it feels like i'm editing autogenerated code?
I beleive this auth resource was created with previous versions of the CLI, before we upgraded our default Cloudformation tempaltes to Node 8.10. Here's a quick migration guide out here - https://aws-amplify.github.io/docs/cli/lambda-node-version-update#auth
Most helpful comment
I beleive this auth resource was created with previous versions of the CLI, before we upgraded our default Cloudformation tempaltes to Node 8.10. Here's a quick migration guide out here - https://aws-amplify.github.io/docs/cli/lambda-node-version-update#auth