{"id":20693141,"url":"https://github.com/jeshan/aws-bills-to-telegram","last_synced_at":"2025-10-11T21:39:05.196Z","repository":{"id":53533099,"uuid":"182567391","full_name":"jeshan/aws-bills-to-telegram","owner":"jeshan","description":"Sends a summary of your AWS bill(s) to Telegram","archived":false,"fork":false,"pushed_at":"2021-03-25T22:43:33.000Z","size":1108,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-08T18:24:24.391Z","etag":null,"topics":["aws-billing","cloudformation","sceptre","telegram-bot"],"latest_commit_sha":null,"homepage":null,"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}},"created_at":"2019-04-21T18:15:51.000Z","updated_at":"2022-07-06T06:53:56.000Z","dependencies_parsed_at":"2022-09-21T01:41:58.335Z","dependency_job_id":null,"html_url":"https://github.com/jeshan/aws-bills-to-telegram","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jeshan/aws-bills-to-telegram","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeshan%2Faws-bills-to-telegram","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeshan%2Faws-bills-to-telegram/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeshan%2Faws-bills-to-telegram/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeshan%2Faws-bills-to-telegram/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeshan","download_url":"https://codeload.github.com/jeshan/aws-bills-to-telegram/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeshan%2Faws-bills-to-telegram/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279008836,"owners_count":26084517,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"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-billing","cloudformation","sceptre","telegram-bot"],"created_at":"2024-11-16T23:25:31.791Z","updated_at":"2025-10-11T21:39:05.168Z","avatar_url":"https://github.com/jeshan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aws-bills-to-telegram\n\nRegularly sends you your current balance for your various AWS accounts to a (private) Telegram group.\n\n![Demo](https://raw.githubusercontent.com/jeshan/aws-bills-to-telegram/master/screenshot.png)\n\n\n## Deploying via the Serverless Repo\nEnter a Telegram bot token and a chat ID (group ID or your own user).\nAlso, set IntervalHours to determine interval at which the notifications are sent.\n\n## Deploying via sceptre\n\nIf needed, you can create a virtual env with `pipenv install`\n\nThe build process generates boilerplate configuration with `python generate-config.py`.\n\nDeploy this in all accounts in one go with:\n\n`sceptre launch -y app`\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=aws-bills-to-telegram-deployment-pipeline\u0026templateURL=https://s3.amazonaws.com/jeshan-oss-public-files/aws-bills-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 /bills-to-telegram/chat-id --type String --value $YOUR_CHAT_ID --region us-east-1\nsceptre launch -y app\n``` \n\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\nTo generate sceptre configuration for a private environment, you can run something like:\n`python generate-config.py production`\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\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%2Faws-bills-to-telegram","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeshan%2Faws-bills-to-telegram","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeshan%2Faws-bills-to-telegram/lists"}