Unable to create AWS Event Bridge Webhook

Highlighted
Shopify Partner
4 0 1

Hi,

I am unable to create an AWS Event Bridge webhook.  See the screenshot below for the error:

Screen Shot 2020-10-31 at 9.54.24 AM.png

 

I am able to register this webhook via REST API (followed the tutorial at https://shopify.dev/tutorials/manage-webhook-events-with-eventbridge).   However no events are received.   This is in a development webstore if that matters.   

Any ideas?

0 Likes
Highlighted
Shopify Staff
Shopify Staff
17 1 2

Hi @sumit_b,

It looks like you're trying to create an EventBridge webhook through the shop admin console. We don't support doing that. You'll need to call the API to create these types of webhook subscriptions. Please take a look at the section  Create webhook subscriptions for EventBridge within that tutorial for both GraphQL and Rest examples.

 

Cheers,

Mike

0 Likes
Highlighted
Shopify Partner
4 0 1

Hi @mikedasilva,

I figured out that EventBridge webhook is not supported via the admin console.   Afterwards I created a webhook using REST API.   However the problem is that I don't see any events being delivered to the EventBridge.  Here is the registered webhook:

"id" => 777522053156,
"address" => "arn:aws:events:us-east-2::event-source/aws.partner/shopify.com/2483979/stockify",
"topic" => "products/update",
"created_at" => "2020-10-31T08:23:23-04:00",
"updated_at" => "2020-10-31T08:23:23-04:00",
"format" => "json",
"fields" => [],
"metafield_namespaces" => [],
"api_version" => "2020-10",
"private_metafield_namespaces" => []

 

When I make changes to a product,  I don't see anything in AWS EventBridge.   If I register a regular HTTP webhook,  I do receive the event.

Any help would be appreciated.

 

0 Likes
Highlighted
Shopify Staff
Shopify Staff
17 1 2

Hi @sumit_b,

I see that these are indeed being sent successfully so if you're still not seeing them in EventBridge, it might be due to a rule configuration that you have that might be filtering these out. It's hard to say as there are many ways to configure consuming from EventBridge. The easiest way to ensure events are available for consumption is to set it up so that they get logged to CloudWatch.

Cheers,

Mike

0 Likes
Highlighted
Shopify Partner
4 0 1

Thanks for checking.   

It turns out the problem was in the EventBridge rule with an SQS queue as target.   It only works if the target is a standard queue.   If you use a FIFO queue, then "content-based deduplication" must be enabled,  otherwise the message won't be delivered.