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.

質問済み 1年前323ビュー
1回答
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
サポートエンジニア
回答済み 1年前
  • 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?

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ