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
asked 8 months ago340 views
3 Answers
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
answered 8 months ago
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
EXPERT
Uri
answered 8 months ago
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
EXPERT
answered 8 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions