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

查看:101
本文介绍了从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天全站免登陆