Adding a scheduled timer to start Lambda function resource using SAM
An example of how to add a scheduled timer to start the Lambda function in template.yaml of your SAM configuration
YourLambdaFunction:
Type: AWS::Serverless::Function
Properties:
Description: Description of your function
Runtime: nodejs16.x
Architectures:
- x86_64
Handler: index.handler
Events:
CloudWatchEvent:
Type: Schedule
Properties:
Schedule: rate(6 hours)
MemorySize: 128
Timeout: 100PreviousAdding environment variables to Lambda function resource using SAMNextReading stream from DynamoDB by Lambda function declared using SAM
Last updated