What is the general AWS Amplify development cycle?

0

I dont get a lot of things about amplify: -Whats a quick way to run a lambda function? (amplify mock doesnt work with layers so thats not an option) -How do you debug with the browser (node --inspect) ? -How do you all this with no network (very common, I push changes later)?

Is making a small change, pushing changes (10 seconds), running the commands -> oh have a typo at line 54 -> waiting another 10 seconds -> look at that a logical error -> 10 seconds... the normal AWS amplify workflow? Why is the answer to: How do you debug lambdas always, use mock. When mock has no console ouput and no debugging.

asked a year ago313 views
1 Answer
0

Hello,

Unfortunately, “amplify mock” does not work with lambda layers. Please note that the Amplify development team is aware of this limitation and there is a current feature request regarding the same. Refer the below Github Feature request:

[+] https://github.com/aws-amplify/amplify-cli/issues/4826

We regret the inconvenience caused to you due to this limitation.

However, as a workaround, you can temporarily remove the dependency of the lambda layer from the “amplify/backend/amplify-meta.json” file by removing the “dependsOn” parameter and test your function locally by running the “amplify mock function <function-name>”.

Kindly refer the below Github issue comment by open source community member regarding detailed information regarding this:

[+] https://github.com/aws-amplify/amplify-cli/issues/4826#issuecomment-1165555739

As mentioned above, kindly follow this GitHub link for further details regarding this Feature request:

[+] https://github.com/aws-amplify/amplify-cli/issues/4826

AWS
SUPPORT ENGINEER
answered a year ago
  • No need to be sorry for anything. But just to be clear, the Amplify way of doing things is: Make changes -> push changes to cloud -> debug errors, typos?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions