import json
import boto3
def lambda_handler(event, context):
order = {
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Example event wrapped in EventBridge Envelope: | |
{ | |
"id": "6a7e8feb-b491-4cf7-a9f1-bf3703467718", | |
"detail-type": "My Test Event", | |
"source": "my.event", | |
"account": "111122223333", | |
"time": "2017-12-22T18:43:48Z", | |
"region": "us-west-1", | |
"detail": { | |
"eventID": "025f12bc455900835ed7abfc08ecf9be", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AWSTemplateFormatVersion: '2010-09-09' | |
Description: > | |
S3 Event Notifications to EventBridge | |
Resources: | |
EventBucket: | |
Type: AWS::S3::Bucket | |
Properties: | |
NotificationConfiguration: | |
# New configuration to enable EventBridge for S3 Event Notifications |
I hereby claim:
- I am nickste on github.
- I am nickste (https://keybase.io/nickste) on keybase.
- I have a public key ASBgDtWc4GUUViphV7MYNWtDJCLSMRPrDJYsb5Kni14vtwo
To claim this, I am signing this object:
This cheat sheet was created as a reference for some of the code and commands used in the Amazon EventBridge Deep Dive webinar.
aws events test-event-pattern --event-pattern "{\"source\": [\"Order Service\"],\"detail-type\":[\"New Order\"]}" --event '{"id": "e00c66cb-fe7a-4fcc-81ad-58eb60f5d96b", "detail-type": "New Order", "source": "Order Service", "account": "123456789012", "time": "2016-01-10T01:29:23Z", "region": "us-east-1", "detail": "{\"orderNumber\": \"123456\",\"productId\": \"shoe_007\",\"price\": 130,\"customer\": {\"name\": \"Nick Smit\",\"customerId\": \"987654321\",\"address\": \"2121 7th Ave, Seattle, WA 98121\"}}\",\"EventBusName\": \"orders\"}"}' --profile webinar