diff --git a/lib/ex_aws/dynamo/client.ex b/lib/ex_aws/dynamo/client.ex index e1fc5b8d..9b01d5d2 100644 --- a/lib/ex_aws/dynamo/client.ex +++ b/lib/ex_aws/dynamo/client.ex @@ -185,8 +185,15 @@ defmodule ExAws.Dynamo.Client do index_name: "my-global-index", key_schema: [%{ attribute_name: "email", - attribute_type: "string", - }] + attribute_type: "HASH", + }], + provisioned_throughput: %{ + read_capacity_units: 1, + write_capacity_units: 1, + }, + projection: %{ + projection_type: "KEYS_ONLY", + } }] create_table("TestUsers", [id: :hash], %{id: :string}, 1, 1, secondary_index, []) diff --git a/mix.exs b/mix.exs index 4899ab20..3f079d8c 100644 --- a/mix.exs +++ b/mix.exs @@ -3,7 +3,7 @@ defmodule ExAws.Mixfile do def project do [app: :ex_aws, - version: "0.4.5", + version: "0.4.6", elixir: "~> 1.0", description: "AWS client. Currently supports Dynamo, Kinesis, Lambda, S3", name: "ExAws",