Skip to content

EventBridge

The eventbridge.put_events action allows you to ingest events into an EventBridge event bus.

Set kind = "eventbridge.put_events" in your TOML file.

FieldTypeDescription
bus_namestringName or ARN of the event bus (default: default).
sourcestringIdentify the service/app sending the event.
detail_typestringFree-form string identifying the type of event.
resourceslistAWS ARNs involved in the event.
trace_headerstringX-Ray trace header.
version = "1.0"
kind = "eventbridge.put_events"
[eventbridge]
bus_name = "my-custom-bus"
source = "com.mycompany.app"
detail_type = "OrderPlaced"
resources = ["arn:aws:ec2:us-east-1:123:instance/i-12345"]
[payload]
data = """
{
"order_id": "12345",
"amount": 99.99,
"currency": "USD"
}
"""

The action returns the EventId for each submitted event, or an error code if submission failed.