aligent/magento2-eventbridge-notifier

An Amazon EventBridge notifier backed by the aligent/async-events module.

Installs: 1 222

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 16

Forks: 1

Open Issues: 1

Type:magento2-module

v1.0.7 2023-06-20 07:26 UTC

This package is auto-updated.

Last update: 2024-12-23 05:58:32 UTC


README

This repository adds an aligent/async-events compatible notifier for submitting events to Amazon EventBridge.

Getting Started

Configure AWS Credentials

An IAM role with the events:PutEvents action is required so that the notifier can relay events into Amazon EventBridge.

Under Stores -> Services -> Amazon EventBridge set the Access Key ID and the Secret Access Key and the Region. You can configure the source of the event and the event bus if necessary.

AWS Config

Create Subscription

curl --location --request POST 'https://m2.dev.aligent.consulting:44356/rest/V1/async_event' \
--header 'Authorization: Bearer TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
    "asyncEvent": {
        "event_name": "example.event",
        "recipient_url": "Amazon Event Bridge ARN",
        "verification_token": "supersecret",
        "metadata": "event_bridge"
    }
}'