Here's what I do:
amplify add function
(...and then go through the wizard in order to create a serverless function...); amplify push
; And, boom! Here's what I get
× An error occurred when pushing the resources to the cloud An error occurred during the push operation: / Resource is not in the state stackUpdateComplete
In the s3 bucket, I can see that the function zip file got created under /amplify-builds.
Oh, and before you ask, I've found no deployment-state.json file at the root level.
CloudFormation tells me that resource update failed because of:
Embedded stack arn:aws:cloudformation:::stack/amplify----api-/ was not successfully updated. Currently in UPDATE_ROLLBACK_IN_PROGRESS with reason: The following resource(s) failed to update: [GraphQLAPITransformerSchema3CB2AE18].
I've tried amplify remove function
followed by amplify add function
without significant result.
The error log file doesn't really help either:
{
"message": "Resource is not in the state stackUpdateComplete",
"code": "ResourceNotReady",
"retryable": false,
"time": "2022-07-15T16:49:21.011Z",
"statusCode": 200,
"retryDelay": 30000
}
Where should I go from here?
You should go CloudFormation UI directly, find this resource and select "Stack Actions" in top right corner. You will see buttons "Continue" or "Cancel" update stack. After this actions "amplify push" should work
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.