Step Function -> EventBridge: PutEvents block

0

I have a step function in the us-east-1 region.
I have an event bridge in the eu-west-1 region.

I want to send a custom event to EB from SF. SF's IAM roles are correct.

But I got this error:
arn:aws:events:us-east-1:*:event-bus/my-event-bus-name

How to explicitly set region inside EventBridge: PutEvents block

documentation does not allow to pass region parameter

Bartek
已提問 9 個月前檢視次數 354 次
3 個答案
0

Arn should look like this:

arn:aws:events:us-east-1:<target-account-id>:event-bus/my-event-bus-name

Or you use "*" just as an example of not showing account id?

Additionally, when you're sending a custom event from a Step Functions state machine in one account to an EventBridge event bus in another account, make sure that you have the necessary permissions set up. The account sending the event should have permissions to put events to the target event bus in the other account. Similarly, the target event bus should be configured to allow events from the sender account. This involves setting up cross-account IAM roles and policies to allow the necessary actions.

profile picture
已回答 9 個月前
0

Step Functions does not support sending events to an event bus in a different region. You will either need to invoke a Lambda function in us-east-1 that will send the event to the event bus in eu-west-1, or, probably the better solution, send the event to an event bus in us-east-1, which has a rule to forward the events to an event bus in eu-west-1.

profile pictureAWS
專家
Uri
已回答 9 個月前
0

Hi, you need a bit of additional setup to send event across regions: see this blog post https://aws.amazon.com/blogs/compute/introducing-cross-region-event-routing-with-amazon-eventbridge/

It will provide you with the precise setup that you need to do to route events to another region.

Best

Didier

profile pictureAWS
專家
已回答 9 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南