
Publish an Avro event to an Amazon EventBridge custom event bus, decoded against an AWS Glue Schema Registry, and deliver it as JSON to AWS Lambda.
PutRawEvents together with an AWS Glue Schema Registry, and then deliver that same event to an AWS Lambda subscriber.OrderPlaced event against an Avro schema and wraps it in the AWS Glue wire format. Amazon EventBridge decodes the Avro against the AWS Glue registry server-side and delivers the payload as plain JSON, so the consumer AWS Lambda function needs no Avro library and simply logs the event to Amazon CloudWatch. A matching orderId, fields, and metadata prove the delivered event equals the one that was published.git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/eventbridge-custom-avro/python/samsam buildsam deploy --guided --capabilities CAPABILITY_NAMED_IAMpython3 -m venv .venv && ./.venv/bin/pip install -r publisher/requirements.txtOrderPlaced event: scripts/run_publish.sh <stack-name> <region>aws logs tail /aws/lambda/avro-orders-consumer --since 5m --format shortsam delete.aws cloudformation list-stacks --query "StackSummaries[?contains(StackName,'STACK_NAME')].StackStatus"