
Create the simplest EventBridge custom event bus subscriber, then publish a test event to it.
Replace the placeholders with your own ARNs. With no filter, this subscriber receives every event on the bus and delivers the raw payload to the target.
BUS_ARN="<EVENT_BUS_ARN>"
QUEUE_ARN="<TARGET_QUEUE_ARN>"
ROLE_ARN="<DELIVERY_ROLE_ARN>"
aws eventsv2 create-subscriber \
--name "all-events" \
--event-bus-arn "$BUS_ARN" \
--invoke-configuration "$(cat <<EOF
{"TargetArn":"$QUEUE_ARN","RoleArn":"$ROLE_ARN"}
EOF
)"
Send an event to the bus with put-raw-events and confirm it reaches the target.
BUS_ARN="<EVENT_BUS_ARN>"
DATA_B64=$(printf '{"detail":{"orderId":"A-1001","status":"PLACED","total":42}}' | base64)
aws eventsv2 put-raw-events \
--event-bus-arn "$BUS_ARN" \
--entries "$(cat <<EOF
[{"Data":"$DATA_B64","SystemMetadata":{"ContentType":"application/json"}}]
EOF
)"