简体   繁体   中英

Using AWS-Amplify -> “amplify push” not working

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.

All references to node 6.10 should have been updated to 8.10 in the Amplify CLI. Most of the references you will be looking for in your current configuration should be in the cloudformation files, which are either json or yml. You can change those references manually and push, and if you have the latest version of the CLI installed it shouldn't be a problem going forward.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM