{"id":18338254,"url":"https://github.com/boavizta/cloud-bill","last_synced_at":"2026-06-19T01:31:38.616Z","repository":{"id":40244449,"uuid":"493269884","full_name":"Boavizta/cloud-bill","owner":"Boavizta","description":"Estimate environmental impact of your AWS resources by combining an AWS cloud usage report with data from Boavizta API.","archived":false,"fork":false,"pushed_at":"2022-05-20T08:01:02.000Z","size":175,"stargazers_count":3,"open_issues_count":7,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-09T20:21:38.580Z","etag":null,"topics":["aws","boavizta"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Boavizta.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}},"created_at":"2022-05-17T13:45:39.000Z","updated_at":"2023-12-01T15:07:28.000Z","dependencies_parsed_at":"2022-09-04T00:41:20.599Z","dependency_job_id":null,"html_url":"https://github.com/Boavizta/cloud-bill","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Boavizta/cloud-bill","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Boavizta%2Fcloud-bill","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Boavizta%2Fcloud-bill/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Boavizta%2Fcloud-bill/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Boavizta%2Fcloud-bill/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Boavizta","download_url":"https://codeload.github.com/Boavizta/cloud-bill/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Boavizta%2Fcloud-bill/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270060975,"owners_count":24520213,"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-08-12T02:00:09.011Z","response_time":80,"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","boavizta"],"created_at":"2024-11-05T20:13:34.066Z","updated_at":"2026-06-19T01:31:38.275Z","avatar_url":"https://github.com/Boavizta.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cloud-bill\n\nEstimate environmental impact of your AWS resources by combining an AWS cloud usage report with data from Boavizta API.\n\nGeneral idea is to use _cold_ data (csv file) retrieved manually from AWS cold explorer (see https://docs.aws.amazon.com/cost-management/latest/userguide/ce-saving.html).\nIt provides hours of usage for different instances types, and we can use it to query Boa API.\n\n⚠ Warning: _Work In Progress_ code produced during Boavizta Hackaton #4 (https://boavizta.org/en).\n\n![cloud bill in context](docs/cloud-bill-system-in-context.png)\n\n## Usage\n\n```sh\n# Set you aws profile (you may need aws cli install first)\nexport AWS_PROFILE=my-custom-profile-name\ncd src/bills\n# Run the analysis on the provide sample.csv file\npython main.py -i sample.csv\n```\n\n## Source\n\nRelevant source is in `/src/bill` \n\n## Other sample code\n\nThese samples were produced during Boavizta Hackaton #4 (https://boavizta.org/en) and mainly left unmaintained.\n\nWe keep them because they may provide example about how we can query Cloudwath and Boavizta API.\n\n### Query AWS account\n\nSee some examples of querying aws api in `src/sample_code/instance-usage/python print-instance-usage.py`.\n\n## Query account to combine usage with impacts\n\n### Principle\n\n1. Query AWS apis to list all instances of the account and retrieve average CPU utilization\n2. Use theses results to query Boavizta API to get impacts\n\n### Usage\n\nAuthenticate against aws using a specific profile with `export AWS_PROFILE=my-custom-profile-name`.\n\n```bash\ncd src/sample_code/instances-impacts-from-cloudwatch\npython main.py\n```\n\n```bash\ncd src/sample_code/instances-impacts-from-cloudwatch\npython test_main.py\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboavizta%2Fcloud-bill","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboavizta%2Fcloud-bill","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboavizta%2Fcloud-bill/lists"}