aws-lambda-eventbridge
Reference Documentation: | https://docs.aws.amazon.com/solutions/latest/constructs/ |
Language | Package |
---|---|
|
|
|
|
|
|
Overview
This AWS Solutions Construct implements an AWS Lambda function connected to an Amazon EventBridge.
Here is a minimal deployable pattern definition:
Pattern Construct Props
Name | Type | Description |
---|---|---|
existingLambdaObj? |
An optional, existing Lambda function to be used instead of the default
function. Providing both this and |
|
lambdaFunctionProps? |
Optional user-provided properties to override the default properties 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 |
|
existingVpc? |
An optional, existing VPC into which this pattern should be deployed.
When deployed in a VPC, the Lambda function will use ENIs in the VPC to
access network resources and an Interface Endpoint will be created in
the VPC for Amazon EventBridge. If an existing VPC is provided, the
|
|
vpcProps? |
Optional user-provided properties to override the default properties
for the new VPC. |
|
deployVpc? |
|
Whether to create a new VPC based on |
eventBusEnvironmentVariableName? |
|
Optional Name for the Lambda function environment variable set to the name of the Event bus. Default: EVENTBUS_NAME |
Pattern Properties
Name | Type | Description |
---|---|---|
lambdaFunction |
Returns an instance of the Lambda function created by the pattern. |
|
eventBus? |
Returns the instance of events.IEventBus used by the construct |
|
vpc? |
Returns an interface on the VPC used by the pattern (if any). This may be a VPC created by the pattern or the VPC supplied to the pattern constructor. |
Default settings
Out of the box implementation of the Construct without any override will set the following defaults:
AWS Lambda Function
-
Configure limited privilege access IAM role for Lambda function.
-
Enable reusing connections with Keep-Alive for NodeJs Lambda function.
-
Allow the function to put events to EventBus (custom EventBus can be used by specifying
existingEventBusInterface
oreventBusProps
property). -
Enable X-Ray Tracing
-
Set Environment Variables
-
EVENTBUS_NAME
-
AWS_NODEJS_CONNECTION_REUSE_ENABLED (for Node 10.x and higher functions)
-
Architecture

Github
Go to the Github repo