File tree Expand file tree Collapse file tree 2 files changed +45
-1
lines changed Expand file tree Collapse file tree 2 files changed +45
-1
lines changed Original file line number Diff line number Diff line change 1- # MageOS Events integration for AWS
1+ # MageOS Async Events AWS
2+
3+ AWS destinations for [ mageos-async-events] ( https://github.com/mage-os/mageos-async-events )
4+
5+ ## Installation
6+
7+ ``` sh
8+ composer require mage-os/mageos-async-events-aws
9+ ```
10+
11+ ## Supported AWS event sinks
12+
13+ * EventBridge: send events to an Amazon EventBridge bus
14+
15+ ### Configure AWS Credentials
16+
17+ An IAM role with the ` events:PutEvents ` action is required so that the notifier can relay events into Amazon
18+ EventBridge.
19+
20+ Under ` Stores -> Services -> Async Events AWS ` set the ` Access Key ID ` and the ` Secret Access Key ` and the ` Region ` . You
21+ can also choose to configure the source of the event.
22+
23+ ![ AWS Config] ( ./docs/config.png )
24+
25+ ### Create a Subscription
26+
27+ The following is an example to create an EventBridge subscription for the ` example.event `
28+ ``` shell
29+ curl --location --request POST ' https://test.mageos.dev/rest/V1/async_event' \
30+ --header ' Authorization: Bearer TOKEN' \
31+ --header ' Content-Type: application/json' \
32+ --data-raw ' {
33+ "asyncEvent": {
34+ "event_name": "example.event",
35+ "recipient_url": "Amazon Event Bridge ARN",
36+ "verification_token": "supersecret",
37+ "metadata": "eventbridge"
38+ }
39+ }'
40+ ```
41+
42+ ## Contributing
43+
44+ This is a repository for distribution only.
45+ Contributions are welcome on the development repository [ mageos-async-events-sink] ( https://github.com/mage-os/mageos-async-events-sinks )
You can’t perform that action at this time.
0 commit comments