This repository contains a simple example of SOAP client on Lambda, optimized for faster startup. The client calls VIES webservice to validate EU VAT numbers
- JDK 11+
- Docker
- AWS CDK installed and configured
You should run the following sequence of commands:
./mvnw install
to initialize dependenciescdk bootstrap
to initialize IaC environmentcdk deploy
to deploy the infrastructure
Deploy will create the following resources:
vies-proxy-11
: Lambda running onAmazon Corretto 11
runtime, ready for SnapStart activationvies-proxy-19
: Lambda running on a slimAmazon Corretto 19
runtime, using a custom Docker image- an ECR repository to push
vies-proxy-19
images vies-proxy-19-custom
: Lambda running on a custom runtime based onAmazon Corretto 19
Lambda SnapStart can be enabled on the vies-proxy-11
function.
To enable it, follow the official instructions