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.

질문됨 일 년 전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
지원 엔지니어
답변함 일 년 전
  • 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?

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠