EventBus
Manages an Event Bridge Event Bus.
Sample code
exports.createResources = () => [
{
type: "EventBus",
group: "CloudWatchEvents",
properties: ({}) => ({
Name: "OrdersEventBus",
}),
},
];
Properties
Used By
Full Examples
- simple example
- serverless-patterns apigw-http-api-eventbridge
- serverless-patterns apigw-rest-api-eventbridge-terraform
- serverless-patterns appsync-eventbridge
- serverless-patterns webhook-site
- serverless-patterns zendesk
- serverless-patterns fargate-eventbridge
- serverless-patterns sfn-eventbridge
List
The event buses can be filtered with the EventBus type:
gc l -t EventBus
Listing resources on 1 provider: aws
✓ aws
✓ Initialising
✓ Listing 1/1
┌─────────────────────────────────────────────────────────────────────────────┐
│ 2 CloudWatchEvents::EventBus from aws │
├─────────────────────────────────────────────────────────────────────────────┤
│ name: bus-test │
│ managedByUs: Yes │
│ live: │
│ Name: bus-test │
│ Arn: arn:aws:events:eu-west-2:840541460064:event-bus/bus-test │
│ Tags: │
│ - Key: gc-created-by-provider │
│ Value: aws │
│ - Key: gc-managed-by │
│ Value: grucloud │
│ - Key: gc-project-name │
│ Value: aws-example-cloudwatchevent │
│ - Key: gc-stage │
│ Value: dev │
│ - Key: Name │
│ Value: bus-test │
│ │
├─────────────────────────────────────────────────────────────────────────────┤
│ name: default │
│ managedByUs: NO │
│ live: │
│ Name: default │
│ Arn: arn:aws:events:eu-west-2:840541460064:event-bus/default │
│ Tags: [] │
│ │
└─────────────────────────────────────────────────────────────────────────────┘
List Summary:
Provider: aws
┌────────────────────────────────────────────────────────────────────────┐
│ aws │
├────────────────────────────────┬───────────────────────────────────────┤
│ CloudWatchEvents::EventBus │ bus-test │
│ │ default │
└────────────────────────────────┴───────────────────────────────────────┘
2 resources, 1 type, 1 provider
Command "gc l -t EventBus" executed in 5s