forked from DataDog/datadog-lambda-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserverless.yml
More file actions
150 lines (132 loc) · 3.13 KB
/
serverless.yml
File metadata and controls
150 lines (132 loc) · 3.13 KB
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
service: integration
provider:
name: aws
tracing:
lambda: true
apiGateway: true
environment:
DD_INTEGRATION_TEST: true
DD_API_KEY: ${env:DD_API_KEY}
lambdaHashingVersion: 20201221
layers:
python27:
package:
artifact: ../../.layers/datadog_lambda_py2.7.zip
python36:
package:
artifact: ../../.layers/datadog_lambda_py3.6.zip
python37:
package:
artifact: ../../.layers/datadog_lambda_py3.7.zip
python38:
package:
artifact: ../../.layers/datadog_lambda_py3.8.zip
functions:
# async-metrics
async-metrics_python27:
handler: handle.handle
runtime: python2.7
layers:
- { Ref: Python27LambdaLayer }
environment:
DD_FLUSH_TO_LOG: true
async-metrics_python36:
handler: handle.handle
runtime: python3.6
layers:
- { Ref: Python36LambdaLayer }
environment:
DD_FLUSH_TO_LOG: true
async-metrics_python37:
handler: handle.handle
runtime: python3.7
layers:
- { Ref: Python37LambdaLayer }
environment:
DD_FLUSH_TO_LOG: true
async-metrics_python38:
handler: handle.handle
runtime: python3.8
layers:
- { Ref: Python38LambdaLayer }
environment:
DD_FLUSH_TO_LOG: true
# sync-metrics
sync-metrics_python27:
handler: handle.handle
runtime: python2.7
layers:
- { Ref: Python27LambdaLayer }
sync-metrics_python36:
handler: handle.handle
runtime: python3.6
layers:
- { Ref: Python36LambdaLayer }
sync-metrics_python37:
handler: handle.handle
runtime: python3.7
layers:
- { Ref: Python37LambdaLayer }
sync-metrics_python38:
handler: handle.handle
runtime: python3.8
layers:
- { Ref: Python38LambdaLayer }
# http-requests
http-requests_python27:
handler: http_requests.handle
runtime: python2.7
environment:
DD_TRACE_ENABLED: true
layers:
- { Ref: Python27LambdaLayer }
http-requests_python36:
handler: http_requests.handle
runtime: python3.6
environment:
DD_TRACE_ENABLED: true
layers:
- { Ref: Python36LambdaLayer }
http-requests_python37:
handler: http_requests.handle
runtime: python3.7
environment:
DD_TRACE_ENABLED: true
layers:
- { Ref: Python37LambdaLayer }
http-requests_python38:
handler: http_requests.handle
runtime: python3.8
environment:
DD_TRACE_ENABLED: true
layers:
- { Ref: Python38LambdaLayer }
# http-error
http-error_python27:
handler: http_error.handle
runtime: python2.7
environment:
DD_TRACE_ENABLED: true
layers:
- { Ref: Python27LambdaLayer }
http-error_python36:
handler: http_error.handle
runtime: python3.6
environment:
DD_TRACE_ENABLED: true
layers:
- { Ref: Python36LambdaLayer }
http-error_python37:
handler: http_error.handle
runtime: python3.7
environment:
DD_TRACE_ENABLED: true
layers:
- { Ref: Python37LambdaLayer }
http-error_python38:
handler: http_error.handle
runtime: python3.8
environment:
DD_TRACE_ENABLED: true
layers:
- { Ref: Python38LambdaLayer }