-
Notifications
You must be signed in to change notification settings - Fork 0
/
aws-ws-event-context-env.json
259 lines (250 loc) · 8.53 KB
/
aws-ws-event-context-env.json
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
$connect
event: {
"headers": {
"Host": "<ApiID>.execute-api.<Region>.amazonaws.com",
"Sec-WebSocket-Extensions": "permessage-deflate; client_max_window_bits",
"Sec-WebSocket-Key": "W5SCfhFFgFVbFgGJ3cbbiA==",
"Sec-WebSocket-Version": "13",
"token": "<Token>",
"X-Amzn-Trace-Id": "Root=1-63127ba5-179e8dda69839d9b0e91e6eb",
"X-Forwarded-For": "<<SourceIP>>",
"X-Forwarded-Port": "443",
"X-Forwarded-Proto": "https"
},
"multiValueHeaders": {
"Host": [
"<ApiID>.execute-api.<Region>.amazonaws.com"
],
"Sec-WebSocket-Extensions": [
"permessage-deflate; client_max_window_bits"
],
"Sec-WebSocket-Key": [
"W5SCfhFFgFVbFgGJ3cbbiA=="
],
"Sec-WebSocket-Version": [
"13"
],
"token": [
"<Token>"
],
"X-Amzn-Trace-Id": [
"Root=1-63127ba5-179e8dda69839d9b0e91e6eb"
],
"X-Forwarded-For": [
"<<SourceIP>>"
],
"X-Forwarded-Port": [
"443"
],
"X-Forwarded-Proto": [
"https"
]
},
"requestContext": {
"routeKey": "$connect",
"eventType": "CONNECT",
"extendedRequestId": "X2hB7HowIAMF53A=",
"requestTime": "02/Sep/2022:21:54:45 +0000",
"messageDirection": "IN",
"stage": "Prod",
"connectedAt": 1662155685708,
"requestTimeEpoch": 1662155685710,
"identity": {
"sourceIp": "<<SourceIP>>"
},
"requestId": "X2hB7HowIAMF53A=",
"domainName": "<ApiID>.execute-api.<Region>.amazonaws.com",
"connectionId": "X2hB7d6KoAMCLzA=",
"apiId": "<ApiID>"
},
"isBase64Encoded": false
}
context: {
"callbackWaitsForEmptyEventLoop": true,
"functionVersion": "$LATEST",
"functionName": "...",
"memoryLimitInMB": "256",
"logGroupName": "/aws/lambda/...",
"logStreamName": "2022/09/02/[$LATEST]49b7848353b941adaf9c83c21940b3b3",
"invokedFunctionArn": "arn:aws:lambda:<Region>:477605618392:function:...",
"awsRequestId": "c5a1a70a-9eea-4ee7-9667-7ea2d8481980"
}
process.env: {
"AWS_LAMBDA_FUNCTION_VERSION": "$LATEST",
"AWS_SESSION_TOKEN": "...",
"LAMBDA_TASK_ROOT": "/var/task",
"AWS_LAMBDA_LOG_GROUP_NAME": "...",
"LD_LIBRARY_PATH": "/var/lang/lib:/lib64:/usr/lib64:/var/runtime:/var/runtime/lib:/var/task:/var/task/lib:/opt/lib",
"AWS_LAMBDA_RUNTIME_API": "127.0.0.1:9001",
"AWS_LAMBDA_LOG_STREAM_NAME": "2022/09/02/[$LATEST]b1e45e10dfae4ed793d05cbc6f30bfcd",
"AWS_EXECUTION_ENV": "AWS_Lambda_nodejs14.x",
"AWS_XRAY_DAEMON_ADDRESS": "169.254.79.129:2000",
"AWS_LAMBDA_FUNCTION_NAME": "...",
"PATH": "/var/lang/bin:/usr/local/bin:/usr/bin/:/bin:/opt/bin",
"AWS_DEFAULT_REGION": "<Region>",
"PWD": "/var/task",
"AWS_SECRET_ACCESS_KEY": "...",
"LANG": "en_US.UTF-8",
"LAMBDA_RUNTIME_DIR": "/var/runtime",
"AWS_LAMBDA_INITIALIZATION_TYPE": "on-demand",
"NODE_PATH": "/opt/nodejs/node14/node_modules:/opt/nodejs/node_modules:/var/runtime/node_modules:/var/runtime:/var/task",
"TZ": ":UTC",
"AWS_REGION": "<Region>",
"AWS_ACCESS_KEY_ID": "ASIAW6M4DMLMD6744B5W",
"SHLVL": "0",
"_AWS_XRAY_DAEMON_ADDRESS": "169.254.79.129",
"_AWS_XRAY_DAEMON_PORT": "2000",
"AWS_XRAY_CONTEXT_MISSING": "LOG_ERROR",
"_HANDLER": "app.handler",
"AWS_LAMBDA_FUNCTION_MEMORY_SIZE": "256",
"NODE_EXTRA_CA_CERTS": "/etc/pki/tls/certs/ca-bundle.crt",
"_X_AMZN_TRACE_ID": "Root=1-63128538-4d8da0322d789d3e62581388;Parent=68b7d44815f89c77;Sampled=0"
}
Message
event: {
"requestContext": {
"routeKey": "send",
"messageId": "X2hC6d_mIAMCLzA=",
"eventType": "MESSAGE",
"extendedRequestId": "X2hC6EjIoAMF6aA=",
"requestTime": "02/Sep/2022:21:54:52 +0000",
"messageDirection": "IN",
"stage": "Prod",
"connectedAt": 1662155685708,
"requestTimeEpoch": 1662155692033,
"identity": {
"sourceIp": "<<SourceIP>>"
},
"requestId": "X2hC6EjIoAMF6aA=",
"domainName": "<ApiID>.execute-api.<Region>.amazonaws.com",
"connectionId": "X2hB7d6KoAMCLzA=",
"apiId": "<ApiID>"
},
"body": "{}",
"isBase64Encoded": false
}
context: {
"callbackWaitsForEmptyEventLoop": true,
"functionVersion": "$LATEST",
"functionName": "...",
"memoryLimitInMB": "256",
"logGroupName": "/aws/lambda/...",
"logStreamName": "2022/09/02/[$LATEST]d4aa9c3a3c2b495694baad17c802136c",
"invokedFunctionArn": "arn:aws:lambda:<Region>:477605618392:function:...",
"awsRequestId": "a16107e3-6208-4700-a30e-1bb67ad53c3b"
}
process.env: {
"AWS_LAMBDA_FUNCTION_VERSION": "$LATEST",
"AWS_SESSION_TOKEN": "...",
"LD_LIBRARY_PATH": "/var/lang/lib:/lib64:/usr/lib64:/var/runtime:/var/runtime/lib:/var/task:/var/task/lib:/opt/lib",
"LAMBDA_TASK_ROOT": "/var/task",
"AWS_LAMBDA_LOG_GROUP_NAME": "...",
"AWS_LAMBDA_RUNTIME_API": "127.0.0.1:9001",
"AWS_LAMBDA_LOG_STREAM_NAME": "2022/09/02/[$LATEST]49d9d61248474b3989a7272707fdde49",
"AWS_EXECUTION_ENV": "AWS_Lambda_nodejs14.x",
"AWS_LAMBDA_FUNCTION_NAME": "...",
"AWS_XRAY_DAEMON_ADDRESS": "169.254.79.129:2000",
"PATH": "/var/lang/bin:/usr/local/bin:/usr/bin/:/bin:/opt/bin",
"AWS_DEFAULT_REGION": "<Region>",
"PWD": "/var/task",
"AWS_SECRET_ACCESS_KEY": "...",
"LAMBDA_RUNTIME_DIR": "/var/runtime",
"LANG": "en_US.UTF-8",
"AWS_LAMBDA_INITIALIZATION_TYPE": "on-demand",
"NODE_PATH": "/opt/nodejs/node14/node_modules:/opt/nodejs/node_modules:/var/runtime/node_modules:/var/runtime:/var/task",
"AWS_REGION": "<Region>",
"TZ": ":UTC",
"AWS_ACCESS_KEY_ID": "ASIAW6M4DMLMC5URRINU",
"SHLVL": "0",
"_AWS_XRAY_DAEMON_ADDRESS": "169.254.79.129",
"_AWS_XRAY_DAEMON_PORT": "2000",
"AWS_XRAY_CONTEXT_MISSING": "LOG_ERROR",
"_HANDLER": "app.handler",
"AWS_LAMBDA_FUNCTION_MEMORY_SIZE": "256",
"NODE_EXTRA_CA_CERTS": "/etc/pki/tls/certs/ca-bundle.crt",
"_X_AMZN_TRACE_ID": "Root=1-6312853e-73b99ddc5904d1f33ea9e71e;Parent=3568ab652e13786a;Sampled=0"
}
$disconnect
event: {
"headers": {
"Host": "<ApiID>.execute-api.<Region>.amazonaws.com",
"x-api-key": "",
"X-Forwarded-For": "",
"x-restapi": ""
},
"multiValueHeaders": {
"Host": [
"<ApiID>.execute-api.<Region>.amazonaws.com"
],
"x-api-key": [
""
],
"X-Forwarded-For": [
""
],
"x-restapi": [
""
]
},
"requestContext": {
"routeKey": "$disconnect",
"disconnectStatusCode": 1006,
"eventType": "DISCONNECT",
"extendedRequestId": "X2hD8GkAoAMF-sw=",
"requestTime": "02/Sep/2022:21:54:58 +0000",
"messageDirection": "IN",
"disconnectReason": "Connection closed abnormally",
"stage": "Prod",
"connectedAt": 1662155685708,
"requestTimeEpoch": 1662155698663,
"identity": {
"sourceIp": "<<SourceIP>>"
},
"requestId": "X2hD8GkAoAMF-sw=",
"domainName": "<ApiID>.execute-api.<Region>.amazonaws.com",
"connectionId": "X2hB7d6KoAMCLzA=",
"apiId": "<ApiID>"
},
"isBase64Encoded": false
}
context: {
"callbackWaitsForEmptyEventLoop": true,
"functionVersion": "$LATEST",
"functionName": "...",
"memoryLimitInMB": "256",
"logGroupName": "/aws/lambda/...",
"logStreamName": "2022/09/02/[$LATEST]4bdb68e03e864a06b1060a64712752b9",
"invokedFunctionArn": "arn:aws:lambda:<Region>:477605618392:function:...",
"awsRequestId": "45f458db-a810-4942-859d-b350b7190133"
}
process.env: {
"AWS_LAMBDA_FUNCTION_VERSION": "$LATEST",
"AWS_SESSION_TOKEN": "...",
"LAMBDA_TASK_ROOT": "/var/task",
"LD_LIBRARY_PATH": "/var/lang/lib:/lib64:/usr/lib64:/var/runtime:/var/runtime/lib:/var/task:/var/task/lib:/opt/lib",
"AWS_LAMBDA_LOG_GROUP_NAME": "...",
"AWS_LAMBDA_RUNTIME_API": "127.0.0.1:9001",
"AWS_LAMBDA_LOG_STREAM_NAME": "2022/09/02/[$LATEST]231c5f014e0a401ead98fc3c39c1b398",
"AWS_EXECUTION_ENV": "AWS_Lambda_nodejs14.x",
"AWS_XRAY_DAEMON_ADDRESS": "169.254.79.129:2000",
"AWS_LAMBDA_FUNCTION_NAME": "...",
"PATH": "/var/lang/bin:/usr/local/bin:/usr/bin/:/bin:/opt/bin",
"AWS_DEFAULT_REGION": "<Region>",
"PWD": "/var/task",
"AWS_SECRET_ACCESS_KEY": "...",
"LANG": "en_US.UTF-8",
"LAMBDA_RUNTIME_DIR": "/var/runtime",
"AWS_LAMBDA_INITIALIZATION_TYPE": "on-demand",
"NODE_PATH": "/opt/nodejs/node14/node_modules:/opt/nodejs/node_modules:/var/runtime/node_modules:/var/runtime:/var/task",
"AWS_REGION": "<Region>",
"TZ": ":UTC",
"AWS_ACCESS_KEY_ID": "ASIAW6M4DMLMLRBWN3ZR",
"SHLVL": "0",
"_AWS_XRAY_DAEMON_ADDRESS": "169.254.79.129",
"_AWS_XRAY_DAEMON_PORT": "2000",
"AWS_XRAY_CONTEXT_MISSING": "LOG_ERROR",
"_HANDLER": "app.handler",
"AWS_LAMBDA_FUNCTION_MEMORY_SIZE": "256",
"NODE_EXTRA_CA_CERTS": "/etc/pki/tls/certs/ca-bundle.crt",
"_X_AMZN_TRACE_ID": "Root=1-63128547-6834a1442f35565664367d5e;Parent=42c95bef4aa2a15c;Sampled=0"
}