Files
spring-cloud-function/spring-cloud-function-samples/function-sample-aws-custom
Oleg Zhurakousky a7ca985a0e GH-788 Fix aws custom runtime samples
Add spring web dependencies
Resolves #788
2022-01-11 11:42:02 +01:00
..
2022-01-11 11:42:02 +01:00

This sample uses the custom runtime type on AWS lambda using function bean registration style configuration. 
However, changing configuration to @Bean registration is supported as well and shown in `function-sample-aws-custom-bean` 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 is a single function defined in the `com.example.LambdaApplication` - `uppercase` which you would typically 
identified as "Handler", but since it's the only one any value would do, so keeping default "hello.handler" is fine.

You can test it 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.