Menu
AWS CloudFormation
User Guide (API Version 2010-05-15)

AWS Lambda Function VpcConfig

VpcConfig is a property of the AWS::Lambda::Function resource that enables to your AWS Lambda (Lambda) function to access resources in a VPC. For more information, see Configuring a Lambda Function to Access Resources in an Amazon VPC in the AWS Lambda Developer Guide.

Syntax

JSON

Copy
{ "SecurityGroupIds" : [ String, ... ], "SubnetIds" : [ String, ... ] }

YAML

Copy
SecurityGroupIds: - String SubnetIds: - String

Properties

SecurityGroupIds

A list of one or more security groups IDs in the VPC that includes the resources to which your Lambda function requires access.

Required: Yes

Type: List of strings

SubnetIds

A list of one or more subnet IDs in the VPC that includes the resources to which your Lambda function requires access.

Required: Yes

Type: List of strings

On this page: