title: How to export an existing dynamo table schema to json?
body: <p>I'd like to replicate some dynamodb tables, schema only, into my local environment for testing purposes. First I've tried:</p>
  
  <p><code>aws dynamodb describe-table --table-name Foo &gt; FooTable.json</code></p>
  
  <p>But it's obvious that the output schema is not compliant to the input schema from the <code>create-table</code> command:</p>
  
  <p><code>aws dynamodb create-table --cli-input-json file://FooTable.json --endpoint=http://localhost:8000</code></p>
  
  <p>What I'm trying to avoid is to generate dozens of skeletons with <code>aws dynamodb create-table --generate-cli-skeleton</code> and fill them manually :/</p>
  
  <p>Is there a way to get the table schema in a format that is "useful" for recreation? I find it unbelievable that there are no straightforward way of doing it through the web graphic interface or the standard aws command line - after hearing how "good" was their service.</p>