Skip to content

Commit

Permalink
feat: Add input_template in target_parameters for pipes (#102)
Browse files Browse the repository at this point in the history
Co-authored-by: Anton Babenko <[email protected]>
  • Loading branch information
RicardoLinck and antonbabenko authored Jan 12, 2024
1 parent a08f70f commit 9406fcb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/with-pipes/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ module "eventbridge" {
}
}

target_parameters = {
input_template = "{\"data\":<$.dynamodb>}"
}

tags = {
Pipe = "dynamodb_stream_source_sqs_target"
}
Expand Down
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,7 @@ resource "aws_pipes_pipe" "this" {
for_each = try([each.value.target_parameters], [])

content {
input_template = try(target_parameters.value.input_template, null)
dynamic "sqs_queue_parameters" {
for_each = try([target_parameters.value.sqs_queue_parameters], [])

Expand Down

0 comments on commit 9406fcb

Please sign in to comment.