- 新しい順
- 投票が多い順
- コメントが多い順
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:
関連するコンテンツ
- AWS公式更新しました 2年前
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?