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
posta 9 mesi fa353 visualizzazioni
3 Risposte
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
con risposta 9 mesi fa
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
ESPERTO
Uri
con risposta 9 mesi fa
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
ESPERTO
con risposta 9 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande