Skip to main content

lacework-global-144

Lambda Function should not have VPC access

Description

AWS advises that unless a Lambda function needs to access an AWS resource that is only accessible from within a VPC, there is no additional benefit to add a VPC configuration to a Lambda function.

Remediation

To disconnect a Lambda function from a VPC:

  1. Log in to the AWS Management Console.

  2. Go to the Lambda service.

  3. Select the Lambda function.

  4. Select the Configuration tab.

  5. Select VPC.

  6. Select Edit.

  7. Select the VPC dropdown and choose None.

  8. Select Save.