-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
48bc22a
commit f3ea5c8
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# This is the SAM template that represents the architecture of your serverless application | ||
# https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-template-basics.html | ||
|
||
# The AWSTemplateFormatVersion identifies the capabilities of the template | ||
# https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/format-version-structure.html | ||
AWSTemplateFormatVersion: 2010-09-09 | ||
Description: >- | ||
sam-cron-app | ||
# Transform section specifies one or more macros that AWS CloudFormation uses to process your template | ||
# https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/transform-section-structure.html | ||
Transform: | ||
- AWS::Serverless-2016-10-31 | ||
|
||
# Resources declares the AWS resources that you want to include in the stack | ||
# https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/resources-section-structure.html | ||
Resources: | ||
# This is the Lambda function definition associated with the source code: sqs-payload-logger.js. For all available properties, see | ||
# https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#awsserverlessfunction | ||
ScheduledEventLogger: | ||
Type: AWS::Serverless::Function | ||
Properties: | ||
Description: A Lambda function that runs anomaly detection. | ||
Runtime: nodejs20.x | ||
Architectures: | ||
- x86_64 | ||
Handler: ts_src/testTemplate/handler.run | ||
# This property associates this Lambda function with a scheduled CloudWatch Event. For all available properties, see | ||
# https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#schedule | ||
# This example runs every hour. | ||
Events: | ||
CloudWatchEvent: | ||
Type: Schedule | ||
Properties: | ||
Schedule: cron(0 * ? * * *) | ||
events: | ||
MemorySize: 128 | ||
Timeout: 100 |