Schema to create Lambda function resource using SAM
An example of how to declare Lambda function in template.yaml of your SAM configuration
YourLambdaFunction:
Type: AWS::Serverless::Function
Properties:
Description: A Lambda function description.
Runtime: nodejs16.x
Architectures:
- x86_64
Handler: index.handler
MemorySize: 128
Timeout: 100PreviousExample of enabling streaming functionality of DynamoDB table using SAM resourceNextAdding environment variables to Lambda function resource using SAM
Last updated