Function inside a VPC may not have access to the public internet and may cause a connectivity issue to Lumigo.

Lumigo now allows you to trace lambdas that are inside a VPC (once implemented the error sign will disappear automatically). In order to implement it you'll have to:

  1. Edit your VPC's security group.
  2. Add an environment variable to the lambdas inside the VPC. This is done differently in every tracing method.


Full Outbound Access

Note that if your VPC has full outbound access ( you don't need to make any change (Lumigo will work regularly).

Edit the VPC security group

  1. Open the Amazon VPC console.
  2. In the left navigation pane, choose Security Groups.
  1. Check the box next to the security group you wish to associate with your lambdas.
  2. Click on "Outbound rules"
  1. Select the relevant rule if you have more than one Outbound rule.
  2. Click on "Edit Outbound rules".
  1. Change the destination IP address to

Add The Environment Variable

There are several ways to add the variable to the environment depending on your chosen tracing method (Auto Tracing / Serverless Framework / Manual Tracing).

Auto Tracing

Nothing :smiley:. Lumigo will automatically add the environment variable to each lambda that was auto traced.

Serverless Framework

Add the environment variable to your serverless.yml


Manual Tracing

For each lambda that is behind a VPC and you wish to trace you need to:

  1. Open the Amazon Lambda console.
  2. In the left navigation pane, choose Functions.
  3. Choose the lambda you'd like to start tracing.
  4. Click on "Configuration".
  1. Click on "Edit"
  1. Click "Add environment variable"
  1. Add a new environment variable:
  • Value:
  1. Click "Save".

Did this page help you?