aws-cost-calculator-cli 1.8.1__tar.gz → 1.8.3__tar.gz
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.
- {aws_cost_calculator_cli-1.8.1/aws_cost_calculator_cli.egg-info → aws_cost_calculator_cli-1.8.3}/PKG-INFO +1 -1
- {aws_cost_calculator_cli-1.8.1 → aws_cost_calculator_cli-1.8.3/aws_cost_calculator_cli.egg-info}/PKG-INFO +1 -1
- {aws_cost_calculator_cli-1.8.1 → aws_cost_calculator_cli-1.8.3}/cost_calculator/cli.py +3 -3
- {aws_cost_calculator_cli-1.8.1 → aws_cost_calculator_cli-1.8.3}/cost_calculator/forensics.py +2 -1
- {aws_cost_calculator_cli-1.8.1 → aws_cost_calculator_cli-1.8.3}/setup.py +1 -1
- {aws_cost_calculator_cli-1.8.1 → aws_cost_calculator_cli-1.8.3}/CHANGES.md +0 -0
- {aws_cost_calculator_cli-1.8.1 → aws_cost_calculator_cli-1.8.3}/LICENSE +0 -0
- {aws_cost_calculator_cli-1.8.1 → aws_cost_calculator_cli-1.8.3}/MANIFEST.in +0 -0
- {aws_cost_calculator_cli-1.8.1 → aws_cost_calculator_cli-1.8.3}/README.md +0 -0
- {aws_cost_calculator_cli-1.8.1 → aws_cost_calculator_cli-1.8.3}/aws_cost_calculator_cli.egg-info/SOURCES.txt +0 -0
- {aws_cost_calculator_cli-1.8.1 → aws_cost_calculator_cli-1.8.3}/aws_cost_calculator_cli.egg-info/dependency_links.txt +0 -0
- {aws_cost_calculator_cli-1.8.1 → aws_cost_calculator_cli-1.8.3}/aws_cost_calculator_cli.egg-info/entry_points.txt +0 -0
- {aws_cost_calculator_cli-1.8.1 → aws_cost_calculator_cli-1.8.3}/aws_cost_calculator_cli.egg-info/requires.txt +0 -0
- {aws_cost_calculator_cli-1.8.1 → aws_cost_calculator_cli-1.8.3}/aws_cost_calculator_cli.egg-info/top_level.txt +0 -0
- {aws_cost_calculator_cli-1.8.1 → aws_cost_calculator_cli-1.8.3}/cost_calculator/__init__.py +0 -0
- {aws_cost_calculator_cli-1.8.1 → aws_cost_calculator_cli-1.8.3}/cost_calculator/api_client.py +0 -0
- {aws_cost_calculator_cli-1.8.1 → aws_cost_calculator_cli-1.8.3}/cost_calculator/cur.py +0 -0
- {aws_cost_calculator_cli-1.8.1 → aws_cost_calculator_cli-1.8.3}/cost_calculator/drill.py +0 -0
- {aws_cost_calculator_cli-1.8.1 → aws_cost_calculator_cli-1.8.3}/cost_calculator/executor.py +0 -0
- {aws_cost_calculator_cli-1.8.1 → aws_cost_calculator_cli-1.8.3}/cost_calculator/monthly.py +0 -0
- {aws_cost_calculator_cli-1.8.1 → aws_cost_calculator_cli-1.8.3}/cost_calculator/trends.py +0 -0
- {aws_cost_calculator_cli-1.8.1 → aws_cost_calculator_cli-1.8.3}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: aws-cost-calculator-cli
|
|
3
|
-
Version: 1.8.
|
|
3
|
+
Version: 1.8.3
|
|
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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: aws-cost-calculator-cli
|
|
3
|
-
Version: 1.8.
|
|
3
|
+
Version: 1.8.3
|
|
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
|
|
@@ -1152,7 +1152,7 @@ def investigate(profile, sso, weeks, account, service, no_cloudtrail, output):
|
|
|
1152
1152
|
3. Analyze CloudTrail events (optional)
|
|
1153
1153
|
4. Generate comprehensive report
|
|
1154
1154
|
"""
|
|
1155
|
-
from cost_calculator.executor import execute_trends, execute_drill
|
|
1155
|
+
from cost_calculator.executor import execute_trends, execute_drill, get_credentials_dict
|
|
1156
1156
|
from cost_calculator.api_client import call_lambda_api, is_api_configured
|
|
1157
1157
|
from cost_calculator.forensics import format_investigation_report
|
|
1158
1158
|
from datetime import datetime, timedelta
|
|
@@ -1212,8 +1212,8 @@ def investigate(profile, sso, weeks, account, service, no_cloudtrail, output):
|
|
|
1212
1212
|
for acc_id in accounts_to_investigate:
|
|
1213
1213
|
click.echo(f"\n Investigating account {acc_id}...")
|
|
1214
1214
|
|
|
1215
|
-
# Get credentials
|
|
1216
|
-
account_creds = config
|
|
1215
|
+
# Get credentials (SSO or static)
|
|
1216
|
+
account_creds = get_credentials_dict(config)
|
|
1217
1217
|
if not account_creds:
|
|
1218
1218
|
click.echo(f" ⚠️ No credentials available for account")
|
|
1219
1219
|
continue
|
{aws_cost_calculator_cli-1.8.1 → aws_cost_calculator_cli-1.8.3}/cost_calculator/forensics.py
RENAMED
|
@@ -236,7 +236,8 @@ def format_investigation_report(cost_data, inventories, cloudtrail_data=None):
|
|
|
236
236
|
report.append("")
|
|
237
237
|
|
|
238
238
|
for inv in inventories:
|
|
239
|
-
|
|
239
|
+
profile_name = inv.get('profile', inv['account_id'])
|
|
240
|
+
report.append(f"### Account {inv['account_id']} ({profile_name})")
|
|
240
241
|
report.append(f"**Region:** {inv['region']}")
|
|
241
242
|
report.append("")
|
|
242
243
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{aws_cost_calculator_cli-1.8.1 → aws_cost_calculator_cli-1.8.3}/cost_calculator/api_client.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|