This project is a POC to create a lambda function, that can process Allure Results stored in S3, generate Allure Report of it, and finally saves it back to S3.
The approach in short:
- An S3 bucket is created that
- is set up for website hosting
- stores allure results in
allureResults
in sub-keys per report - stores allure reports in
allureReports
in sub-keys per report
- A Docker Lambda function that
- is based on Node.js Lambda image, with Java and Python installed, together with AWS CLI and Allure Commandline
- expects output as
{"input": "<input prefix>"}
, where the input prefix is either the full key to the result folder or just the sub-key in theallureResults
folder - copies the results to a temporary folder, converts the results to a report with Allure Commandline, then syncs the temporary report to S3
- responds with
{"output": "<output prefix>"}
, with the full output key to the report folder
cdk deploy