承接 mage-os/mageos-async-events-aws 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mage-os/mageos-async-events-aws

最新稳定版本:v4.0.2

Composer 安装命令:

composer require mage-os/mageos-async-events-aws

包简介

AWS event sinks for mage-os/mageos-async-events

README 文档

README

AWS event sinks for mageos-async-events

Installation

composer require mage-os/mageos-async-events-aws

AWS event sinks

Amazon EventBridge

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 -> Async Events AWS set the Access Key and the Secret Access Key and the Region. You can also choose to configure the source of the event.

AWS Config

Create an EventBridge Subscription

The following is an example to create an EventBridge subscription for the example.event

curl --location --request POST 'https://test.mageos.dev/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": "eventbridge"
    }
}'

Amazon Simple Queue Service

Configure AWS Credentials

An IAM role with the sqs:SendMessage action is required so that the notifier can relay events into Amazon SQS.

Under Stores -> Services -> Async Events AWS set the Access Key and the Secret Access Key and the Region.

Note

The maximum message size for SQS is 262,144 bytes (256 KiB)

Create an SQS Subscription

curl --location --request POST 'https://test.mageos.dev/rest/V1/async_event' \
--header 'Authorization: Bearer TOKEN' \
--header 'Content-Type: application/json' \
--data-raw '{
    "asyncEvent": {
        "event_name": "example.event",
        "recipient_url": "Amazon SQS queue URL",
        "verification_token": "supersecret",
        "metadata": "sqs"
    }
}'

Contributing

This is a repository for distribution only. Contributions are welcome on the development repository mageos-async-events-sinks

统计信息

  • 总下载量: 4.55k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 7
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-06-18