Coder Social home page Coder Social logo

workbench-aws-eventbridge-pipes's Introduction

Workbench for AWS EventBridge Pipeline with API Destinations

Please note that this application will create AWS resources that may incur costs on your account.

This is a workbench for AWS EventBridge Pipeline with API Destinations. It demonstrates how to use EventBridge Pipeline to build a serverless event-driven application that integrates with a third party application that can be anywhere on the public internet.

Architecture: EventBridge Event - Rule - SQS - Pipe - Lambda Enrichment - API destination - 3rd Party API

Since (error) logging is not available in EventBridge Pipeline, this workbench also demonstrates how to use an API Gateway as a proxy allowing to observe the events and responses that are sent to the third party API.

Architecture: EventBridge Event - Rule - SQS - Pipe - Lambda Enrichment - API destination - API Gateway - 3rd Party API

Prerequisites

You will also need to have an AWS account and have your AWS credentials configured on your machine. If you have not used CDK before, you may need to run cdk bootstrap to create the resources required to deploy CDK applications.

Build and Deploy the Application

To build and deploy the application, follow these steps:

  1. Clone this repository.
  2. Navigate to webhook.site and create a new endpoint. Copy the URL of the endpoint.
  3. Run ./gradlew clean :app:optimizedJitJarAll to build the Lambda function that will enrich the events.
  4. Change to the infra directory by running cd infra.
  5. Run cdk deploy --parameters "endpointUrl=<url of the endpoint from step 2>/*" to deploy the application.

Test the Application

To test the application, follow these steps:

  1. Navigate to your webhook.site.
  2. Run ./gradlew :app:systemTests to send a test event to the application.

After a few seconds you should see a request appear in your webhook.site dashboard. The request should contain an authorization header and body that was added by the Lambda function.

workbench-aws-eventbridge-pipes's People

Contributors

roamingthings avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.