{"id":20693133,"url":"https://github.com/jeshan/cfn-failures-to-telegram","last_synced_at":"2025-07-06T13:04:50.841Z","repository":{"id":77853333,"uuid":"182454999","full_name":"jeshan/cfn-failures-to-telegram","owner":"jeshan","description":"Send cloudformation failure events to Telegram","archived":false,"fork":false,"pushed_at":"2020-07-29T18:46:21.000Z","size":1292,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-01T19:08:41.190Z","etag":null,"topics":["cloudformation","sceptre","telegram","telegram-bot"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jeshan.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,"publiccode":null,"codemeta":null}},"created_at":"2019-04-20T21:14:46.000Z","updated_at":"2020-07-29T18:46:24.000Z","dependencies_parsed_at":"2023-05-02T07:47:00.561Z","dependency_job_id":null,"html_url":"https://github.com/jeshan/cfn-failures-to-telegram","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jeshan/cfn-failures-to-telegram","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeshan%2Fcfn-failures-to-telegram","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeshan%2Fcfn-failures-to-telegram/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeshan%2Fcfn-failures-to-telegram/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeshan%2Fcfn-failures-to-telegram/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeshan","download_url":"https://codeload.github.com/jeshan/cfn-failures-to-telegram/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeshan%2Fcfn-failures-to-telegram/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263905740,"owners_count":23527971,"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":["cloudformation","sceptre","telegram","telegram-bot"],"created_at":"2024-11-16T23:25:29.628Z","updated_at":"2025-07-06T13:04:50.822Z","avatar_url":"https://github.com/jeshan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cfn-failures-to-telegram\n\nInstantly notifies you of cloudformation failures (i.e create failed, rollbacks, etc) in a Telegram group. (prereq: deploy [this template first](https://github.com/jeshan/cfn-stack-notifications) to ensure your stacks are sending their events to SNS)\n\n![Demo](screenshot.png)\n\nIf needed, you can create a virtual env with `pipenv install`\n\nThis includes a deployment pipeline on AWS. Or deploy the pipeline manually with this button: \n\n\u003ca href=\"https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/new?stackName=cfn-failures-to-telegram-deployment-pipeline\u0026templateURL=https://s3.amazonaws.com/jeshan-oss-public-files/cfn-failures-to-telegram-deployment-pipeline-template.yaml\"\u003e\n\u003cimg src=\"https://s3.amazonaws.com/cloudformation-examples/cloudformation-launch-stack.png\"/\u003e\n\u003c/a\u003e\n\n\nYou will need a telegram bot token and a telegram group (chat) id. Define them in us-east-1 as follows:\n\n```bash\naws ssm put-parameter --name bot-token --type SecureString --value $YOUR_TOKEN --region us-east-1 \naws ssm put-parameter --name /cfn-failures-to-telegram/chat-id --type String --value $YOUR_CHAT_ID --region us-east-1\nsceptre launch -y app\n``` \n\n## Infrastructure\nThis is what will get deployed:\n\n![](/diagram-app.png)\n\n![](/diagram-base.png)\n\n![](/diagram-deployment.png)\n\n*Images automatically generated with [cfnbuddy](https://www.cfnbuddy.com)*\n\n# Adding private sceptre configuration\nThe build process also generates boilerplate configuration with `python generate-config.py`.\n\nYou have the ability to provide sceptre with the necessary configuration and credentials that you will want to keep private.\nRead the buildspec for this, in particular:\n`aws s3 sync s3://${PRIVATE_BUCKET}/github.com/$REPO/master .`\n\nTo generate sceptre configuration for a private environment, you can run something like:\n`python generate-config.py production`\n\n\n\nYou can place your private sceptre configuration at that location in a private bucket and they will be pulled on build.\nThere's a script available to send these files to S3: Edit your private bucket in `upload-private-config.sh` and run it.\nYou need to create the role so that your deployment pipeline has permissions to deploy. run `python put-target-deployment-roles.py`\nAdd the target account number in `config/app/${ENV}/config.yaml`.\nThen, run the pipeline. That's all what's needed for sceptre to work.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeshan%2Fcfn-failures-to-telegram","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeshan%2Fcfn-failures-to-telegram","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeshan%2Fcfn-failures-to-telegram/lists"}