Amazon web services 如何复位生产放大分贝
我目前仍在一个网站的开发阶段,我想彻底清理当前的实时数据库以及刷新以前的模式。因为我对模式进行了太多的更改,所以我不再能够Amazon web services 如何复位生产放大分贝,amazon-web-services,amazon-dynamodb,aws-amplify,Amazon Web Services,Amazon Dynamodb,Aws Amplify,我目前仍在一个网站的开发阶段,我想彻底清理当前的实时数据库以及刷新以前的模式。因为我对模式进行了太多的更改,所以我不再能够放大推送 AWS amplify是否可以实现这一点 Attempting to edit the global secondary index byDivision on the DivisionTable table in the Division stack. An error occurred during the push operation: Attempting
放大推送
AWS amplify是否可以实现这一点
Attempting to edit the global secondary index byDivision on the DivisionTable table in the Division stack.
An error occurred during the push operation: Attempting to edit the global secondary index
按除法堆栈中DivisionTable表上的除法。您只需运行:
amplify api remove
amplify api push
因此,它将删除API(包括DDB)。确保您首先在正确的环境中进行检查
之后,您需要再次使用以下方法添加API:
amplify api add
但是,如果您想从头开始创建一个干净的环境,只需:
amplify env remove <env_name>
amplify init
放大环境删除
放大初始化
它将首先删除环境,然后重新创建它。这需要一段时间,但效果很好
amplify api remove
会删除我认为的本地版本吗?是的,但是如果您推动更改(amplify api push
),那么它将更新AWS中的备份。当然,没有问题:)amplify CLI在开始时有点奇怪,但您会习惯它