从 json 创建 DynamoDB 表 [英] Create a DynamoDB table from json

查看:18
本文介绍了从 json 创建 DynamoDB 表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以从表定义 json 本身创建一个 dynamodb 表?我查看了 aws cli 工具,但找不到任何方法.只是想知道这是否可能.

I was wondering if its possible to create a dynamodb table from the table definition json itself? I've looked into the aws cli tool and I couldnt find any way of doing this. Just wondering if it's possible.

aws dynamodb create-table file://tabledenifision.json

谢谢!

推荐答案

我今天找到了你未回答的问题,一直在寻找直到找到答案.对你来说可能为时已晚,但可能会帮助其他人.

I found your unanswered question today, and kept looking until I found an answer. Probably too late for you but may help others.

aws dynamodb create-table --cli-input-json file://tabledefinition.json

此命令需要文件中的 json 对象,格式由以下命令概述:

This command expects a json object in the file in the format outlined by the following command:

aws dynamodb create-table --generate-cli-skeleton

这种方法似乎适用于许多 aws 命令.

This approach seems to work with many aws commands.

这篇关于从 json 创建 DynamoDB 表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆