'EventBridge rule for Pull Request that sends an SNS notification

Below is my Eventbridge rule, for whenever there is a pull request, there should be a SNS notification email to notify user.

I have set up a SNS topic that should get triggered whenever the PR is created. However it is not working.

SNS topic is default and it is added to Tagets section for EventBridge Rule and Cloud Trail is enabled.

  "source": ["aws.codecommit"],
  "detail-type": ["AWS API Call via CloudTrail"],
  "detail": {
    "eventSource": ["codecommit.amazonaws.com"],
    "eventName": ["GetPullRequest"]
  }
}```



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source