Skip to content

Commit d566fbc

Browse files
authored
Merge pull request #1 from soisyourface/lambda-fix-plus-another
Lambda fix plus another
2 parents fddf6ad + 6e415a5 commit d566fbc

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

examples/with-pipes/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ module "eventbridge" {
187187
}
188188
}
189189

190-
# With Kinesis Stream source and Kinesis Straem target
190+
# With Kinesis Stream source and Kinesis Stream target
191191
kinesis_source_kinesis_target = {
192192
source = aws_kinesis_stream.source.arn
193193
target = aws_kinesis_stream.target.arn

iam_pipes.tf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ locals {
2929

3030
# Enrichment / Target
3131
lambda = {
32-
values = [v.target, try(aws_cloudwatch_event_api_destination.this[v.enrichment].arn, null)],
32+
values = [v.target, try(v.enrichment, null), try(aws_cloudwatch_event_api_destination.this[v.enrichment].arn, null)],
3333
matching_services = ["lambda"]
3434
},
3535
step_functions = {
@@ -191,7 +191,8 @@ locals {
191191

192192
kinesis_target = {
193193
actions = [
194-
"kinesis:PutRecord"
194+
"kinesis:PutRecord",
195+
"kinesis:PutRecords"
195196
]
196197
}
197198

0 commit comments

Comments
 (0)