You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please publish the MerLoc Broker as an AWS CDK v2 Construct Lib.
Use Case
We'd like to add the MerLoc Broker to our existing CDK App so that it comes for free in our developers' environments. This would simplify MerLoc's setup for our entire team.
Example
/** Use the MerLocBroker's addLambdaFunction */exportclassMyStackextendsStack{constructor(scope: Construct,id: string,props: StackProps={}){super(scope,id,props);// I add a MerLoc broker to my existing app.constmerLocBroker=newMerLocBroker(this,'MerLocBroker');// Lets say I have a specific function I want to configure to use the broker.consthandler=newaws_lambda.Function(this,'MyFunction',{...});// I add the lambda function to the MerLocBroker, and this auto-configures// the function with the correct layer and environment variables to use the broker.merLocBroker.addLambdaFunction(handler);}}/** An aspect-based approach */exportclassMyStack2extendsStack{constructor(scope: Construct,id: string,props: StackProps={}){super(scope,id,props);// Lets say this is my app - I have data and control planes.constmyAppData=newMyAppData(this,'MyAppData');newMyAppControl(this,'MyAppControl',{
myAppData,});// I add a MerLoc broker to my existing app.constmerLocBroker=newMerLocBroker(this,'MerLocBroker');// Then add an aspect that auto-configures all my lambdas with the correct// layer and environment variables to use the broker.Aspects.of(this).add(newMerLocConfigAspect(merLocBroker),);}}
The text was updated successfully, but these errors were encountered:
misterjoshua
changed the title
Feature Request: Expose the broker as a CDK Construct Lib
Feature Request: Publish the Broker as a CDK Construct Lib
Aug 16, 2022
Please publish the MerLoc Broker as an AWS CDK v2 Construct Lib.
Use Case
We'd like to add the MerLoc Broker to our existing CDK App so that it comes for free in our developers' environments. This would simplify MerLoc's setup for our entire team.
Example
The text was updated successfully, but these errors were encountered: