{"id":22107669,"url":"https://github.com/madh93/cann","last_synced_at":"2026-04-11T04:33:01.719Z","repository":{"id":85387361,"uuid":"349860094","full_name":"Madh93/cann","owner":"Madh93","description":"🇮🇨 🧑‍🏫 Substitute teachers announcements of Government of the Canary Islands ","archived":false,"fork":false,"pushed_at":"2023-01-18T21:50:11.000Z","size":143,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-07T06:36:10.929Z","etag":null,"topics":["aws","canarias","go","golang","notifications","pet-project","serverless","telegram","terraform"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Madh93.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"publiccode":null,"codemeta":null}},"created_at":"2021-03-20T23:51:30.000Z","updated_at":"2025-08-02T05:31:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"4ba0547f-d020-4733-9e75-20f8d193a259","html_url":"https://github.com/Madh93/cann","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Madh93/cann","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Madh93%2Fcann","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Madh93%2Fcann/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Madh93%2Fcann/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Madh93%2Fcann/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Madh93","download_url":"https://codeload.github.com/Madh93/cann/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Madh93%2Fcann/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31669115,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T17:19:37.612Z","status":"online","status_checked_at":"2026-04-11T02:00:05.776Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["aws","canarias","go","golang","notifications","pet-project","serverless","telegram","terraform"],"created_at":"2024-12-01T08:18:43.690Z","updated_at":"2026-04-11T04:33:01.410Z","avatar_url":"https://github.com/Madh93.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cann\n\nServerless app to check the daily [substitute teachers announcements](https://www.gobiernodecanarias.org/educacion/web/personal/docente/oferta/interinos-sustitutos/nombramientos_diarios/) of Government of the Canary Islands. When a new announcement is published, a notification is sent to Telegram.\n\n## Requirements\n\n- [Go](https://golang.org)\n- [Terraform](https://www.terraform.io)\n\n## Architecture\n\n![Diagram](docs/img/cann-architecture.png)\n\n## How it works\n\nA scheduled event executed at regular intervals triggers a Lambda function that\nchecks if there is a new announcement. When a new announcement is published, the\nURL is stored in a DynamoDB table that triggers a second lambda which publish in a\nSNS Topic. Finally a Lambda subscribed to the topic notifies to a Telegram channel.\n\n- **CloudWatch Events:** cron scheduled triggers\n- **DynamoDB:** store the state\n- **SNS:** fan-out notifications\n- **Parameter Store:** Telegram auth token\n- **Lambdas:**\n  - [check_announcement](lambda/check_announcement/main.go)\n  - [send_notification](lambda/send_notification/main.go)\n  - [send_telegram_notification](lambda/send_telegram_notification/main.go)\n\n\n## Motivation\n\nThis is just a pet project to play with Go, Terraform and Serverless architecture. This solution can be replaced by a [simple bash script](https://github.com/Madh93/dockerfiles/blob/master/nombramiento-maestros/nombramiento-maestros.sh) executed by a cron job running on a server 24/7, however the biggest attractive of this solution it is an almost zero cost solution thanks to the [AWS Free Tier](https://aws.amazon.com/free).\n\n## Current integrations\n\n| Name | Telegram |\n|---|---|\n| Maestros de S/C Tenerife | https://t.me/nombramientos_maestros_tfe |\n| Maestros de Las Palmas | https://t.me/nombramientos_maestros_lp |\n| Profesores de ambas | https://t.me/nombramientos_profesores |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadh93%2Fcann","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmadh93%2Fcann","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadh93%2Fcann/lists"}