Connect a Function to VPC
Functions that require access to a VPC must contain a VPC configuration.
Add VPC configuration to a Function
- Open the project in Visual Studio Code.
- Edit the Function to which you wish to add the VPC configuration.
- Expand the VPC Config section
- Enter your VPC's relevant security group ids and subnet ids (you can add multiple values separated by commas).
- Click SAVE to finish editing the function.
Acceptable formats
Both "Security Group Ids" and "Subnet Ids" support a comma-separated list of values.
Security group id
- Go to the VPC Service in AWS Console
- Click on Security Groups
- Copy the security group id
Security group id
- Go to the VPC Service in AWS Console
- Click on Subnets
- Copy the subnet id