Skip to content

Instantly share code, notes, and snippets.

@d-baranowski
Created December 20, 2019 11:45
Show Gist options
  • Save d-baranowski/b18f5b537d96bfc66dd030279cdeefa0 to your computer and use it in GitHub Desktop.
Save d-baranowski/b18f5b537d96bfc66dd030279cdeefa0 to your computer and use it in GitHub Desktop.
aws dynamodb describe-table --table-name chess_lobby | jq '.Table' | jq 'del(.TableArn)' | jq 'del(.TableSizeBytes)' | jq 'del(.TableStatus)' | jq 'del(.TableId)' | jq 'del(.ItemCount)' | jq 'del(.CreationDateTime)' | jq 'del(.GlobalSecondaryIndexes[].IndexSizeBytes)' | jq 'del(.ProvisionedThroughput.NumberOfDecreasesToday)' | jq 'del(.GlobalSecondaryIndexes[].IndexStatus)' | jq 'del(.GlobalSecondaryIndexes[].IndexArn)' | jq 'del(.GlobalSecondaryIndexes[].ItemCount)' | jq 'del(.GlobalSecondaryIndexes[].ProvisionedThroughput.NumberOfDecreasesToday)' > chess_lobby.json
aws dynamodb create-table --cli-input-json file://chess_lobby.json --endpoint-url http://localhost:8000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment