Before you begin, make sure to setup your LambdaSharp CLI.
Functions, like resources, have a Properties section that can be used to fine tune the Lambda settings, such as putting the Lambda function in a VPC.
For additional details about what can be set in the Properties section see the AWS::Lambda::Function type documentation.
Module: Sample.VpcFunction
Description: A sample module using function in VPC
Items:
- Parameter: SecurityGroupIds
Type: CommaDelimitedList
- Parameter: SubnetIds
Type: CommaDelimitedList
- Function: MyFunction
Memory: 128
Timeout: 30
Properties:
VpcConfig:
SecurityGroupIds: !Ref SecurityGroupIds
SubnetIds: !Ref SubnetIds