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

320

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 (0.0.0.0/0) 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.
1914
  1. Check the box next to the security group you wish to associate with your lambdas.
  2. Click on "Outbound rules"
1914
  1. Select the relevant rule if you have more than one Outbound rule.
  2. Click on "Edit Outbound rules".
1641
  1. Change the destination IP address to 15.197.164.44/32
1588

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 😃. Lumigo will automatically add the environment variable to each lambda that was auto traced.

Serverless Framework

Add the environment variable to your serverless.yml

custom:
  LUMIGO_TRACER_HOST: ga.lumigo-tracer-edge.golumigo.com
functions:
  myFunction:
    LUMIGO_TRACER_HOST: ga.lumigo-tracer-edge.golumigo.com

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".
1915
  1. Click on "Edit"
1915
  1. Click "Add environment variable"
1915
  1. Add a new environment variable:
  • Key: LUMIGO_TRACER_HOST
  • Value: ga.lumigo-tracer-edge.golumigo.com
  1. Click "Save".