0
我一直在嘗試使用下面的JSON(testbootstraptable.json)創建一個發電機db表創建dynamodb表文件:使用AWS CLI「--cli輸入JSON的」
{
"AttributeDefinitions": [
{
"AttributeName": "test1",
"AttributeType": "S"
},
{
"AttributeName": "test2",
"AttributeType": "S"
}
],
"TableName": "BOOTSTRAP_TEST_TBL",
"KeySchema": [
{
"AttributeName": "test1",
"KeyType": "HASH"
},
{
"AttributeName": "test2",
"KeyType": "RANGE"
}
],
"ProvisionedThroughput": {
"NumberOfDecreasesToday": 0,
"ReadCapacityUnits": 35,
"WriteCapacityUnits": 35
}
}
我已經試過多次基於谷歌不同的變化的時間搜索,但不斷收到以下錯誤:
Error parsing parameter 'cli-input-json': Invalid JSON: Expecting value: line 1 column 1 (char 0)
JSON received: testbootstraptable.json
AWS命令:
$ aws dynamodb create-table --cli-input-json testbootstraptable.json --region us-west-2