Direkt zum Inhalt

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 Antwort
3
Akzeptierte Antwort

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
EXPERTE
beantwortet vor 2 Jahren
EXPERTE
überprüft vor 2 Jahren
EXPERTE
überprüft vor 2 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.