title: Dynamodb- Adding non key attributes
body: <p>I want to insert data into dynamodb local. However, I have only one key attribute and multiple non-key attributes.  </p>
  
  <pre><code>{
      'id':'99876983ydbhdu3739',
      'category':'Spa',
      'latitude':'33.498',
      'longitude':'32.332',
      'name':'Studio'
  }  
  </code></pre>
  
  <p>I have multiple such values. This is one record, an example of what I want to insert. Following is what I am trying:  </p>
  
  <pre><code>table = dynamodb.create_table(
      TableName='Trial',
      KeySchema=[
          {
              'AttributeName': 'facebook_id',
              'KeyType': 'HASH'  #Sort key
          },
          {
              'AttributeName': 'latitude',
              'KeyType': 'RANGE'  #Sort key
          },
  
      ],
      AttributeDefinitions=[
           {
              'AttributeName':'id',
              'AttributeType':'S'
          },
          {
              'AttributeName': 'category',
              'AttributeType': 'S'
          },
          {
              'AttributeName': 'latitude',
              'AttributeType': 'S'
          },
          {
              'AttributeName': 'longitude',
              'AttributeType': 'S'
          },
          {
              'AttributeName': 'name',
              'AttributeType':'S'
          }
  
      ],
      ProvisionedThroughput={
          'ReadCapacityUnits': 10,
          'WriteCapacityUnits': 10
      }
  )
  </code></pre>
  
  <p>I get the following error:  </p>
  
  <blockquote>
    <p>An error occurred (ValidationException) when calling the CreateTable operation: The number of attributes in key schema must match the number of attributesdefined in attribute definitions.</p>
  </blockquote>