Vpc component lets you add an Amazon VPC to your app.
Constructor
sst.config.ts
Parameters
nat
Configure the NAT gateway for private subnets.Options:
"managed" (AWS NAT Gateway), "ec2" (EC2-based NAT), or "none".Properties
id
publicSubnets
privateSubnets
securityGroups
nodes
Examples
Connect a function to a VPC
sst.config.ts
Reference an existing VPC
sst.config.ts