Skip to content

Commit

Permalink
do not pass the full event to step function
Browse files Browse the repository at this point in the history
  • Loading branch information
ebisbe committed Jul 12, 2024
1 parent ff947e1 commit 33ed590
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/resources/streamPipes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export const streamPipesResource: ServerlessExtended["resources"] = {
},
},

SyncNextPhotoStreamLogRule: {
StreamItemRule: {
Type: "AWS::Events::Rule",
Properties: {
EventBusName: getRef("EventBus"),
Expand All @@ -136,6 +136,16 @@ export const streamPipesResource: ServerlessExtended["resources"] = {
Id: `invoke-${nameHelper(ItemStream)}`,
Arn: getAttribute(idHelper(ItemStream), "Arn"),
RoleArn: getAttribute("TargetStreamIAMrole", "Arn"),
InputTransformer: {
InputPathsMap: {
eventName: "$.detail.eventName",
dynamodb: "$.detail.dynamodb",
},
InputTemplate: JSON.stringify({
eventName: "<eventName>",
dynamodb: "<dynamodb>",
}),
},
},
],
},
Expand Down

0 comments on commit 33ed590

Please sign in to comment.