Get Connect Customer profile updates via Event Bridge

0

I am creating a lambda that can get notified when there was an update on the connect customer profile.

I tried to create a event bridge to get the api call which I was checking on the cloud trail but the event bridge is not triggering, not quite sure if there was wrong on the event pattern I did.

Here is the pattern

{
  "source": ["aws.profile"],
  "detail-type": ["Amazon Connect Contact Event"],
  "detail": {
    "eventSource": ["profile.amazonaws.com"],
    "eventName": ["UpdateProfile"]
  }
}

Also here is the event I get on the cloud trail

 "eventSource": "profile.amazonaws.com",
    "eventName": "UpdateProfile",
    "awsRegion": "ap-southeast-2",
    "sourceIPAddress": "connect.amazonaws.com",
    "userAgent": "connect.amazonaws.com",
1 Answer
3
Accepted Answer

issue you're facing might be related to the event pattern in your EventBridge rule. Here's how to troubleshoot and fix it: ** Verify Event Source**

  • While your CloudTrail event shows "eventSource": "profile.amazonaws.com", the event pattern you provided uses "source": ["aws.profile"]. Try changing it to "source": ["profile.amazonaws.com"] to match the actual source.

  • The "detail-type": ["Amazon Connect Contact Event"] in your pattern might be unnecessary. Connect customer profile updates might not have a specific detail-type. Try removing it and see if the rule triggers.

{
  "source": ["profile.amazonaws.com"],
  "detail": {
    "eventSource": ["profile.amazonaws.com"],
    "eventName": ["UpdateProfile"]
  }
}

For more follow the links

  1. Troubleshoot a Lambda function trigger failure by an EventBridge rule: https://repost.aws/knowledge-center/eventbridge-lambda-not-triggered
  2. Get Connect Customer profile updates via Event Bridge: https://stackoverflow.com/questions/73692725/sending-event-from-an-application-to-eventbridge
profile picture
EXPERT
Sandeep
answered 2 months ago
profile picture
EXPERT
reviewed 2 months ago
EXPERT
reviewed 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions