{"id":25531234,"url":"https://github.com/guessi/aws-cost-explorer-report","last_synced_at":"2025-08-30T20:15:40.945Z","repository":{"id":142034921,"uuid":"275538436","full_name":"guessi/aws-cost-explorer-report","owner":"guessi","description":"AWS Cost Explorer Pretty Report written in Python","archived":false,"fork":false,"pushed_at":"2025-04-26T17:51:10.000Z","size":39,"stargazers_count":9,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-17T04:33:24.091Z","etag":null,"topics":["aws","cost-explorer","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","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/guessi.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,"zenodo":null}},"created_at":"2020-06-28T08:13:11.000Z","updated_at":"2025-05-30T00:42:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"b2d49344-d09f-430b-aaa9-1fa438396d1f","html_url":"https://github.com/guessi/aws-cost-explorer-report","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/guessi/aws-cost-explorer-report","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guessi%2Faws-cost-explorer-report","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guessi%2Faws-cost-explorer-report/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guessi%2Faws-cost-explorer-report/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guessi%2Faws-cost-explorer-report/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/guessi","download_url":"https://codeload.github.com/guessi/aws-cost-explorer-report/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/guessi%2Faws-cost-explorer-report/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272900166,"owners_count":25012034,"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-30T02:00:09.474Z","response_time":77,"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","cost-explorer","python3"],"created_at":"2025-02-20T00:47:52.356Z","updated_at":"2025-08-30T20:15:40.922Z","avatar_url":"https://github.com/guessi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS Cost Explorer Pretty Report written in Python\n\n## Prerequisites\n\n- Python 3.10 (or later)\n\n\n## Setup Requirements\n\n```bash\n$ pipenv install\n```\n\nor\n\n```bash\n$ pip3 install -r requirements.txt\n```\n\n## Usage\n\n```bash\n$ ./aws-cost-explorer-report.py --help\n\nUsage: aws-cost-explorer-report.py [OPTIONS]\n\nOptions:\n  -P, --profile TEXT  profile name\n  -S, --start TEXT    start date (default: 1st date of current month)\n  -E, --end TEXT      end date (default: last date of current month)\n  --help              Show this message and exit.\n```\n\n## Examples\n\ncheck cost explorer report of date range [2024-01-01,2024-01-31]\n\n```bash\n$ ./aws-cost-explorer-report.py -P my-profile -S 2024-01-01 -E 2024-01-31\n\n+-----------------+---------------+----------------------------------------+------------+\n| TimePeriodStart | LinkedAccount | Service                                |     Amount |\n+-----------------+---------------+----------------------------------------+------------+\n| 2024-01-01      | 123456789012  | AWS Key Management Service             |    1.39938 |\n| 2024-01-01      | 123456789012  | AWS Lambda                             |    3.00102 |\n| 2024-01-01      | 123456789012  | EC2 - Other                            |   11.48211 |\n| 2024-01-01      | 123456789012  | Amazon Elastic Compute Cloud - Compute |  102.41709 |\n| 2024-01-01      | 123456789012  | Amazon Elastic Load Balancing          |   17.73890 |\n| 2024-01-01      | 123456789012  | Amazon Route 53                        |    1.32980 |\n| 2024-01-01      | 123456789012  | Amazon Simple Notification Service     |    2.32891 |\n| 2024-01-01      | 123456789012  | Amazon Simple Storage Service          |    3.34789 |\n| 2024-01-01      | 123456789012  | AmazonCloudWatch                       |   10.32789 |\n| 2024-01-01      | 123456789012  | AWS Key Management Service             |    3.97408 |\n| 2024-01-01      | 123456789012  | AWS Lambda                             |   23.44120 |\n| 2024-01-01      | 123456789012  | EC2 - Other                            |   12.30661 |\n| 2024-01-01      | 123456789012  | Amazon Elastic Compute Cloud - Compute |  127.45739 |\n| 2024-01-01      | 123456789012  | Amazon Elastic Load Balancing          |   18.15638 |\n| 2024-01-01      | 123456789012  | Amazon Route 53                        |    1.32456 |\n| 2024-01-01      | 123456789012  | Amazon Simple Notification Service     |    2.00011 |\n| 2024-01-01      | 123456789012  | Amazon Simple Storage Service          |    3.63218 |\n| 2024-01-01      | 123456789012  | AmazonCloudWatch                       |   10.06860 |\n+-----------------+---------------+----------------------------------------+------------+\n```\n\n## Equivalent command with `awscli`\n\ncheck cost explorer report of date range [2024-01-01,2024-01-31]\n\n```bash\n$ aws --profile my-profile \\\n    ce get-cost-and-usage \\\n      --time-period \"Start=2024-01-01,End=2024-01-31\" \\\n      --granularity \"MONTHLY\" \\\n      --metrics \"UnblendedCost\" \\\n      --group-by \"Type=DIMENSION,Key=LINKED_ACCOUNT\" \\\n      --group-by \"Type=DIMENSION,Key=SERVICE\" \\\n      --output json\n```\n\n# License\n\n[MIT LICENSE](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguessi%2Faws-cost-explorer-report","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguessi%2Faws-cost-explorer-report","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguessi%2Faws-cost-explorer-report/lists"}