Amplify Gen2 function missing Vpc property #1112
Labels
feature-request
New feature or request
function
Issue pertaining to Amplify Function
needs-product-input
Needs non-technical requirements or direction to proceed
Environment information
Description
Lambda function created using Amplify Gen2 do not have Vpc property just like other props such as timeoutSeconds, environment, memoryMB etc.
defineFunction
which is imported from@aws-amplify/backend
module do not consists of Vpc configurationsDue to missing Vpc property, it is not possible to configure lambda function with VPC.
Workaround : Tried to override the lambda function resource by importing
ec2.Vpc.fromVpcAttributes
from'aws-cdk-lib/aws-ec2'
, however It is not possible to override the lambda function as amplify expects the lambda function to be passed insidedefineBackend
. The below code snippet do not work :The text was updated successfully, but these errors were encountered: