Hello,
I’m trying to save iot rule capture into a dynamodbv2 as follow :
resource “aws_iot_topic_rule” “topic_rule” {
name = “$some_name”
description = “description”
enabled = true
sql = “query’”
sql_version = “2016-03-23”
dynamodbv2 {
put_item = [
{
table_name = "${var.dynamo_db}"
}
]
role_arn = "${aws_iam_role.roleARN.arn}"
}
}
But I’m getting this error : An argument named “put_item” is not expected here. Did you mean to define a block of type “put_item”?
Does anyone knows why?
Thank’s
2 posts - 2 participants