You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying wire up an EventRule as an input/trigger to a Lambda function but the permission to allow Cloudwatch to invoke the Lambda is not being added automatically.
e.g. would expect the following to add the permission automatically but doesn't
Lambda permissions granted when it was added as an event rule target
did not include "SourceArn" as required. This allowed any event rule
to trigger the function, and also did not show as a trigger in the AWS
Lambda console.
Added a integration test to verify.
BREAKING CHANGE
To fix this, we needed to modify `IEventRuleTarget` to pass the ARN of
the rule and a unique ID to the registered target in order to allow it
to specify the Source ARN. This required fixing all existing event rule
targets (which, so far would return a role to be assumed by CWE, so the
source ARN was not required).
Fixes#555
Lambda permissions granted when it was added as an event rule target
did not include "SourceArn" as required. This allowed any event rule
to trigger the function, and also did not show as a trigger in the AWS
Lambda console.
Added a integration test to verify.
BREAKING CHANGE
To fix this, we needed to modify `IEventRuleTarget` to pass the ARN of
the rule and a unique ID to the registered target in order to allow it
to specify the Source ARN. This required fixing all existing event rule
targets (which, so far would return a role to be assumed by CWE, so the
source ARN was not required).
Fixes#555
I think this is also an issue for an Iot CfnTopicRule event trigger
The IoT rule is created but does not trigger the lambda. After clicking "edit" on the IoT rule and saving the "changes", the function policy in Lambda is updated which allows the rule to trigger. I guess it's because there is not IoT event in lambda-event-sources
Trying wire up an EventRule as an input/trigger to a Lambda function but the permission to allow Cloudwatch to invoke the Lambda is not being added automatically.
e.g. would expect the following to add the permission automatically but doesn't
Have to add this code in to get the permission added:
Output from cdk synth shows this:
@eladb suspected in a gitter chat this was because the sourceArn is missing.
The text was updated successfully, but these errors were encountered: