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 Resposta
0
Resposta aceita

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
ESPECIALISTA
respondido há 6 meses
profile picture
ESPECIALISTA
avaliado há um mês

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas