Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@event-scout/construct

Package Overview
Dependencies
Maintainers
0
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@event-scout/construct

EventScout: construct to ease EventBridge monitoring and testing

  • 0.7.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
73
decreased by-45.11%
Maintainers
0
Weekly downloads
 
Created
Source

@event-scout/construct

Create resources necessary to use EventScout.

This repository is part of EventScout.

Installation

pnpm add -D @event-scout/construct

or if using yarn

yarn add --dev @event-scout/construct

or if using npm

npm install --save-dev @event-scout/construct

Deploy the resources

The resources for EventScout are only available through a CDK construct for the moment.

Instantiate the CDK construct:

import { EventScout } from '@event-scout/construct';
import { CfnOutput } from 'aws-cdk-lib';
import { EventBus } from 'aws-cdk-lib/aws-events';

// create the necessary resources
const { httpEndpoint } = new EventScout(this, 'EventScout', {
  eventBus: EventBus.fromEventBusName(this, 'EventBus', eventBusName),
});

// export the endpoint value for easier use in tests
new CfnOutput(this, 'EventScoutEndpoint', {
  value: httpEndpoint,
  description: 'EventScout endpoint',
  exportName: '<your export name>',
});

The export here will be useful to retrieve the EventScout endpoint for your tests.

⚠ Since the EventScout construct provisions Lambda, it must be deployed with the CDK and is not compatible with @swarmion/serverless-cdk-plugin

Keywords

FAQs

Package last updated on 09 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc