💼 Data pipeline for generating PDFs from HTML files server-rendered using React in AWS Lambda and Puppeteer. Built with AWS CDK + TypeScript.
This is an example data pipeline that illustrates one possible approach for large-scale PDF generation - it should serve as a good foundation to modify for your own purposes.
Getting Started
Run the following commands to install dependencies, build the CDK stack, and deploy the CDK Stack to AWS.
yarn install
yarn build
cdk bootstrap
cdk deploy
yarn install
- installs dependenciesyarn build
- builds the production-ready CDK Stackyarn test
- runs Jestcdk bootstrap
- bootstraps AWS Cloudformation for your CDK deploycdk deploy
- deploys the CDK stack to AWS
Notes
- Includes very basic tests with Jest.
Built with
Additional Resources
- CDK API Reference
- Puppeteer
- Puppeteer Lambda
- CDK TypeScript Reference
- CDK Assertion Package
- awesome-cdk repo
License
Opens source under the MIT License.
Built with ❤️ by aeksco