Add VPC support for aws-lambda-dynamodb #148
Labels
feature-request
A feature should be added or improved
needs-triage
The issue or PR still needs to be triaged
Update the aws-lambda-dynamodb construct to allow providing VPC configurations for the Lambda Function.
Use Case
This will allow the Lambda Functions deployed by this pattern to access resources in a VPC.
Proposed Solution
Following the changes made to aws-lambda-sqs include the following VPC properties:
Pattern Construct Props
ec2.IVpc
deployVpc
property cannot betrue
. This usesec2.IVpc
to allow clients to supply VPCs that exist outside the stack using theec2.Vpc.fromLookup()
method.ec2.VpcProps
enableDnsHostnames
,enableDnsSupport
,natGateways
andsubnetConfiguration
are set by the pattern, so any values for those properties supplied here will be overrriden. IfdeployVpc
is nottrue
then this property will be ignored.boolean
vpcProps
into which to deploy this pattern. Setting this to true will deploy the minimal, most private VPC to run the pattern:- One isolated subnet in each Availability Zone used by the CDK program
If this property isenableDnsHostnames
andenableDnsSupport
will both be set to truetrue
thenexistingVpc
cannot be specified. Defaults tofalse
.Pattern Properties
ec2.IVpc
Other
This is a 🚀 Feature Request
\
The text was updated successfully, but these errors were encountered: