1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
I found a way to do solve my (EventBridge) problem using AWS Batch's parameters
option for jobs.
This is a way to write an EventBridge rule that matches a specific parameter set for filtering purposes
{
"source": ["aws.batch"],
"detail-type": ["Batch Job State Change"],
"detail": {
"parameters": {
"match_me_exactly": ["only-this-should-match"]
}
}
}
This will filter down to job state events that come from a job submitted like so
batch_client.submit_job(
# other stuff here ...
parameters={"match_me_exactly": "only-this-should-match"}
)
Other types of content matching can be figured out from EventBridge's docs https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-patterns-content-based-filtering.html#eb-filtering-complex-example
répondu il y a 2 ans
Contenus pertinents
- demandé il y a un an
- demandé il y a un mois
- demandé il y a un an
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 7 mois
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans