【Python】Python3でnew.instancemethodが使えないテーブル作成時にエラー
概要
boto3を利用してテーブルを作成する際に以下のエラーが発生したためメモ。
An error occurred (ValidationException) when calling the CreateTable operation: Hash Key not specified in Attribute Definitions. Type unknown.
解決方法
テーブル作成時に与えるKeySchema
とAttributeDefinitions
の値が一致していない場合に発生。
同じ値を指定すればOK。