Skip to main content

Connect a Function to VPC

Functions that require access to a VPC must contain a VPC configuration.

Add VPC configuration to a Function

  1. Open the project in Visual Studio Code.
  2. Edit the Function to which you wish to add the VPC configuration.
  3. Expand the VPC Config section
    Advanced
  4. Enter your VPC's relevant security group ids and subnet ids (you can add multiple values separated by commas).
  5. 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

  1. Go to the VPC Service in AWS Console
  2. Click on Security Groups
  3. Copy the security group id

Expand policy

Security group id

  1. Go to the VPC Service in AWS Console
  2. Click on Subnets
  3. Copy the subnet id

Expand policy

Ready to Get Started?

Get Started for Free
© 2023 Altostra, Inc.