aws-cost-calculator-cli 1.11.0__py3-none-any.whl → 1.11.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of aws-cost-calculator-cli might be problematic. Click here for more details.
- {aws_cost_calculator_cli-1.11.0.dist-info → aws_cost_calculator_cli-1.11.1.dist-info}/METADATA +1 -1
- {aws_cost_calculator_cli-1.11.0.dist-info → aws_cost_calculator_cli-1.11.1.dist-info}/RECORD +7 -7
- cost_calculator/cli.py +50 -8
- {aws_cost_calculator_cli-1.11.0.dist-info → aws_cost_calculator_cli-1.11.1.dist-info}/WHEEL +0 -0
- {aws_cost_calculator_cli-1.11.0.dist-info → aws_cost_calculator_cli-1.11.1.dist-info}/entry_points.txt +0 -0
- {aws_cost_calculator_cli-1.11.0.dist-info → aws_cost_calculator_cli-1.11.1.dist-info}/licenses/LICENSE +0 -0
- {aws_cost_calculator_cli-1.11.0.dist-info → aws_cost_calculator_cli-1.11.1.dist-info}/top_level.txt +0 -0
{aws_cost_calculator_cli-1.11.0.dist-info → aws_cost_calculator_cli-1.11.1.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: aws-cost-calculator-cli
|
|
3
|
-
Version: 1.11.
|
|
3
|
+
Version: 1.11.1
|
|
4
4
|
Summary: AWS Cost Calculator CLI - Calculate daily and annual AWS costs across multiple accounts
|
|
5
5
|
Home-page: https://github.com/trilogy-group/aws-cost-calculator
|
|
6
6
|
Author: Cost Optimization Team
|
{aws_cost_calculator_cli-1.11.0.dist-info → aws_cost_calculator_cli-1.11.1.dist-info}/RECORD
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
aws_cost_calculator_cli-1.11.
|
|
1
|
+
aws_cost_calculator_cli-1.11.1.dist-info/licenses/LICENSE,sha256=cYtmQZHNGGTXOtg3T7LHDRneleaH0dHXHfxFV3WR50Y,1079
|
|
2
2
|
cost_calculator/__init__.py,sha256=PJeIqvWh5AYJVrJxPPkI4pJnAt37rIjasrNS0I87kaM,52
|
|
3
3
|
cost_calculator/api_client.py,sha256=4ZI2XcGIN3FBeQqb7xOxQ91kCoeM43-rExiOELXoKBQ,2485
|
|
4
|
-
cost_calculator/cli.py,sha256=
|
|
4
|
+
cost_calculator/cli.py,sha256=OudMcAitmJfWgZKxjlHtfXnx2SlKrYh6FzPTkHabJlI,77975
|
|
5
5
|
cost_calculator/cur.py,sha256=QaZ_nyDSw5_cti-h5Ho6eYLbqzY5TWoub24DpyzIiSs,9502
|
|
6
6
|
cost_calculator/drill.py,sha256=hGi-prLgZDvNMMICQc4fl3LenM7YaZ3To_Ei4LKwrdc,10543
|
|
7
7
|
cost_calculator/executor.py,sha256=yZTCUgJc1OpB892O3mq9ZA0Yekc7N-HvaW8xLFyrXjo,8681
|
|
8
8
|
cost_calculator/forensics.py,sha256=uhRo3I_zOeMEaBENHfgq65URga31W0Z4vzS2UN6VmTY,12819
|
|
9
9
|
cost_calculator/monthly.py,sha256=6k9F8S7djhX1wGV3-T1MZP7CvWbbfhSTEaddwCfVu5M,7932
|
|
10
10
|
cost_calculator/trends.py,sha256=k_s4ylBX50sqoiM_fwepi58HW01zz767FMJhQUPDznk,12246
|
|
11
|
-
aws_cost_calculator_cli-1.11.
|
|
12
|
-
aws_cost_calculator_cli-1.11.
|
|
13
|
-
aws_cost_calculator_cli-1.11.
|
|
14
|
-
aws_cost_calculator_cli-1.11.
|
|
15
|
-
aws_cost_calculator_cli-1.11.
|
|
11
|
+
aws_cost_calculator_cli-1.11.1.dist-info/METADATA,sha256=d-AHFprwq0-lD-D3ilWa7IGBxOszOdMqP7nJl5J0gyA,11979
|
|
12
|
+
aws_cost_calculator_cli-1.11.1.dist-info/WHEEL,sha256=Nw36Djuh_5VDukK0H78QzOX-_FQEo6V37m3nkm96gtU,91
|
|
13
|
+
aws_cost_calculator_cli-1.11.1.dist-info/entry_points.txt,sha256=_5Qy4EcHbYVYrdgOu1E48faMHb9fLUl5VJ3djDHuJBo,47
|
|
14
|
+
aws_cost_calculator_cli-1.11.1.dist-info/top_level.txt,sha256=PRwGPPlNqASfyhGHDjSfyl4SXeE7GF3OVTu1tY1Uqyc,16
|
|
15
|
+
aws_cost_calculator_cli-1.11.1.dist-info/RECORD,,
|
cost_calculator/cli.py
CHANGED
|
@@ -1391,10 +1391,22 @@ def find_account_profile(account_id):
|
|
|
1391
1391
|
@click.option('--json', 'output_json', is_flag=True, help='Output as JSON')
|
|
1392
1392
|
def daily(profile, start_date, end_date, days, service, account, sso, output_json):
|
|
1393
1393
|
"""
|
|
1394
|
-
Get daily cost breakdown with granular detail
|
|
1394
|
+
Get daily cost breakdown with granular detail.
|
|
1395
1395
|
|
|
1396
|
-
|
|
1396
|
+
Shows day-by-day costs for specific services and accounts, useful for:
|
|
1397
|
+
- Identifying cost spikes on specific dates
|
|
1398
|
+
- Validating daily cost patterns
|
|
1399
|
+
- Calculating precise daily averages
|
|
1400
|
+
|
|
1401
|
+
Examples:
|
|
1402
|
+
# Last 10 days of CloudWatch costs for specific account
|
|
1397
1403
|
cc daily --profile khoros --days 10 --service AmazonCloudWatch --account 820054669588
|
|
1404
|
+
|
|
1405
|
+
# Custom date range with JSON output for automation
|
|
1406
|
+
cc daily --profile khoros --start-date 2025-10-28 --end-date 2025-11-06 --json
|
|
1407
|
+
|
|
1408
|
+
# Find high-cost days using jq
|
|
1409
|
+
cc daily --profile khoros --days 30 --json | jq '.daily_costs | map(select(.cost > 1000))'
|
|
1398
1410
|
"""
|
|
1399
1411
|
# Load profile
|
|
1400
1412
|
config = load_profile(profile)
|
|
@@ -1545,11 +1557,25 @@ def daily(profile, start_date, end_date, days, service, account, sso, output_jso
|
|
|
1545
1557
|
@click.option('--json', 'output_json', is_flag=True, help='Output as JSON')
|
|
1546
1558
|
def compare(profile, account, service, before, after, expected_reduction, sso, output_json):
|
|
1547
1559
|
"""
|
|
1548
|
-
Compare costs between two periods
|
|
1560
|
+
Compare costs between two periods for validation and analysis.
|
|
1549
1561
|
|
|
1550
|
-
|
|
1562
|
+
Perfect for:
|
|
1563
|
+
- Validating cost optimization savings
|
|
1564
|
+
- Before/after migration analysis
|
|
1565
|
+
- Measuring impact of infrastructure changes
|
|
1566
|
+
- Automated savings validation in CI/CD
|
|
1567
|
+
|
|
1568
|
+
Examples:
|
|
1569
|
+
# Validate Datadog migration savings (expect 50% reduction)
|
|
1551
1570
|
cc compare --profile khoros --account 180770971501 --service AmazonCloudWatch \
|
|
1552
1571
|
--before "2025-10-28:2025-11-06" --after "2025-11-17:2025-11-26" --expected-reduction 50
|
|
1572
|
+
|
|
1573
|
+
# Compare total costs across all accounts
|
|
1574
|
+
cc compare --profile khoros --before "2025-10-01:2025-10-31" --after "2025-11-01:2025-11-30"
|
|
1575
|
+
|
|
1576
|
+
# JSON output for automated validation
|
|
1577
|
+
cc compare --profile khoros --service EC2 --before "2025-10-01:2025-10-07" \
|
|
1578
|
+
--after "2025-11-08:2025-11-14" --json | jq '.comparison.met_expectation'
|
|
1553
1579
|
"""
|
|
1554
1580
|
# Load profile
|
|
1555
1581
|
config = load_profile(profile)
|
|
@@ -1731,11 +1757,27 @@ def compare(profile, account, service, before, after, expected_reduction, sso, o
|
|
|
1731
1757
|
@click.option('--json', 'output_json', is_flag=True, help='Output as JSON')
|
|
1732
1758
|
def tags(profile, tag_key, tag_value, start_date, end_date, days, sso, output_json):
|
|
1733
1759
|
"""
|
|
1734
|
-
Analyze costs by resource tags
|
|
1760
|
+
Analyze costs grouped by resource tags for cost attribution.
|
|
1735
1761
|
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1762
|
+
Useful for:
|
|
1763
|
+
- Cost allocation by team, project, or environment
|
|
1764
|
+
- Identifying untagged resources (cost attribution gaps)
|
|
1765
|
+
- Tracking costs by cost center or department
|
|
1766
|
+
- Validating tagging compliance
|
|
1767
|
+
|
|
1768
|
+
Examples:
|
|
1769
|
+
# See all costs by Environment tag
|
|
1770
|
+
cc tags --profile khoros --tag-key "Environment" --days 30
|
|
1771
|
+
|
|
1772
|
+
# Filter to specific tag value
|
|
1773
|
+
cc tags --profile khoros --tag-key "Team" --tag-value "Platform" --days 30
|
|
1774
|
+
|
|
1775
|
+
# Find top cost centers with JSON output
|
|
1776
|
+
cc tags --profile khoros --tag-key "CostCenter" --days 30 --json | \
|
|
1777
|
+
jq '.tag_costs | sort_by(-.cost) | .[:5]'
|
|
1778
|
+
|
|
1779
|
+
# Identify untagged resources (look for empty tag values)
|
|
1780
|
+
cc tags --profile khoros --tag-key "Owner" --days 7
|
|
1739
1781
|
"""
|
|
1740
1782
|
# Load profile
|
|
1741
1783
|
config = load_profile(profile)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aws_cost_calculator_cli-1.11.0.dist-info → aws_cost_calculator_cli-1.11.1.dist-info}/top_level.txt
RENAMED
|
File without changes
|