https://github.com/ThReinecke/dutch_vocabulary Skip to content Navigation Menu Toggle navigation Sign in * Product + GitHub Copilot Write better code with AI + Security Find and fix vulnerabilities + Actions Automate any workflow + Codespaces Instant dev environments + Issues Plan and track work + Code Review Manage code changes + Discussions Collaborate outside of code + Code Search Find more, search less Explore + All features + Documentation + GitHub Skills + Blog * Solutions By company size + Enterprises + Small and medium teams + Startups By use case + DevSecOps + DevOps + CI/CD + View all use cases By industry + Healthcare + Financial services + Manufacturing + Government + View all industries View all solutions * Resources Topics + AI + DevOps + Security + Software Development + View all Explore + Learning Pathways + White papers, Ebooks, Webinars + Customer Stories + Partners + Executive Insights * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Enterprise + Enterprise platform AI-powered developer platform Available add-ons + Advanced Security Enterprise-grade security features + GitHub Copilot Enterprise-grade AI features + Premium Support Enterprise-grade 24/7 support * Pricing Search or jump to... Search code, repositories, users, issues, pull requests... Search [ ] Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. [ ] [ ] Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Name [ ] Query [ ] To see all available qualifiers, see our documentation. Cancel Create saved search Sign in Sign up Reseting focus You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} ThReinecke / dutch_vocabulary Public * Notifications You must be signed in to change notification settings * Fork 3 * Star 83 Sets up AWS infrastructure to send an automated email each day with three C1-level dutch words, their translations, and examples. 83 stars 3 forks Branches Tags Activity Star Notifications You must be signed in to change notification settings * Code * Issues 1 * Pull requests 0 * Actions * Projects 0 * Security * Insights Additional navigation options * Code * Issues * Pull requests * Actions * Projects * Security * Insights ThReinecke/dutch_vocabulary main BranchesTags [ ] Go to file Code Folders and files Last Last Name Name commit commit message date Latest commit History 12 Commits images images .gitignore .gitignore README.md README.md cloudwatch.tf cloudwatch.tf deployment_package.zip deployment_package.zip dynamodb.tf dynamodb.tf iam.tf iam.tf lambda_function.py lambda_function.py main.tf main.tf setup.sh setup.sh ssm.tf ssm.tf terraform.tfvars.example terraform.tfvars.example variables.tf variables.tf View all files Repository files navigation * README Daily Dutch Vocabulary Email Automation Overview This project automates the daily delivery of an email containing three C1-level Dutch words, their English translations, and example sentences. The email looks like this: Screenshot of email Motivation I created this project because I couldn't find a suitable app to help me build a C1-level Dutch vocabulary. I discovered that ChatGPT provides good word suggestions and decided to automate the process. Additionally, I know that I check emails more consistently than apps, making this method more effective for learning. This project also provided an opportunity to refresh my skills in Terraform and Python. Simplified Architecture A CloudWatch Event Rule triggers a Lambda each morning at 7:00. The Lambda retrieves all previously sent Dutch words from DynamoDB. It then retrieves three new words from ChatGPT, stores them in DynamoDB, and sends them to SES. SES delivers them to the end user's email. Picture of architecture Setup Prerequisites To deploy this project, ensure the following tools and configurations are in place: 1. Tools Installed: + Python (Tested with Python 3.8) + pip (Tested with pip 19.2.3) + Terraform (Tested with Terraform 1.10.3) + AWS CLI (Tested with 2.15.58) 2. Permissions: Your AWS CLI user must have the appropriate permissions to deploy the resources. Refer to the Terraform files and apply the principle of least privilege. 3. Amazon SES Verified Email: You need a verified email address in Amazon SES. This email must match the one used in the project. Reference: Verifying Email Addresses in Amazon SES. 4. Optional: You can zip the Lambda deployment package manually if you like: + Use the provided setup.sh script or follow the steps in the script manually (might need small modifications if on Mac/ Linux) + Alternatively, use the pre-zipped package: deployment_package.zip. Deployment Steps 1. Prepare Configuration: + Copy terraform.tfvars.example to terraform.tfvars. + Fill out the required values in terraform.tfvars. 2. Run the Terraform Workflow: terraform init terraform plan terraform apply Considerations This project was intended as a weekend project, so there is room for improvement. Potential enhancements include: * Refactoring the Python code to be asynchronous for better performance and robustness. * Splitting the lambda_function.py file into smaller modules for better organization and maintainability. However, since the project fulfills its purpose and is unlikely to grow further, I kept the implementation simple. About Sets up AWS infrastructure to send an automated email each day with three C1-level dutch words, their translations, and examples. Resources Readme Activity Stars 83 stars Watchers 1 watching Forks 3 forks Report repository Releases No releases published Packages 0 No packages published Languages * Python 48.5% * HCL 46.5% * Shell 5.0% Footer (c) 2024 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact * Manage cookies * Do not share my personal information You can't perform that action at this time.