EventBridge
Definition
Amazon EventBridge is a serverless event bus service that allows applications to communicate using events. It enables the integration of AWS services, third-party SaaS applications, and custom applications by routing events from sources to targets. EventBridge simplifies event-driven architectures by providing a centralized hub for event ingestion and processing, supporting both predefined and custom event patterns.
Secure Settings Example
{
"Name": "SecureEventBus",
"EventSource": "aws.partner/secure-source",
"RoleArn": "arn:aws:iam::123456789012:role/EventBridgeExecutionRole",
"EventPattern": {
"source": ["aws.ec2"],
"detail-type": ["EC2 Instance State-change Notification"],
"detail": {
"state": ["running"]
}
},
"Targets": [
{
"Id": "TargetFunction",
"Arn": "arn:aws:lambda:us-east-1:123456789012:function:SecureFunction",
"InputTransformer": {
"InputPathsMap": {
"instance": "$.detail.instance-id"
},
"InputTemplate": "{\"instance_id\": <instance>}"
}
}
]
}
Insecure Settings Example
{
"Name": "InsecureEventBus",
"EventSource": "*",
"RoleArn": "arn:aws:iam::123456789012:role/OverprivilegedRole",
"EventPattern": {
"source": ["*"],
"detail-type": ["*"]
},
"Targets": [
{
"Id": "TargetFunction",
"Arn": "arn:aws:lambda:us-east-1:123456789012:function:InsecureFunction"
}
]
}