This project is a simple example how to use spring cloud function.
curl localhost:8080/sayHello -H "Content-Type: text/plain" -d "Miguel"
curl --location --request POST 'localhost:8080/healthCheckConsumer' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": 10,
"name": "Miguel Gomes"
}'
-
Upload to AWSLambda
-
Configure the handler name:
com.example.spring.integration.AWSLambdaHandler
-
Add an environment variable with the name of the function:
sayHello