首页 > 解决方案 > 使用 aws cli 将 json 数据上传到本地 dynamo db

问题描述

这个问题是这个问题的延续。 使用 json 文件在本地主机中创建 dynamo db 表

上述问题中提到的脚本创建了一个包含 JSON 的数据文件夹,现在我想将其上传到本地发电机数据库我该怎么做?

json是这样的。

    {
      "Items": [
        {
          "terms": {
            "S": "true"
          },
          "ccode": {
            "S": "91"
          },
          "userid": {
            "S": "call1test@gmail.com"
          },
          "pgrad": {
            "S": "CA"
          },
          "experience": {
            "N": "10"
          },
          "lname": {
            "S": "test"
          },
          "phone": {
            "S": "9945134254"
          },
          "location": {
            "S": "bangalore"
          },
          "fname": {
            "S": "test"
          },
          "grad": {
            "S": "Not Pursuing Graduation"
          }
        }
    ]
}

标签: javascriptjsonnode.jsamazon-web-servicesamazon-dynamodb

解决方案


推荐阅读