More Info:

Your Amazon Lambda functions should have access to VPC-only resources such as AWS Redshift data warehouses, AWS ElastiCache clusters, AWS RDS database instances, and service endpoints that are only accessible from within a particular Virtual Private Cloud (VPC).

Risk Level

Medium

Address

Security

Compliance Standards

HIPAA, SOC2, NISTCSF, PCIDSS

Triage and Remediation

Remediation

To remediate the misconfiguration “Lambda Should Have Access To VPC-only Resources” for AWS using AWS console, you can follow the below steps:

  1. Go to the AWS Lambda console.
  2. Select the Lambda function that needs to access VPC-only resources.
  3. Click on the “Configuration” tab.
  4. Scroll down to the “Network” section.
  5. Click on “Edit”.
  6. Select the VPC that has the required resources.
  7. Select the subnets that the Lambda function needs to access.
  8. If required, select the security groups that the Lambda function needs to access.
  9. Click on “Save” to apply the changes.

By following the above steps, the Lambda function will have access to VPC-only resources.

Additional Reading: