Skip to content

Instantly share code, notes, and snippets.

@d-baranowski
Created December 11, 2019 09:49
Show Gist options
  • Save d-baranowski/cc1afd37db876167fe754e0135fe2463 to your computer and use it in GitHub Desktop.
Save d-baranowski/cc1afd37db876167fe754e0135fe2463 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