Memo/AmazonWebServices/awscli/DynamoDB

https://dexlab.net:443/pukiwiki/index.php?Memo/AmazonWebServices/awscli/DynamoDB
 

DynamoDB


テーブル毎のread/writeキャパシティの確認

AWS_PROFILE=default
AWS_REGION=ap-northeast-1
aws --profile $AWS_PROFILE --region $AWS_REGION dynamodb list-tables | jq '.TableNames[]' | xargs -i aws --profile $AWS_PROFILE --region $AWS_REGION dynamodb describe-table --table-name {} --query 'Table.[TableName,ProvisionedThroughput]'
[
    "exampleTable",
    {
        "NumberOfDecreasesToday": 0,
        "WriteCapacityUnits": 5,
        "ReadCapacityUnits": 5
    }
]
...
  • テーブルのスループットだけ表示
AWS_PROFILE=default
AWS_REGION=ap-northeast-1
DYNAMODB_TABLE_NAME=example01
aws --profile $AWS_PROFILE --region $AWS_REGION dynamodb describe-table --table-name $DYNAMODB_TABLE --query \
'Table.{TableName:TableName,ProvisionedThroughput:ProvisionedThroughput.{ReadCapacityUnits:ReadCapacityUnits,WriteCapacityUnits:WriteCapacityUnits},GlobalSecondaryIndexes:GlobalSecondaryIndexes[].{IndexName:IndexName,ProvisionedThroughput:ProvisionedThroughput.{ReadCapacityUnits:ReadCapacityUnits,WriteCapacityUnits:WriteCapacityUnits}}}'

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2018-09-15 (土) 07:31:37 (92d)