Skip to content

Commit 0944368

Browse files
committed
allow use of enrichment lambdas and the creation of the iam policy for invoking the function
1 parent 972e6a1 commit 0944368

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iam_pipes.tf

Lines changed: 1 addition & 1 deletion
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 = {

0 commit comments

Comments
 (0)