Commit Graph

299 Commits

Author SHA1 Message Date
Oleg Zhurakousky
ffd4e43d4b GH-716 Add support for returning custom status code
Resolves #716
2021-07-30 12:42:48 +02:00
Oleg Zhurakousky
ce1265d925 Revert "Update SNAPSHOT to 3.2.0-M1"
This reverts commit 4335c0db2e.
2021-07-30 12:41:34 +02:00
Oleg Zhurakousky
05a86958f6 Revert "Going back to snapshots"
This reverts commit d01ddad754.
2021-07-30 12:41:23 +02:00
buildmaster
d01ddad754 Going back to snapshots 2021-07-30 08:15:06 +00:00
buildmaster
4335c0db2e Update SNAPSHOT to 3.2.0-M1 2021-07-30 08:12:01 +00:00
Oleg Zhurakousky
619833092a Improve AWSLambdaUtils 2021-07-28 14:56:07 +02:00
Oleg Zhurakousky
3666bf73f7 GH-709, GH-684, GH-641 Upgrade AWS dependency
Refactor and simplify AWSLambdaUtils to work with AWS serialization libraries
Add support for API v2 gateway event

Resolves #709
Resolves #684
Resolves #641
2021-07-22 18:57:57 +02:00
Oleg Zhurakousky
994896fd8d Fix POMs for 3.2 2021-07-13 16:23:02 +02:00
Oleg Zhurakousky
eddfa97b85 Fix checkstyle 2021-06-11 09:32:00 +02:00
Oleg Zhurakousky
5d1a1cf5b3 GH-706 Fix application context caching for JDK11 class loaders
Resolves #706
2021-06-08 20:36:23 +02:00
buildmaster
1864a09fc4 Bumping versions to 3.1.4-SNAPSHOT after release 2021-05-26 13:50:55 +00:00
buildmaster
40f1c2ad7c Going back to snapshots 2021-05-26 13:50:54 +00:00
buildmaster
af2298caaa Update SNAPSHOT to 3.1.3 2021-05-26 13:46:32 +00:00
Oleg Zhurakousky
7e5eaeeb49 GH-692 Fix reactive support in Azure FunctionInvoker
Resolves #692
2021-05-25 17:25:06 +02:00
Oleg Zhurakousky
c2d0590ec3 GH-698 Fix routing function support in AWS
Introduce auto-fallback to routing function if more then one function is present and no definition is provided.
Add explicit routing sample

Add documentation
2021-05-21 17:04:01 +02:00
Oleg Zhurakousky
c07aa97d15 Ensure user set headers in API Gateway are properly propagated to message headers 2021-05-18 16:33:04 +02:00
Oleg Zhurakousky
25387b83be AWS POM cleanup 2021-05-17 20:05:29 +02:00
Oleg Zhurakousky
95a1d10dba Add tests for AWS CustomRuntimeEventLoop 2021-05-17 20:03:11 +02:00
Oleg Zhurakousky
ea6d15e0aa Change deprecate json mapper property
Resolves #693
2021-05-11 15:51:09 +02:00
dzou
1c87e71aa8 try upgrading sample version
try upgrading sample version of adapter dependency

Restore GSON mapper preference

default to GSON if impl not specified
2021-05-11 15:37:24 +02:00
Oleg Zhurakousky
fc42819357 GH-662 Fix support for reactive functions in AWS
This commit also includes other minor fixes around CustomRuntime which was getting in the way of this specific issue
 Added lookup for _HANDLER env variable
 Added few tests (will need more)
 Added support for Iterable for reactive functions

Resolves #662
2021-04-08 15:57:14 +02:00
Oleg Zhurakousky
cf58cdc700 GH-673 Change the logic to recognize AWS CustomRuntime
Prior to this it was based on existance of AWS_LAMBDA_RUNTIME_API env variable which turned out to be not very reliable since it is present in Java 11 runtime
With this commit it simple ensures that the handler is neither FunctionInvoker nor AbstractSpringFunctionAdapterInitializer

Resolves #673
2021-04-07 16:13:11 +02:00
Oleg Zhurakousky
ba8dd58db6 GH-678 Fix race condition leading to NPE in Azure FunctionInvoker
Resolves #678
2021-04-06 14:02:04 +02:00
Oleg Zhurakousky
721e6a72c8 GH-570 Remove hard dependency on Gson for GCP
Resolves #570
2021-04-06 12:20:39 +02:00
buildmaster
85515c12f9 Bumping versions to 3.1.3-SNAPSHOT after release 2021-03-16 13:20:48 +00:00
buildmaster
6fd1b8d1c4 Going back to snapshots 2021-03-16 13:20:47 +00:00
buildmaster
255c0f67c1 Update SNAPSHOT to 3.1.2 2021-03-16 13:17:55 +00:00
Oleg Zhurakousky
4e42e3631a GH-437 Refactor Azure request handler
This approach simplifies the existing request handlers while also fixing the invocation model to ensure AC is not created multiple times and ExecutionContext is properly propagated via Message headers
The old request handlers are deprecated
Documentation updates as well as tests
Resolves #437
2021-03-15 11:08:36 +01:00
Oleg Zhurakousky
b0ef4522d4 GH-600 Fix logic in Azure adapter to ensure proper handling of sveral functions
This also addresses re-initialization of AC when the second function is invoked
Added second function to the azure examples

Resolves #600
2021-03-11 15:26:06 +01:00
Oleg Zhurakousky
3c5d905eab GH-437 Pass ExecutionContext via MessageHeader
Caching it as part of ApplicationContext was not the right idea so this changes it
2021-03-10 18:53:25 +01:00
pguti778
d8d41cbdcd AWS: Change Default environment values
I've faced the "The key must start with a letter and can only contain letters, numbers, and underscores." issue in the AWS lambda. So both _HANDLER and spring.cloud.function.definition were not enabled to be added as environment variables. Let me know your thoughts.
2021-03-02 22:09:41 -03:00
Oleg Zhurakousky
5485cc33ca GH-639 Fix NPE for when using Supplier with AWS API Gateway
Resolves #639
2021-02-08 10:36:00 +01:00
buildmaster
315ed4612d Bumping versions 2021-02-01 18:56:47 +00:00
buildmaster
06872f573a Bumping versions 2021-01-27 18:56:44 +00:00
buildmaster
043668db4b Bumping versions to 3.1.2-SNAPSHOT after release 2021-01-27 17:16:38 +00:00
buildmaster
0b8d00b1df Going back to snapshots 2021-01-27 17:16:37 +00:00
buildmaster
ea03395bb3 Update SNAPSHOT to 3.1.1 2021-01-27 17:11:29 +00:00
Oleg Zhurakousky
ed99439f0b GH-552 Fix Consumer support in FunctionInvoker
Further refactor FunctionInvoker to utilize functionality of AWSLambdaUtils
Add Consumer test

Resolves #552
2021-01-26 10:41:25 +01:00
Oleg Zhurakousky
75112076f7 GH-630, GH-530 Additional improvements in AWS Custom Runtime
Ensured we have Custom Runtime examples for functional and '@Bean' style
Improve AWSLambdaUtils to ensure it works without APIGatewayProxyRequestEvent on classpath
2021-01-22 12:31:31 +01:00
Oleg Zhurakousky
a1d10f0771 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
Oleg Zhurakousky
b28087d6a3 Revert "Bumping versions"
This reverts commit cbd0bee65f.
2021-01-14 12:36:38 +01:00
buildmaster
cbd0bee65f Bumping versions 2021-01-13 18:56:32 +00:00
Oleg Zhurakousky
5894433ed5 Revert "Bumping versions"
This reverts commit 6a3bde7d64.
2021-01-11 10:44:04 +01:00
buildmaster
6a3bde7d64 Bumping versions 2020-12-21 18:56:08 +00:00
Oleg Zhurakousky
1f1ba66764 Fix snapshot versions 2020-12-21 18:04:32 +01:00
buildmaster
2f933b9b01 Bumping versions to 3.1.1.SNAPSHOT after release 2020-12-21 11:57:51 +00:00
buildmaster
45161d683d Going back to snapshots 2020-12-21 11:57:50 +00:00
buildmaster
3a0ed3941f Update SNAPSHOT to 3.1.0 2020-12-21 11:54:46 +00:00
buildmaster
9e31994901 Going back to snapshots 2020-12-11 13:43:19 +00:00
buildmaster
794d59317a Update SNAPSHOT to 3.1.0-RC1 2020-12-11 13:41:19 +00:00