内容へ移動
Cat Paw Software
ユーザ用ツール
ログイン
サイト用ツール
検索
ツール
文書の表示
以前のリビジョン
バックリンク
最近の変更
メディアマネージャー
サイトマップ
ログイン
>
最近の変更
メディアマネージャー
サイトマップ
トレース:
•
docker-compose
aws:dynamodb
この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。
<markdown> # dynamoDB ## DynamoDB-localのインストール https://docs.aws.amazon.com/ja_jp/amazondynamodb/latest/developerguide/DynamoDBLocal.html ## コマンド テーブル一覧 ``` aws dynamodb list-tables --endpoint-url http://localhost:8000 ``` テーブル作成 ``` aws dynamodb create-table --endpoint-url http://localhost:8000 --cli-input-json ./table_def.json ``` テーブル定義JSONの例 ``` { "AttributeDefinitions": [ {"AttributeName": "user_id","AttributeType": "S"}, {"AttributeName": "token","AttributeType": "S"}, {"AttributeName": "timestamp","AttributeType": "S"} ], "TableName": "user_token", "KeySchema": [ {"AttributeName": "user_id","KeyType": "HASH"}, {"AttributeName": "timestamp","KeyType": "RANGE"} ], "GlobalSecondaryIndexes": [{ "IndexName": "token_timestamp_index","KeySchema": [ {"AttributeName": "token","KeyType": "HASH"}, {"AttributeName": "timestamp","KeyType": "RANGE"} ], "Projection": {"ProjectionType": "ALL"}, "ProvisionedThroughput": {"ReadCapacityUnits": 1,"WriteCapacityUnits": 1} }], "ProvisionedThroughput": {"ReadCapacityUnits": 1,"WriteCapacityUnits": 1}} ``` </markdown>
aws/dynamodb.txt
· 最終更新:
2018/04/19 02:15
by
nullpon
ページ用ツール
文書の表示
以前のリビジョン
バックリンク
文書の先頭へ