Amazon dynamodb dynamodb本地,重复密钥

Amazon dynamodb dynamodb本地,重复密钥,amazon-dynamodb,dynamodb-queries,dynamo-local,amazon-dynamodb-index,amazon-dynamodb-local,Amazon Dynamodb,Dynamodb Queries,Dynamo Local,Amazon Dynamodb Index,Amazon Dynamodb Local,我用的是dynamodb本地版。我试图将两个地址分配给一个人,但出现“重复密钥”错误。 我想为一个人添加更多的国家和地址。但每当我尝试为此人添加另一个国家/地区和地址时,都会出现重复的密钥错误 有人能帮我吗?谢谢你的帮助。 请分享更多细节,并分享所有可以以文本形式分享的内容text@NicoHaase更新。请查收 { "AttributeDefinitions": [ { "AttributeName": "Addres

我用的是dynamodb本地版。我试图将两个地址分配给一个人,但出现“重复密钥”错误。 我想为一个人添加更多的国家和地址。但每当我尝试为此人添加另一个国家/地区和地址时,都会出现重复的密钥错误

有人能帮我吗?谢谢你的帮助。


请分享更多细节,并分享所有可以以文本形式分享的内容text@NicoHaase更新。请查收
{
  "AttributeDefinitions": [
    {
      "AttributeName": "AddressID",
      "AttributeType": "S"
    },
    {
      "AttributeName": "CustomerID",
      "AttributeType": "S"
    },
    {
      "AttributeName": "Country",
      "AttributeType": "S"
    }
  ],
  "TableName": "Addresses",
  "KeySchema": [
    {
      "AttributeName": "AddressID",
      "KeyType": "HASH"
    },
    {
      "AttributeName": "CustomerID",
      "KeyType": "RANGE"
    }
  ],
  "TableStatus": "ACTIVE",
  "CreationDateTime": "2021-04-06T09:06:29.622Z",
  "ProvisionedThroughput": {
    "LastIncreaseDateTime": "1970-01-01T00:00:00.000Z",
    "LastDecreaseDateTime": "1970-01-01T00:00:00.000Z",
    "NumberOfDecreasesToday": 0,
    "ReadCapacityUnits": 5,
    "WriteCapacityUnits": 5
  },
  "TableSizeBytes": 732,
  "ItemCount": 6,
  "TableArn": "arn:aws:dynamodb:ddblocal:000000000000:table/Addresses",
  "GlobalSecondaryIndexes": [
    {
      "IndexName": "UserIndex",
      "KeySchema": [
        {
          "AttributeName": "AddressID",
          "KeyType": "HASH"
        },
        {
          "AttributeName": "Country",
          "KeyType": "RANGE"
        }
      ],
      "Projection": {
        "ProjectionType": "ALL"
      },
      "IndexStatus": "ACTIVE",
      "ProvisionedThroughput": {
        "ReadCapacityUnits": 5,
        "WriteCapacityUnits": 5
      },
      "IndexSizeBytes": 732,
      "ItemCount": 6,
      "IndexArn": "arn:aws:dynamodb:ddblocal:000000000000:table/Addresses/index/UserIndex"
    }
  ]
}