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 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容