Skip to content

Commit 7d4c7bd

Browse files
committed
Fix kinesis_target generation
1 parent ed78efe commit 7d4c7bd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

main.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,10 @@ resource "aws_cloudwatch_event_target" "this" {
194194
}
195195

196196
dynamic "kinesis_target" {
197-
for_each = lookup(each.value, "kinesis_target", null) != null ? [true] : []
197+
for_each = lookup(each.value, "partition_key_path", null) != null ? [true] : []
198198

199199
content {
200-
partition_key_path = lookup(kinesis_target.value, "partition_key_path", null)
200+
partition_key_path = each.value.partition_key_path
201201
}
202202
}
203203

@@ -560,10 +560,10 @@ resource "aws_scheduler_schedule" "this" {
560560
}
561561

562562
dynamic "kinesis_parameters" {
563-
for_each = lookup(each.value, "kinesis_parameters", null) != null ? [true] : []
563+
for_each = lookup(each.value, "partition_key", null) != null ? [true] : []
564564

565565
content {
566-
partition_key = kinesis_parameters.value.partition_key
566+
partition_key = each.value.partition_key
567567
}
568568
}
569569

0 commit comments

Comments
 (0)