I go to dynamodb module only to validate (as I had lots of issues finally :-)), there is definitely one AWS related bug in terraform at moment:
hashicorp/terraform#21330
provider "aws" {
region = "${var.region}"
}
local_secondary_index = "${var.dynamodb_table_local_secondary_index[count.index]}"
global_secondary_index = "${var.dynamodb_table_secondary_index[count.index]}"
ttl = "${var.dynamodb_table_ttl[count.index]}"
rror: Unsupported argument
on main.tf line 19, in resource "aws_dynamodb_table" "table":
19: local_secondary_index = "${var.dynamodb_table_local_secondary_index[count.index]}"
An argument named "local_secondary_index" is not expected here. Did you mean
to define a block of type "local_secondary_index"?
Error: Unsupported argument
on main.tf line 20, in resource "aws_dynamodb_table" "table":
20: global_secondary_index = "${var.dynamodb_table_secondary_index[count.index]}"
An argument named "global_secondary_index" is not expected here. Did you mean
to define a block of type "global_secondary_index"?
Error: Unsupported argument
on main.tf line 21, in resource "aws_dynamodb_table" "table":
21: ttl = "${var.dynamodb_table_ttl[count.index]}"