https://github.com/aligent/magento2-eventbridge-notifier
https://github.com/aligent/magento2-eventbridge-notifier
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/aligent/magento2-eventbridge-notifier
- Owner: aligent
- License: gpl-3.0
- Created: 2021-09-28T05:11:24.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-06-23T02:28:02.000Z (about 3 years ago)
- Last Synced: 2025-04-02T23:46:08.516Z (about 1 year ago)
- Language: PHP
- Size: 61.5 KB
- Stars: 2
- Watchers: 15
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Magento 2 Eventbridge Notifier
This repository adds an [aligent/async-events](https://github.com/aligent/magento-async-events) compatible notifier for submitting events to [Amazon EventBridge](https://aws.amazon.com/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.

### Create Subscription
```shell
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"
}
}'
```