Cross region lambda setup

0

I am trying to setup a lambda in one region that will get ec2 running events from a few different regions (all regions are in the same account).

I tried 2 different ways. I found that in Event Bridge in us-west-2 I was able to create a rule for the ec2 running event and tell it to send the event to the default event bus in us-east-1 (where my lambda is). So I tried this and looked at the logs but I see no logs nor am I seeing the lambda run.

Then I tried to create a SNS topic in us-west-2 for this. I pointed the Event Bridge rule to the SNS topic and added the SNS topic to the lambda in us-east-1. Again I am not seeing any logs for this nor am I seeing that the lambda ran.

Are there any good tutorials on how to set this up?

1 個回答
0
已接受的答案

Hello.

Why not try issuing a test message on SNS first?
If Lambda is not running after issuing this test message, the access policy may not have been set properly on the Lambda side.
If Lambda is running with a test message, please check whether the access policy that allows access from EventBridge is set on the SNS side.
https://docs.aws.amazon.com/sns/latest/dg/sns-publishing.html

profile picture
專家
已回答 6 個月前
profile picture
專家
已審閱 1 個月前

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

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

回答問題指南