作者:丫头2502892725 | 来源:互联网 | 2023-09-16 10:21
I am trying to set attributes as follows:
1
| attribute = "${var.attributes_list}" |
where
1 2 3 4 5
| var attributes_list = [
{
name = "my_attr"
type = "S"
}] |
Getting the following error with Terraform 0.12
1 2 3 4 5 6 7 8 9 10 11 12 13
| on line 0:
(source code not available)
At least 1 "attribute" blocks are required.
Error: Unsupported argument
on main.tf line 21, in resource "aws_dynamodb_table" "aws-dynamodb-table":
21: attribute = "${var.attributes_list}"
An argument named "attribute" is not expected here. Did you mean to define a
block of type "attribute"? |
I tried attribute
1
| { "${var.attributes_list}" } |
but thats just syntactically incorrect.
Is there a way I can pass the attribute list from vars?
该提问来源于开源项目:hashicorp/terraform-provider-aws
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!