Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

Commit

Permalink
feat(lambda_trigger): support sns sqs trigger (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
ranrib authored Jun 21, 2020
1 parent d8848b9 commit 4e52a12
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions epsagon/lambda_trigger.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@ func triggerSQSEvent(rawEvent interface{}, metadataOnly bool) *protocol.Event {

if !metadataOnly {
triggerEvent.Resource.Metadata["Message Body"] = event.Records[0].Body
if strings.Contains(event.Records[0].Body, "TopicArn") {
triggerEvent.Resource.Metadata["SNS Trigger"] = event.Records[0].Body
}
}

return triggerEvent
Expand Down

0 comments on commit 4e52a12

Please sign in to comment.