You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How does the VpcPlacement property of Function() map to VpcConfig in Lambda cloudformation resource?
VpcConfig accepts multiple subnets but VpcPlacement accepts only a single subnet (in SubnetName). May be I've got it wrong. Would be clearer if there's a cdk example of a Lambda placed in an Vpc. I think a fairly common scenario is placing a Lambda in an existing Vpc where the Vpc may not have been cloudformed (so the cdk cloudformation import will not work) . An example of that would be great.
The text was updated successfully, but these errors were encountered:
A subnet name selects all subnets created with that name in the subnetConfiguration set when creating the VPC. This setting is useful if you have multiple subnets of the same type, otherwise it's probably preferable to use subnetType to select the type you want (Public or Private).
How does the
VpcPlacement
property ofFunction()
map toVpcConfig
in Lambda cloudformation resource?VpcConfig
accepts multiple subnets butVpcPlacement
accepts only a single subnet (inSubnetName
). May be I've got it wrong. Would be clearer if there's a cdk example of a Lambda placed in an Vpc. I think a fairly common scenario is placing a Lambda in an existing Vpc where the Vpc may not have been cloudformed (so the cdk cloudformation import will not work) . An example of that would be great.The text was updated successfully, but these errors were encountered: