Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add lambda defaults #19

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions axiom-cloudfront-lambda-cloudformation-stack.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,18 @@ Parameters:
Type: String
Description: The Name of the Dataset in Axiom.
MinLength: 1
LambdaTimout:
Type: Number
Description: Timoute set for lambda function in seconds.
Default: 3
MaxValue: 900
MinValue: 1
LambdaMemory:
Type: Number
Description: Memory Size allocated to lambda function in MB.
default: 128
MaxValue: 10240
MinValue: 128
Resources:
LogsBucket:
Type: AWS::S3::Bucket
Expand Down Expand Up @@ -76,6 +88,8 @@ Resources:
Properties:
Runtime: python3.9
FunctionName: axiom-cloudfront-lambda
Timeout: !Ref "LambdaTimout"
MemorySize: !Ref "LambdaMemory"
Handler: index.lambda_handler
Code:
ZipFile: |
Expand Down