eventcatalog icon indicating copy to clipboard operation
eventcatalog copied to clipboard

Eventbridge plug-in fails on archive events

Open Muthuveerappanv opened this issue 2 years ago • 0 comments

Have you read the Contributing Guidelines on issues?

Description

eventbridge plug-in generator fails when your event bus has a archive event/target in it. The error occurs due to a malformed arn which is being parsed through a cdk function

Archive targets are usually like this ‘arn:aws:vhs-gamma-pod02:us-east-1:::’

Steps to reproduce

  1. Create a event archive in the eventbus
  2. This will create a archival target like ‘arn:aws:vhs-gamma-pod02:us-east-1:::’’
  3. Run the eventbridge generator now

Expected behavior

All events , sources and targets are generated without issues

Actual behavior

The event target fails when the arn is parser through the cdk function

it fails the entire event generation process and ends abruptly

Your environment

  • EventCatalog version used: 0.6.8 , 0.0.10 (eventbridge plugin)
  • Environment name and version (e.g. Chrome 89, Node.js 16.4): nodejs 16
  • Operating system and version (e.g. Ubuntu 20.04.2 LTS): macOS

Muthuveerappanv avatar Mar 11 '23 19:03 Muthuveerappanv