AWS CloudFormation
User Guide (Version )

AWS::Lambda::Function VpcConfig

The VPC security groups and subnets that are attached to a Lambda function.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

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

YAML

SecurityGroupIds: - String SubnetIds: - String

Properties

SecurityGroupIds

A list of VPC security groups IDs.

Required: Yes

Type: List of String

Maximum: 5

Update requires: No interruption

SubnetIds

A list of VPC subnet IDs.

Required: Yes

Type: List of String

Maximum: 16

Update requires: No interruption

On this page: