You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can now test the function using the AWS CLI or the AWS Lambda console
174
+
175
+
```bash
176
+
$ aws lambda invoke
177
+
--cli-binary-format raw-in-base64-out \
178
+
--function-name sample \
179
+
--payload '{"command": "Say Hi!"}' \
180
+
output.json
181
+
$ cat output.json
182
+
```
183
+
149
184
## Logging
150
185
151
186
The Runtime uses AWS logging conventions for enhanced log capture, supporting String and JSON log
@@ -194,10 +229,11 @@ Log.fatal(message: T?) // Messages about serious errors that cause the applicati
194
229
machine [uses different curl version from what is requested by the runtime](https://youtrack.jetbrains.com/issue/KTOR-6361/Curl-Error-linking-curl-in-linkDebugExecutableLinuxX64-on-macOS).
195
230
To solve that either
196
231
use [Gihub Actions workflow](https://github.com/trueangle/kotlin-native-aws-lambda-runtime/actions/workflows/buildLinux86_64.yml)
197
-
or local docker container with ubuntu 22 under the hood. Example:
198
-
```bash
232
+
or local docker container with ubuntu 22 under the hood. Example [Dockerfile](Dockerfile) and
233
+
build command:
234
+
235
+
```bash
199
236
200
237
docker build -t sample .
201
238
docker run --rm -v $(pwd):/sample -w /sample sample ./gradlew build
0 commit comments