title: AWS DynamoDB - Load data with Boto3 using JSON file as input
body: <p>I have multiple tables in <strong>Amazon DynamoDB</strong>, <strong>JSON Data</strong> is currently uploaded into the tables using the <code>batch-write-item</code> command that is available as part of <strong>AWS CLI</strong> - this works well.</p>
  
  <p>However I would like to use just <strong>Python + Boto3</strong> but have <strong>not</strong> been able to execute the <strong>Boto</strong> <code>BatchWriteItem</code> request with an external data file as input. I envision if there is a Boto3 script it would look like this shown below, but I have not been able to find documentation/examples for it.</p>
  
  <p><strong>Example (Pseudo Code)</strong></p>
  
  <pre><code>table = dynamodb.Table(‘my_table’)
  table.BatchWriteItem(RequestItems=file://MyData.json)
  </code></pre>
  
  <p>Reference: <a href="http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_BatchWriteItem.html" rel="nofollow">http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_BatchWriteItem.html</a></p>
  
  <p>Pointers appreciated.</p>