From 3cbaed97344a617c55b2123e1829b7c0021c3df1 Mon Sep 17 00:00:00 2001 From: Ian Auld Date: Wed, 13 Jan 2016 15:27:02 -0800 Subject: [PATCH] Added support for local senondary indexes in DynamoDB2 --- moto/dynamodb2/responses.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/moto/dynamodb2/responses.py b/moto/dynamodb2/responses.py index 2be0dda8f..dbf9191ea 100644 --- a/moto/dynamodb2/responses.py +++ b/moto/dynamodb2/responses.py @@ -100,12 +100,14 @@ class DynamoHandler(BaseResponse): attr = body["AttributeDefinitions"] # getting the indexes global_indexes = body.get("GlobalSecondaryIndexes", []) + local_secondary_indexes = body.get("LocalSecondaryIndexes", []) table = dynamodb_backend2.create_table(table_name, schema=key_schema, throughput=throughput, attr=attr, - global_indexes=global_indexes) + global_indexes=global_indexes, + indexes=local_secondary_indexes) if table is not None: return dynamo_json_dump(table.describe) else: