Skip to content

Commit

Permalink
fix rule length limit
Browse files Browse the repository at this point in the history
  • Loading branch information
ljacobsson committed Nov 15, 2022
1 parent 5503d72 commit fca6160
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion evb-local-backend/src/builders/eventBridgeClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ function createTarget(eventConsumerName, target, targetLogicalId, token) {
}

function getRuleName(busName) {
return `evb-local-${busName}-${new Date().getTime()}`;
return `evb-local-${busName
.replace(/\//g, "-")
.substring(0, 30)}-${new Date().getTime()}`;
}

module.exports = {
Expand Down

0 comments on commit fca6160

Please sign in to comment.