Skip to content

tobycheng/lectionary-pdf-generator

Repository files navigation

Lectionary PDF Generator

This is a project that fetches weekly Lectionary from disciples.org, uses the scripture references to search from the BibleGateway.com, write the results to a PDF file and finally send the file attached to an e-mail.

AWS Services used:

  • CloudFormation
  • Lambda Function
  • Systems Manager
  • Simple Email Service (SES)
  • EventBridge Cron Schedule

Architecture png

Dependencies

  • AWS account
  • Create email variable at the Systems Manager Parameter Store
  • AWS CDK
  • Poetry

Deploy

with poetry

poetry run cdk deploy

OR with virtual environment activated

cdk deploy

Test

poetry run python -m pytest tests/

OR with virtual environment activated

pytest tests/

Other CDK Useful commands

  • cdk ls list all stacks in the app
  • cdk synth emits the synthesized CloudFormation template
  • cdk deploy deploy this stack to your default AWS account/region
  • cdk diff compare deployed stack with current state
  • cdk docs open CDK documentation

Email Screenshot

Email screenshot

sample_output.pdf

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published