aws-sns-lambda
| Reference Documentation: | https://docs.aws.amazon.com/solutions/latest/constructs/ |
| Language | Package |
|---|---|
|
|
|
|
|
|
|
|
|
Overview
This AWS Solutions Construct implements an Amazon SNS connected to an AWS Lambda function.
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 |
|
|
existingTopicObj? |
Optional - existing instance of SNS topic object, providing both this and |
|
|
topicProps? |
Optional - user provided properties to override the default properties for the SNS topic. Providing both this and |
|
|
enableEncryptionWithCustomerManagedKey? |
|
If no key is provided, this flag determines whether the SNS Topic is encrypted with a new CMK or an AWS managed key. This flag is ignored if any of the following are defined: topicProps.masterKey, encryptionKey or encryptionKeyProps. |
|
encryptionKey? |
An optional, imported encryption key to encrypt the SNS Topic with. |
|
|
encryptionKeyProps? |
Optional user provided properties to override the default properties for the KMS encryption key used to encrypt the SNS Topic with. |
Pattern Properties
| Name | Type | Description |
|---|---|---|
|
lambdaFunction |
Returns an instance of the Lambda function created by the pattern. |
|
|
snsTopic |
Returns an instance of the SNS topic created by the pattern. |
Default settings
Out of the box implementation of the Construct without any override will set the following defaults:
Amazon SNS Topic
-
Configure least privilege access permissions for SNS Topic
-
Enable server-side encryption for SNS Topic using AWS managed KMS Key
-
Enforce encryption of data in transit
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