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 réponse
0
Réponse acceptée

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
EXPERT
répondu il y a 6 mois
profile picture
EXPERT
vérifié il y a un mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions