aligent / magento2-eventbridge-notifier
由 aligent/async-events 模块支持的 Amazon EventBridge 通知器。
v1.0.7
2023-06-20 07:26 UTC
Requires
- php: >=7.0
- aws/aws-sdk-php: ^3.110
- magento/framework: *
Requires (Dev)
README
此存储库添加了一个与 aligent/async-events 兼容的通知器,用于向 Amazon EventBridge 提交事件。
入门
配置 AWS 凭据
需要一个具有 events:PutEvents
操作权限的 IAM 角色,以便通知器可以将事件中继到 Amazon EventBridge。
在 商店 -> 服务 -> Amazon EventBridge
下设置 访问密钥 ID
、秘密访问密钥
和 区域
。如果需要,您可以配置事件的来源和事件总线。
创建订阅
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" } }'