This module is internal and meant to be used for end-to-end (E2E) testing of Powertools for AWS Lambda (Java).
Prerequisites:
- An AWS account is needed as well as a local environment able to reach this account (credentials).
- Java 11+
- Docker
- CDK
Before executing the tests in a new AWS account, bootstrap CDK using the following command:
cdk bootstrap aws://<ACCOUNTID>/<REGION>
To execute the E2E tests, use the following command:
export JAVA_VERSION=11 && mvn clean verify -Pe2e
This module leverages the following components:
- AWS CDK to define the infrastructure and synthesize a CloudFormation template and the assets (lambda function packages)
- The AWS S3 SDK to push the assets on S3
- The AWS CloudFormation SDK to deploy the template