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달 전356회 조회
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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠