Skip to content

Commit 02be3c0

Browse files
committed
Update README.md
1 parent e3d3b33 commit 02be3c0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ kotlin {
5353
).forEach {
5454
it.binaries {
5555
executable {
56-
entryPoint = "com.github.trueangle.knative.lambda.runtime.sample.main" // Change this to your entry point
56+
entryPoint = "com.github.trueangle.knative.lambda.runtime.sample.main" // Link this to your main function entry point
5757
}
5858
}
5959
}
@@ -96,8 +96,8 @@ class SampleStreamingHandler : LambdaStreamHandler<ByteArray, ByteWriteChannel>
9696
}
9797
}
9898
```
99-
### 5. Specify Application entry point
100-
Using standard `main` function. Call `LambdaRuntime.run` to execute Lambda by passing handler to it.
99+
### 5. Specify Main Function
100+
Create application entry point using standard `main` function. Call `LambdaRuntime.run` to execute Lambda by passing handler to it.
101101

102102
```kotlin
103103
fun main() = LambdaRuntime.run { HelloWorldLambdaHandler() }
@@ -125,7 +125,7 @@ Use the [AWS runtime emulator](https://github.com/aws/aws-lambda-runtime-interfa
125125

126126
## Build and deploy to AWS
127127

128-
1. Apply the plugin `id("io.github.trueangle.plugin.lambda") version "0.0.1"`
128+
1. Make sure you have applied the plugin `id("io.github.trueangle.plugin.lambda") version "0.0.1"`
129129
2. Execute `./gradlew buildLambdaRelease`. The command will output the path to the archive containing lambda executable (YOUR_MODULE_NAME.kexe) located in (YOUR_MODULE_NAME/build/bin/lambda/release/YOUR_MODULE_NAME.zip)
130130
3. Deploy .zip archive to AWS. If you have never used AWS Lambda
131131
before, [learn how to deploy Lambda function as zip archive manually](https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-zip.html)

0 commit comments

Comments
 (0)