You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
It requires to define in main.tf to have:
provider "aws" {
region = "${var.region}"
}
and define default via variables.tf
The real issue here is the reference to complex types:
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]}"
The text was updated successfully, but these errors were encountered:
Not sure what is the precise issue you are having but they may also be related to HCL 0.12 changes. You could either try using Terraform 0.11.x or try doing terraform 0.12upgrade to convert it all to 0.12 HCL. PR welcome ;)
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
It requires to define in main.tf to have:
and define default via variables.tf
The real issue here is the reference to complex types:
I get:
The text was updated successfully, but these errors were encountered: