Sah*_*sha 5 amazon-web-services aws-lambda aws-amplify
我在我的 AWS Amplify 项目中添加了 S3 lambda 触发器。但是,当我尝试使用 删除该 lambda 触发器时amplify remove function,它显示以下错误。
Resource cannot be removed because it has a dependency on another resource
Dependency: S3 - s3xxxxxxxx
An error occurred when removing the resources from the local directory
Run Code Online (Sandbox Code Playgroud)
AWS Amplify 文档没有删除 lambda 函数的明确指南。那么,如何在不删除S3资源的情况下删除该功能呢?
amplify update storage。然后选择您之前配置的选项。当 Amplify CLI 提示选择选项时,选择Remove the Trigger。然后运行amplify push将本地更改与云端同步。
现在,如果我们amplify remove function再次运行,并选择 S3 触发功能。它将执行而不会出现错误。请记住amplify push最后再执行一次同步并删除该功能。
| 归档时间: |
|
| 查看次数: |
3877 次 |
| 最近记录: |