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.

gefragt vor einem Jahr323 Aufrufe
1 Antwort
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-TECHNIKER
beantwortet vor einem Jahr
  • 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?

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen