Quantcast
Channel: Terraform - HashiCorp Discuss
Viewing all articles
Browse latest Browse all 11363

Create terraform Iot rule and save into dynamodbv2

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 11363

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>