aws-eventbridge-lambda
Reference Documentation: | https://docs.aws.amazon.com/solutions/latest/constructs/ |
Language | Package |
---|---|
|
|
|
|
|
|
Overview
This AWS Solutions Construct implements an AWS EventBridge rule and an AWS Lambda function.
Here is a minimal deployable pattern definition:
Pattern Construct Props
Name | Type | Description |
---|---|---|
existingLambdaObj? |
Existing instance of Lambda Function object, providing both this and
|
|
lambdaFunctionProps? |
User provided props to override the default props for the Lambda function. |
|
existingEventBusInterface? |
Optional user-provided custom EventBus for construct to use. Providing
both this and |
|
eventBusProps? |
Optional user-provided properties to override the default properties
when creating a custom EventBus. Setting this value to |
|
eventRuleProps |
User provided eventRuleProps to override the defaults |
Pattern Properties
Name | Type | Description |
---|---|---|
eventBus? |
Returns the instance of events.IEventBus used by the construct |
|
eventsRule |
Returns an instance of events.Rule created by the construct |
|
lambdaFunction |
Returns an instance of lambda.Function created by the construct |
Default settings
Out of the box implementation of the Construct without any override will set the following defaults:
Amazon EventBridge Rule
-
Grant least privilege permissions to EventBridge rule to trigger the Lambda Function
AWS Lambda Function
-
Configure limited privilege access IAM role for Lambda function
-
Enable reusing connections with Keep-Alive for NodeJs Lambda function
-
Enable X-Ray Tracing
-
Set Environment Variables
-
AWS_NODEJS_CONNECTION_REUSE_ENABLED (for Node 10.x and higher functions)
Architecture

Github
Go to the Github repo