-
Notifications
You must be signed in to change notification settings - Fork 6
/
lambdaGeneral.template
105 lines (95 loc) · 2.72 KB
/
lambdaGeneral.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "This is the generic template",
"Parameters": {
"MemorySize": {
"Description": "The size of memory in MB for lambda function, in multiple of 64, minimum 128, maximum 3008.",
"Type": "Number",
"Default": "1984",
"MinValue": "128",
"MaxValue": "3008"
},
"Timeout": {
"Description": "The timeout for lambda function stop executing in seconds.",
"Type": "Number",
"Default": "900",
"MinValue": "1"
},
"Runtime": {
"Default": "python3.6",
"Description": "The environment runtime language.",
"Type": "String"
},
"LambdaBucket": {
"Description": "S3 bucket of the lambda function",
"Type": "String",
"Default": "ccs-sandbox-lambda-deploys"
},
"LambdaS3Object": {
"Description": "S3 Key for the lambda function",
"Type": "String",
"Default": "LexisAi/1947-LexisAi.zip"
},
"LambdaHandler": {
"Description": "Handler for the lambda function",
"Type": "String",
"Default": "ElasticLoader/lambda_function.lambda_handler"
},
"SecurityGroups": {
"Description": "Security Groups for the Lambda",
"Type": "CommaDelimitedList",
"Default": ""
},
"Description": {
"Default": "Generic lambda function template",
"Description": "The function description",
"Type": "String"
},
"Subnets": {
"Description": "Subnet Ids for the Lambda",
"Type": "CommaDelimitedList"
},
"CommonLambdaExecutionRoleARN": {
"Description": "The common lambda execution role ",
"Type": "String"
}
},
"Resources": {
"LambdaFunction": {
"Type": "AWS::Lambda::Function",
"Properties": {
"FunctionName": {},
"Description": {
"Ref": "Description"
},
"Handler": {
"Ref": "LambdaHandler"
},
"Role": {
"Ref": "CommonLambdaExecutionRoleARN"
},
"Code": {
"S3Bucket": {
"Ref": "LambdaBucket"
},
"S3Key": {
"Ref": "LambdaS3Object"
}
},
"Timeout": {
"Ref": "Timeout"
},
"MemorySize": {
"Ref": "MemorySize"
},
"Runtime": {
"Ref": "Runtime"
},
"Environment": {
"Variables": {
}
}
}
}
}
}