A package for building EventBridge/CloudWatch Events patterns
Last updated 2 months ago by mhlabs .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @mhlabs/evb-cli 
SYNC missed versions from official npm registry.


Pattern generator for CloudWatch Events / EventBridge


Unless using AWS Single Sign-On, make sure you have your AWS_REGION environment variable set. Alternatively set AWS_SDK_LOAD_CONFIG to a truthy value.

npm install -g @mhlabs/evb-cli


To generate an EventBridge pattern:

evb pattern - Will prompt you with a wizard that helps you build pattern for event matching. This is using EventBridge's schema registry (currently in preview) to let you navigate the schema you want to react on.

evb pattern --format <yaml|json> - Output format. Default is json

For AWS events, such as aws.codepipeline it's already enabled, but for custom events you will have to enable it in the AWS Management Console.


To generate an EventBridge InputTransformer object:

Input transformers are useful when you only want a small portion of the event sent to your target. This command helps you navigate the JSON payload and generate the InputTransformer CloudFormation object

evb input will prompt you with a wizard that helps you build the InputTransformer object. This is using EventBridge's schema registry (currently in preview).

evb input --format <yaml|json> - Output format. Default is json


To browse targets of events:

Select a schema from the schema registry and list its targets. Select a target to browse details such as ARN, event pattern, input transformation, etc.

evb browse will let you browse your schemas and get insights into the targets listening to the source/detail-type combination of your event. This only works with explicit maching on source and detail-type.


AWS SSO authentication

To set up AWS Single Sign-On auth you'll need to configure the following parameters:

evb configure-sso --account-id 123456789012 --start-url https://<your-sso-url>.awsapps.com/start --region <your-region> --role <your-sso-role>

The role used should be allowed to perform schemas:ListSchemas and schemas:DescribeSchemas

Current Tags

  • 1.0.11                                ...           latest (2 months ago)

12 Versions

  • 1.0.11                                ...           2 months ago
  • 1.0.10                                ...           2 months ago
  • 1.0.9                                ...           2 months ago
  • 1.0.8                                ...           2 months ago
  • 1.0.7                                ...           2 months ago
  • 1.0.6                                ...           2 months ago
  • 1.0.5                                ...           2 months ago
  • 1.0.4                                ...           2 months ago
  • 1.0.3                                ...           2 months ago
  • 1.0.2                                ...           4 months ago
  • 1.0.1                                ...           4 months ago
  • 1.0.0                                ...           4 months ago
Maintainers (1)
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 1
Last Month 35
Dependencies (5)
Dev Dependencies (1)
Dependents (0)

Copyright 2014 - 2016 © taobao.org |