https://github.com/aeksco/aws-pdf-generator-pipeline
:briefcase: Data pipeline for generating PDFs from HTML files. Built with AWS CDK + TypeScript.
https://github.com/aeksco/aws-pdf-generator-pipeline
aws aws-cdk aws-lambda aws-s3 cdk cloudformation lambda pdf puppeteer react react-dom react-dom-server s3 server-side-rendering serverless typescript
Last synced: 2 months ago
JSON representation
:briefcase: Data pipeline for generating PDFs from HTML files. Built with AWS CDK + TypeScript.
- Host: GitHub
- URL: https://github.com/aeksco/aws-pdf-generator-pipeline
- Owner: aeksco
- License: mit
- Created: 2022-03-20T22:00:36.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-21T00:24:42.000Z (about 3 years ago)
- Last Synced: 2025-02-17T23:35:13.020Z (3 months ago)
- Topics: aws, aws-cdk, aws-lambda, aws-s3, cdk, cloudformation, lambda, pdf, puppeteer, react, react-dom, react-dom-server, s3, server-side-rendering, serverless, typescript
- Language: TypeScript
- Homepage:
- Size: 108 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# aws-pdf-generator-pipeline
:briefcase: 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
```### Scripts
- `yarn install` - installs dependencies
- `yarn build` - builds the production-ready CDK Stack
- `yarn test` - runs Jest
- `cdk bootstrap` - bootstraps AWS Cloudformation for your CDK deploy
- `cdk deploy` - deploys the CDK stack to AWS**Notes**
- Includes very basic tests with Jest.
**Built with**
- [TypeScript](https://www.typescriptlang.org/)
- [Jest](https://jestjs.io)
- [Puppeteer](https://jestjs.io)
- [AWS CDK](https://aws.amazon.com/cdk/)
- [AWS Lambda](https://aws.amazon.com/lambda/)
- [AWS S3](https://aws.amazon.com/s3/)**Additional Resources**
- [CDK API Reference](https://docs.aws.amazon.com/cdk/api/latest/docs/aws-construct-library.html)
- [Puppeteer](https://github.com/puppeteer/puppeteer)
- [Puppeteer Lambda](https://github.com/alixaxel/chrome-aws-lambda)
- [CDK TypeScript Reference](https://docs.aws.amazon.com/cdk/api/latest/typescript/api/index.html)
- [CDK Assertion Package](https://github.com/aws/aws-cdk/tree/master/packages/%40aws-cdk/assert)
- [awesome-cdk repo](https://github.com/eladb/awesome-cdk)**License**
Opens source under the MIT License.
Built with :heart: by [aeksco](https://twitter.com/aeksco)