signalfx / cloudwatch-event-forwarder

Sample code for the lambda which can be used to forward Cloudwatch events to SignalFx
0 stars 2 forks source link

Potential infinite loop scenario #6

Open chaitanyagummadi opened 4 months ago

chaitanyagummadi commented 4 months ago

https://github.com/signalfx/cloudwatch-event-forwarder/blob/master/README.md#step-2-fill-out-the-application-parameters

The statement [Enter for all CloudWatch Events] can lead to infinite loop when the data events are turned on CloudTrail. This creates an infinite loop when is used in input.

Scenario: When an event triggers the rule, EventBridge rule invokes Lambda. Now a data event for the previous Lambda invocation is sent from CloudTrail service which again invokes the same lambda causing a loop.

CloudTrail ( Lambda data events)>EventBridge>Lambda > CloudTrail >EventBridge>Lambda....

Can we add a warning statement about this scenario?

penglerts commented 3 months ago

issue has been addressed. We have added note in readme as well as discontinued usage of wildcard as a parameter