aws-lambda-elasticachememcached
| 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 Elasticache Memcached cluster.
Here is a minimal deployable pattern definition :
Example
Pattern Construct Props
| Name | Type | Description |
|---|---|---|
|
existingLambdaObj? |
Optional - instance of an existing Lambda Function object, providing both this and
|
|
|
lambdaFunctionProps? |
Optional - user provided props to override the default props for the Lambda function. Providing both this and |
|
|
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 Elasticache. If an existing VPC is provided, the
|
|
|
vpcProps? |
Optional user provided properties to override the default properties
for the new VPC. |
|
|
cacheEndpointEnvironmentVariableName? |
string |
Optional Name for the Lambda function environment variable set to the cache endpoint. Default: CACHE_ENDPOINT |
|
cacheProps? |
Optional user provided props to override the default props for the
Elasticache Cluster. Providing both this and |
|
|
existingCache? |
Existing instance of Elasticache Cluster object, providing both this
and |
Pattern Properties
| Name | Type | Description |
|---|---|---|
|
lambdaFunction |
Returns an instance of the Lambda function used by the pattern. |
|
|
vpc |
Returns an interface on the VPC used by the pattern. This may be a VPC created by the pattern or the VPC supplied to the pattern constructor. |
|
|
cache |
The Elasticache Memcached cluster used by the construct. |
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
-
Enable X-Ray Tracing
-
Attached to self referencing security group to grant access to cache
-
Set Environment Variables
-
(default) CACHE_ENDPOINT
-
AWS_NODEJS_CONNECTION_REUSE_ENABLED (for Node 10.x and higher functions)
-
Amazon Elasticache Memcached Cluster
-
Creates multi node, cross-az cluster by default
-
2 cache nodes, type: cache.t3.medium
-
-
Self referencing security group attached to cluster endpoint
Architecture
Github
Go to the Github repo