{"id":28574342,"url":"https://github.com/tripleee/rss-lambda","last_synced_at":"2025-10-06T09:51:38.500Z","repository":{"id":233101420,"uuid":"785716908","full_name":"tripleee/rss-lambda","owner":"tripleee","description":"Simple AWS lambda to poll an RSS feed using Python","archived":false,"fork":false,"pushed_at":"2024-04-13T12:31:51.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-13T21:15:04.376Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tripleee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-04-12T13:24:54.000Z","updated_at":"2024-04-13T21:15:07.613Z","dependencies_parsed_at":"2024-04-13T21:15:06.873Z","dependency_job_id":"df3e35a2-906f-444f-a62c-5567bde19674","html_url":"https://github.com/tripleee/rss-lambda","commit_stats":null,"previous_names":["tripleee/rss-lambda"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tripleee%2Frss-lambda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tripleee%2Frss-lambda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tripleee%2Frss-lambda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tripleee%2Frss-lambda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tripleee","download_url":"https://codeload.github.com/tripleee/rss-lambda/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tripleee%2Frss-lambda/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259153022,"owners_count":22813264,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-10T21:20:50.456Z","updated_at":"2025-10-06T09:51:38.494Z","avatar_url":"https://github.com/tripleee.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RSS-Lambda\n\nThis is a simple Python lambda function for AWS\nwhich scans an RSS feed and reports any new URLs\nto a separate endpoint on https://ntfy.sh/\nto generate notifications for new content.\nIt also sends a ping to https://healthchecks.io/\nto allow that service to generate a warning if the lambda stops running.\n\nThe infrastructure for running as a lambda was copied from\nhttps://github.com/aws-samples/aws-cdk-examples/tree/main/python/lambda-cron\nand the simple `rss_lambda.py` is a very basic exercise of\nthe [`feedparser`](https://pypi.org/project/feedparser/) API.\nIn order to include the required dependencies (`feedparser` and `requests`)\nI added the experimental\n[`aws-cdk.aws-lambda-python-alpha`][1] package\nand restructured the project to put the lambda code in a subdirectory\n(otherwise `cdk deploy` would pick up its own `cdk.out` directory\nand recurse indefinitely!)\n\n  [1]: https://pypi.org/project/aws-cdk.aws-lambda-python-alpha/\n\nThe deployment script is a Github Action;\nit and its infrastructure are built in accordance with\nhttps://conermurphy.com/blog/automate-aws-cdk-stack-deployment-github-actions\nbut in order for that to work, you initially need to run `cdk bootstrap`\nwith significantly broader permissions\n(in the end, I just used my AWS root account).\n\nI doubt that this will be immediately useful to anybody else,\nbut I hope it can be helful as a template for other simple\nPython lambda functions.\n\nOne of my goals was to make this self-contained and self-documenting,\nbut I had to perform some tasks locally.\n\n* I created the `CDK_Deploy` IAM role manually in accordance with\n  the CDK instructions from the blog.\n* As noted above, `cdk bootstrap` requires significantly broader permissions.\n  I ran the command locally with my main AWS account.\n  (I tried to create a dedicated account with only the specific permissions\n  that are required for this, but I gave up after some hours of bumping into\n  yet more additional permission errors.)\n* The generated lambda will write its logs into CloudWatch\n  and the logs will not have any retention policy.\n  I manually updated the CloudWatch seettings\n  to flush out logs after 3 months.\n\nIn isolation, this should run comfortably within the free tier\naccording to my calculations so far.\nObviously, something which generates a lot of logs on every run\ncould run into CloudWatch quota issues.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftripleee%2Frss-lambda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftripleee%2Frss-lambda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftripleee%2Frss-lambda/lists"}