Webhook

Amazon EventBridge Broadcaster Setup Guide

Introduction

This comprehensive guide will walk you through the detailed process of configuring and setting up the Amazon EventBridge Broadcaster feature. This feature enables the seamless broadcasting of platform events across various Amazon EventBridge topics.

Steps to Configure Amazon EventBridge Broadcaster

To access the Amazon EventBridge Broadcaster, follow these steps:

  1. Log in to the Fynd Partner Panel.
  2. Navigate to Extensions and select the desired extension.
  3. Click on Webhook under the selected extension.
  4. In the Webhook section, click on Add Configuration.
  5. From the list of broadcaster options, select Amazon EventBridge.
  6. Fill in the following details:
    • Name: Provide a unique name to identify this broadcaster configuration.
    • AWS Access Key: Enter the AWS Access Key ID for the IAM user with the necessary permissions. This key is used to authenticate API requests. This is your AWS account's Access Key ID for programmatic access.
    • AWS Access Secret: Enter the AWS Access Secret Key associated with your Access Key ID. Ensure this is kept confidential as it grants access to your AWS resources. This is the secret key corresponding to your AWS Access Key.
    • AWS Region: Specify the AWS region where the broadcaster events will be handled (e.g., us-east-1, eu-west-1).
  7. Click on Validate. The platform will attempt to establish a connection with Amazon EventBridge using the provided credentials. Upon successful validation, you will receive a confirmation message.
  8. Click on Save to finalize the configuration. A pop-up will appear indicating Validation Successful if the entered details are valid.

Create EventBridge Subscriber API

curl --location 'https://{{host}}/service/platform/webhook/v2.0/company/1/subscriber' \
--header 'Content-Type: application/json' \
--header 'Authorization: {{Bearer Token}}' \
--data-raw '{
    "name": "Event Bridge Subscriber",
    "provider": "event_bridge",
    "association": {
        "company_id": 1,
        "criteria": "ALL",
        "extension_id":"6684c91938568e58638a2b42"
    },
    "custom_headers": {},
    "status": "active",
    "email_id": "praveenraturi@gofynd.com",
    "auth_meta": {},
    "events": [
        {
            "slug": "company/article/update/v1",
            "event_bridge_name":"article_event_bridge",
            "detail_type":"article_event_bridge"
        }
    ]
}'
Congratulations!

You have successfully configured the Amazon EventBridge Broadcaster feature, enabling seamless event broadcasting for effective collaboration with Fynd Commerce.