0

I'm following steps mentioned in : https://aws.amazon.com/getting-started/hands-on/build-react-app-amplify-graphql/module-three/?e=gs2020&p=build-a-react-app-two

In Step3 , in the "Deploy changes to live environment" ; AWS Amplify is provisioning build environment with a Docker image :
AWS Amplify -> Provisioning -> Framework Versions ENV VERSION_NODE_8=8.12.0 ENV VERSION_NODE_10=10.16.0 ENV VERSION_NODE_12=12 ENV VERSION_NODE_DEFAULT=$VERSION_NODE_10

How can i update ENV VERSION_NODE_DEFAULT=$ENV VERSION_NODE_12 ?

enter image description here

enter image description here

Pawan Mude
  • 1,609
  • 6
  • 19
  • 32
  • Error Code: InvalidParameterValueException; Request ID: 77f4c020-aeea-458f-85c8-86df0160e852; – Pawan Mude Nov 16 '20 at 14:07
  • [INFO]: CREATE_FAILED UpdateRolesWithIDPFunction AWS::Lambda::Function 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; Request ID: 77f4c020-aeea-458f-85c8-86df0160e852; Proxy: null) UPDATE_ROLLBACK_IN_PROGRESS notesapp-master-20201116125403 AWS::CloudFormation::Stack The following resource(s) failed to create: [UpdateRolesWithIDPFunction] – Pawan Mude Nov 16 '20 at 14:09
  • Following resources failed Resource Name: UpdateRolesWithIDPFunction (AWS::Lambda::Function) Event Type: create Reason: 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; Request ID: 1a755105-752a-4d83-a3a7-846bea5944cd; Proxy: null) [INFO]: init failed – Pawan Mude Nov 16 '20 at 16:09
  • 1
    The default node version probably cannot be changed. Here is described how to use other node versions: https://stackoverflow.com/a/56453511/13017141 – Johannes Konings Nov 16 '20 at 16:53

1 Answers1

0

With latest version of CLI it's working without any issues.

  • aws-amplify/cli@4.41.0
  • aws-amplify/ui-react@0.2.33
  • aws-amplify@3.3.13
Pawan Mude
  • 1,609
  • 6
  • 19
  • 32