1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
1
You should think of the rule with all its targets as a single entity. The idea is that the consumer of the event knows what events it is interested in.
Even if you have different targets that need the same rule, they should create two different rules. The exception is that if the two targets are part of the same sub system and are defined in the same template . In that case you can create a single rule with multiple targets.
So in your case I would create the rule with the SQS queue and the Lambda function in the same template.
Contenus pertinents
- Réponse acceptéedemandé il y a un an
- demandé il y a 7 mois
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 10 mois
- AWS OFFICIELA mis à jour il y a 8 mois
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a 4 mois
Okay that makes sense. I was putting it in the Entry Point because that lambda itself submits to the EventBridge rule... So I had assumed that means that the service itself should create it. It makes it way easier to keep EventBridge and SQS inside of the single Consumer lambda. Thank you for your assistance!