Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services AWS:在一次更新中不能执行多个GSI创建或删除_Amazon Web Services_Serverless_Aws Serverless_Aws Dynamodb - Fatal编程技术网

Amazon web services AWS:在一次更新中不能执行多个GSI创建或删除

Amazon web services AWS:在一次更新中不能执行多个GSI创建或删除,amazon-web-services,serverless,aws-serverless,aws-dynamodb,Amazon Web Services,Serverless,Aws Serverless,Aws Dynamodb,所以我在无服务器部署期间遇到了这个问题: ServerlessError: An error occurred: MyDdbTable - Cannot perform more than one GSI creation or deletion in a single update. 我的DDB表配置如下: serverless.yml中的配置 其他信息: ServerlessError: An error occurred: MyDdbTable - Cannot perform more

所以我在无服务器部署期间遇到了这个问题:

ServerlessError: An error occurred: MyDdbTable - Cannot perform more than one GSI creation or deletion in a single update.
我的DDB表配置如下: serverless.yml中的配置

其他信息:

ServerlessError: An error occurred: MyDdbTable - Cannot perform more than one GSI creation or deletion in a single update.
  • 一(1)个索引已经存在,它是
    gsi帐户id
    ,其中有两(2)个键模式,
    accountId
    code
  • 我增加了两(2)个额外的索引,它们是
    externalId
    code
目标:

ServerlessError: An error occurred: MyDdbTable - Cannot perform more than one GSI creation or deletion in a single update.
我的目标是添加这两(2)个额外的索引(
externalId
code
),但在进行无服务器部署时,我总是遇到上述问题

问题:

ServerlessError: An error occurred: MyDdbTable - Cannot perform more than one GSI creation or deletion in a single update.
  • 我遇到这个问题是因为代码已经存在于first的keySchema(gsi帐户id)中吗
  • 如果#1不是答案,你对我为什么会遇到这个问题有什么想法/建议吗
  • 谢谢你在这件事上帮助我的人。❤️

    根据文档

    每个UpdateTable操作只能创建一个全局辅助索引

    您需要添加一个GSI,部署该更改,然后添加第二个并部署它。

    请参见文档

    每个UpdateTable操作只能创建一个全局辅助索引


    您需要添加一个GSI,部署该更改,然后添加第二个并部署它。

    添加GSI,部署,重复。感谢您的回复。我可以知道你添加GSI是什么意思吗?因为现在,我遇到的是
    无法在一次更新中执行多个GSI创建或删除。
    。您的表当前有一个索引(GSI)。您需要3个索引。一次不能添加多个索引。因此,将索引#2添加到模板中,并部署它。然后对剩余的索引#3.ooohh执行相同的操作。我现在明白了。非常感谢。现在让我来试试,我会告诉你们的。谢谢你的帮助@jarmod建议有效!非常感谢你的帮助。添加GSI,部署,重复。感谢您的回复。我可以知道你添加GSI是什么意思吗?因为现在,我遇到的是
    无法在一次更新中执行多个GSI创建或删除。
    。您的表当前有一个索引(GSI)。您需要3个索引。一次不能添加多个索引。因此,将索引#2添加到模板中,并部署它。然后对剩余的索引#3.ooohh执行相同的操作。我现在明白了。非常感谢。现在让我来试试,我会告诉你们的。谢谢你的帮助@jarmod建议有效!非常感谢你的帮助。