Files
Oleg Zhurakousky 648c4b165a GH-530, GH-630 Improvements to AWS Custom Runtime
This commit provides initial set of improvements to executing functions in AWS Custom Runtime
- Consistent invocation model for functional as well as @Bean configuration models via new CustomRuntimeEventLoop as well as AWSLambdaUtils
- Clean up classpath to decrease the size of the JAR/ZIP file
- Configuration simplification which no longer requires enabling of function exporter

It also allows user to define functions that rely on AWS types such as APIGatewayProxyRequestEvent

The existing invocation model remains in tact for the time being. Both invocation models are mutually exclusing in theit setup to avoid potential conflict.

Resolves #538
Resolves #630
2021-01-21 22:20:32 +01:00

13 lines
763 B
Plaintext

This sample uses the custom runtime type on AWS lambda using @Bean style configuration.
However, changing configuration to functional bean registration is supported as well and shown in `function-sample-aws-custom` example.
To run the app in AWS choose the "Custom Runtime" runtime type, and upload the
.zip file that gets built on the command line with `mvn package` (look
in `target`).
There are several functions defined in the `com.example.LambdaApplication`, so identify the selected function in "Handler"
You can also use function composition (e.g., `uppercase|reverse`)
You can test any function in this example with any String as input, but the Lambda UI only allows valid JSON as
test data, so you will have to escape the input with double quotes.