This is a project that converts a website to PDF using AWS Lambda. The infrastructure is defined using AWS CDK. This uses the Function URL feature of Lambda functions.
cdk deploy
deploy this stack to your default AWS account/regioncdk diff
compare deployed stack with current statecdk synth
emits the synthesized CloudFormation template
Check the CDK deployment output to find the value of WebsiteToPDFStack.websiteToPDFFunctionURL
.
Use the url
query parameter to provide the URL of the website to be converted to PDF.
For example: https://youruniqueid.lambda-url.ca-central-1.on.aws/?url=https://jobinbasani.com/