All Projects → boyney123 → cdk-eventbridge-socket

boyney123 / cdk-eventbridge-socket

Licence: other
CDK construct that creates a WebSocket endpoint for you for any EventBridge rule you are interested in. (Built for debugging + testing )

Programming Languages

HTML
75241 projects
typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to cdk-eventbridge-socket

cdk-github-actions-runner
Deploy self-hosted GitHub Actions runner to AWS Fargate using AWS Cloud Development Kit (CDK)
Stars: ✭ 89 (+106.98%)
Mutual labels:  cdk, cdk-examples
cloudfront-image-proxy
Make CloudFront resize images "on the fly" via lambda@edge, cache it and persists it in S3.
Stars: ✭ 32 (-25.58%)
Mutual labels:  cdk, awscdk
cdk-examples
AWS CDK Examples Repository
Stars: ✭ 49 (+13.95%)
Mutual labels:  cdk, cdk-examples
amazon-sagemaker-model-serving-using-aws-cdk
This repository provides AI/ML service(MachineLearning model serving) modernization solution using Amazon SageMaker, AWS CDK, and AWS Serverless services.
Stars: ✭ 23 (-46.51%)
Mutual labels:  cdk
cdk-microservices-labs
Hugo Style Documents
Stars: ✭ 12 (-72.09%)
Mutual labels:  cdk
cdk
🎯 Building Scalable Cloud-Native FullStack Serverless Applications. ⛅🚀
Stars: ✭ 24 (-44.19%)
Mutual labels:  cdk
eventbridge-canon
Open source simple UI to Publish, Save and Share AWS EventBridge Events
Stars: ✭ 67 (+55.81%)
Mutual labels:  eventbridge
maildog
🐶 Hosting your own email forwarding service on AWS and managing it with Github Actions
Stars: ✭ 381 (+786.05%)
Mutual labels:  cdk
document-understanding-solution
Example of integrating & using Amazon Textract, Amazon Comprehend, Amazon Comprehend Medical, Amazon Kendra to automate the processing of documents for use cases such as enterprise search and discovery, control and compliance, and general business process workflow.
Stars: ✭ 180 (+318.6%)
Mutual labels:  cdk
aws-pdf-textract-pipeline
🔍 Data pipeline for crawling PDFs from the Web and transforming their contents into structured data using AWS textract. Built with AWS CDK + TypeScript
Stars: ✭ 141 (+227.91%)
Mutual labels:  cdk
amazon-eventbridge-resource-policy-samples
Learn more about Amazon EventBridge resource policies and multi-account event bus topologies. This repo contains sample code for the AWS re:Invent 2020 session "Building event-driven applications with Amazon EventBridge" (https://youtu.be/Wk0FoXTUEjo) and the AWS Compute blog post "Simplifying cross-account access with Amazon EventBridge" (https…
Stars: ✭ 83 (+93.02%)
Mutual labels:  eventbridge
cdk-constructs
Shared constructs for AWS CDK
Stars: ✭ 34 (-20.93%)
Mutual labels:  cdk
cdktf-provider-aws
Prebuilt Terraform CDK (cdktf) provider for aws.
Stars: ✭ 71 (+65.12%)
Mutual labels:  cdk
jetkit-cdk
Cloud-native TypeScript API development kit for AWS CDK.
Stars: ✭ 33 (-23.26%)
Mutual labels:  cdk
sls-dev-tools
Dev Tools for the Serverless World - Issues, PRs and ⭐️welcome!
Stars: ✭ 825 (+1818.6%)
Mutual labels:  eventbridge
aws-serverless-fullstack-swift-apple-carplay-example
This application demonstrates a full-stack Apple CarPlay app that uses Swift for both the UI and the backend services in AWS. The app accesses Lambda functions written in Swift and deployed from Docker images. The app accesses Amazon Location Service and a 3rd party weather api to display information in the vicinity of the user.
Stars: ✭ 84 (+95.35%)
Mutual labels:  cdk
aws-ecs-devops-using-aws-cdk
This repository provides a general DevOps practices such MSA, IaC, CICD and Monitoring. AWS various services are used to provide DevOps best practices.
Stars: ✭ 110 (+155.81%)
Mutual labels:  cdk
nextjs-ssr-isr-cdk-aws
🦄 ‏‏‎ ‎‏‏‎ ‎‏‏‎ ‎Next.js webapp using Server Side Rendering (SSR) and Incremental Static Regeneration (ISR) deployed with Serverless Nextjs CDK construct on AWS using CloudFront and Lambda@Edge
Stars: ✭ 78 (+81.4%)
Mutual labels:  cdk-examples
Terraform Cdk
Define infrastructure resources using programming constructs and provision them using HashiCorp Terraform
Stars: ✭ 3,026 (+6937.21%)
Mutual labels:  cdk
eventbridge-cli
Amazon EventBridge Cli
Stars: ✭ 78 (+81.4%)
Mutual labels:  eventbridge

cdk-eventbridge-socket

This is an AWS CDK Construct that will listen for any EventBridge Bus and Rule and forward that event through a websocket.

Get setup in seconds and as easy as 7 lines of code.

Why

You may want to use tools like Postman Websockets or websocat to see and debug what events are being fired through your event bus.

How

This uses AWS ApiGateway, DynamoDB (to store connections) and Lambda.

Architecture

Installation and Usage

Typescript

npm install --save cdk-eventbridge-socket
import * as cdk from '@aws-cdk/core';

import { EventBridgeWebSocket } from 'cdk-eventbridge-socket';

export class EventbridgeWebhooksStack extends cdk.Stack {
  constructor(scope: cdk.App, id: string, props?: cdk.StackProps) {
    super(scope, id, props);

    new EventBridgeWebSocket(this, 'sockets', {
      bus: 'your-event-bus-name',

      // This example shows how to listen for all events
      eventPattern: {
        account: ['your_account_id'],
      },
      stage: 'dev',
    });
  }
}

When using the cdk-eventbridge-socket the new websocket url will be output on your terminal.

Usage

There are only a few properties you have to set bus, eventPattern and stage.

You can listen to any EventBridge source/pattern you like, just replace the eventPattern with what you want to listen to.

Examples

Listen for a detailType
new EventBridgeWebSocket(this, 'sockets', {
  bus: 'your-event-bus-name',

  // Listens for all UserCreated events
  eventPattern: {
    detailType: ['UserCreated'],
  },
  stage: 'dev',
});
Listen for a source
new EventBridgeWebSocket(this, 'sockets', {
  bus: 'your-event-bus-name',

  // Listens for all events on source
  eventPattern: {
    source: ['myapp.users'],
  },
  stage: 'dev',
});

You can find more here on the AWS documentation

Contributing

If you have any questions, features or issues please raise any issue or pull requests you like. I will try my best to get back to you.

License

MIT.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].