runbooks 1.0.0__py3-none-any.whl → 1.0.2__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.
- runbooks/__init__.py +1 -1
- runbooks/cfat/WEIGHT_CONFIG_README.md +368 -0
- runbooks/cfat/app.ts +27 -19
- runbooks/cfat/assessment/runner.py +6 -5
- runbooks/cfat/tests/test_weight_configuration.ts +449 -0
- runbooks/cfat/weight_config.ts +574 -0
- runbooks/cloudops/models.py +20 -14
- runbooks/common/__init__.py +26 -9
- runbooks/common/aws_pricing.py +1070 -105
- runbooks/common/aws_pricing_api.py +276 -44
- runbooks/common/date_utils.py +115 -0
- runbooks/common/dry_run_examples.py +587 -0
- runbooks/common/dry_run_framework.py +520 -0
- runbooks/common/enhanced_exception_handler.py +10 -7
- runbooks/common/mcp_cost_explorer_integration.py +5 -4
- runbooks/common/memory_optimization.py +533 -0
- runbooks/common/performance_optimization_engine.py +1153 -0
- runbooks/common/profile_utils.py +86 -118
- runbooks/common/rich_utils.py +3 -3
- runbooks/common/sre_performance_suite.py +574 -0
- runbooks/finops/business_case_config.py +314 -0
- runbooks/finops/cost_processor.py +19 -4
- runbooks/finops/dashboard_runner.py +47 -28
- runbooks/finops/ebs_cost_optimizer.py +1 -1
- runbooks/finops/ebs_optimizer.py +56 -9
- runbooks/finops/embedded_mcp_validator.py +642 -36
- runbooks/finops/enhanced_trend_visualization.py +7 -2
- runbooks/finops/executive_export.py +789 -0
- runbooks/finops/finops_dashboard.py +6 -5
- runbooks/finops/finops_scenarios.py +34 -27
- runbooks/finops/iam_guidance.py +6 -1
- runbooks/finops/nat_gateway_optimizer.py +46 -27
- runbooks/finops/notebook_utils.py +1 -1
- runbooks/finops/schemas.py +73 -58
- runbooks/finops/single_dashboard.py +20 -4
- runbooks/finops/tests/test_integration.py +3 -1
- runbooks/finops/vpc_cleanup_exporter.py +2 -1
- runbooks/finops/vpc_cleanup_optimizer.py +22 -29
- runbooks/inventory/core/collector.py +51 -28
- runbooks/inventory/discovery.md +197 -247
- runbooks/inventory/inventory_modules.py +2 -2
- runbooks/inventory/list_ec2_instances.py +3 -3
- runbooks/inventory/models/account.py +5 -3
- runbooks/inventory/models/inventory.py +1 -1
- runbooks/inventory/models/resource.py +5 -3
- runbooks/inventory/organizations_discovery.py +102 -13
- runbooks/inventory/unified_validation_engine.py +2 -15
- runbooks/main.py +255 -92
- runbooks/operate/base.py +9 -6
- runbooks/operate/deployment_framework.py +5 -4
- runbooks/operate/deployment_validator.py +6 -5
- runbooks/operate/mcp_integration.py +6 -5
- runbooks/operate/networking_cost_heatmap.py +17 -13
- runbooks/operate/vpc_operations.py +82 -13
- runbooks/remediation/base.py +3 -1
- runbooks/remediation/commons.py +5 -5
- runbooks/remediation/commvault_ec2_analysis.py +66 -18
- runbooks/remediation/config/accounts_example.json +31 -0
- runbooks/remediation/multi_account.py +120 -7
- runbooks/remediation/remediation_cli.py +710 -0
- runbooks/remediation/universal_account_discovery.py +377 -0
- runbooks/remediation/workspaces_list.py +2 -2
- runbooks/security/compliance_automation_engine.py +99 -20
- runbooks/security/config/__init__.py +24 -0
- runbooks/security/config/compliance_config.py +255 -0
- runbooks/security/config/compliance_weights_example.json +22 -0
- runbooks/security/config_template_generator.py +500 -0
- runbooks/security/security_cli.py +377 -0
- runbooks/validation/cli.py +8 -7
- runbooks/validation/comprehensive_2way_validator.py +26 -15
- runbooks/validation/mcp_validator.py +62 -8
- runbooks/vpc/config.py +49 -15
- runbooks/vpc/cross_account_session.py +5 -1
- runbooks/vpc/heatmap_engine.py +438 -59
- runbooks/vpc/mcp_no_eni_validator.py +115 -36
- runbooks/vpc/performance_optimized_analyzer.py +546 -0
- runbooks/vpc/runbooks_adapter.py +33 -12
- runbooks/vpc/tests/conftest.py +4 -2
- runbooks/vpc/tests/test_cost_engine.py +3 -1
- {runbooks-1.0.0.dist-info → runbooks-1.0.2.dist-info}/METADATA +1 -1
- {runbooks-1.0.0.dist-info → runbooks-1.0.2.dist-info}/RECORD +85 -79
- runbooks/finops/runbooks.inventory.organizations_discovery.log +0 -0
- runbooks/finops/runbooks.security.report_generator.log +0 -0
- runbooks/finops/runbooks.security.run_script.log +0 -0
- runbooks/finops/runbooks.security.security_export.log +0 -0
- runbooks/finops/tests/results_test_finops_dashboard.xml +0 -1
- runbooks/inventory/artifacts/scale-optimize-status.txt +0 -12
- runbooks/inventory/runbooks.inventory.organizations_discovery.log +0 -0
- runbooks/inventory/runbooks.security.report_generator.log +0 -0
- runbooks/inventory/runbooks.security.run_script.log +0 -0
- runbooks/inventory/runbooks.security.security_export.log +0 -0
- runbooks/vpc/runbooks.inventory.organizations_discovery.log +0 -0
- runbooks/vpc/runbooks.security.report_generator.log +0 -0
- runbooks/vpc/runbooks.security.run_script.log +0 -0
- runbooks/vpc/runbooks.security.security_export.log +0 -0
- {runbooks-1.0.0.dist-info → runbooks-1.0.2.dist-info}/WHEEL +0 -0
- {runbooks-1.0.0.dist-info → runbooks-1.0.2.dist-info}/entry_points.txt +0 -0
- {runbooks-1.0.0.dist-info → runbooks-1.0.2.dist-info}/licenses/LICENSE +0 -0
- {runbooks-1.0.0.dist-info → runbooks-1.0.2.dist-info}/top_level.txt +0 -0
runbooks/common/__init__.py
CHANGED
@@ -1,23 +1,33 @@
|
|
1
1
|
"""
|
2
|
-
CloudOps Runbooks Common Framework -
|
2
|
+
CloudOps Runbooks Common Framework - Universal Foundation
|
3
3
|
|
4
|
-
This module provides the foundational
|
5
|
-
|
6
|
-
280% ROI, and $630K annual value creation.
|
4
|
+
This module provides the foundational universal framework components
|
5
|
+
that work with ANY AWS setup without hardcoded assumptions.
|
7
6
|
|
8
7
|
Components:
|
9
8
|
- rich_utils: Beautiful CLI formatting with CloudOps theme
|
10
|
-
- profile_utils:
|
9
|
+
- profile_utils: Universal AWS profile management (User → AWS_PROFILE → default)
|
10
|
+
- date_utils: Dynamic date generation utilities (No hardcoded dates)
|
11
11
|
- performance_monitor: Enterprise-grade performance benchmarking
|
12
12
|
- context_logger: Context-aware logging for CLI and Jupyter
|
13
13
|
- mcp_integration: Phase 4 MCP Integration Framework (NEW)
|
14
14
|
- cross_module_integration: Phase 4 Cross-Module Data Flow (NEW)
|
15
15
|
- enterprise_audit_integration: Phase 4 Enterprise Audit Framework (NEW)
|
16
16
|
|
17
|
-
Version: 0.
|
17
|
+
Version: 1.0.0 - Universal Compatibility Update
|
18
18
|
"""
|
19
19
|
|
20
20
|
# Rich CLI utilities (CloudOps theme, console, formatting)
|
21
|
+
# Dynamic date utilities (No hardcoded dates)
|
22
|
+
from .date_utils import (
|
23
|
+
get_aws_cli_example_period,
|
24
|
+
get_collection_timestamp,
|
25
|
+
get_current_month_period,
|
26
|
+
get_current_year,
|
27
|
+
get_previous_month_period,
|
28
|
+
get_test_date_period,
|
29
|
+
)
|
30
|
+
|
21
31
|
# Phase 4: Cross-Module Integration (Data Flow Architecture)
|
22
32
|
from .cross_module_integration import (
|
23
33
|
DataFlowContext,
|
@@ -51,12 +61,12 @@ from .performance_monitor import (
|
|
51
61
|
get_performance_benchmark,
|
52
62
|
)
|
53
63
|
|
54
|
-
# Profile management utilities (
|
64
|
+
# Profile management utilities (Universal AWS profile system)
|
55
65
|
from .profile_utils import (
|
56
66
|
create_cost_session,
|
57
67
|
create_management_session,
|
58
68
|
create_operational_session,
|
59
|
-
|
69
|
+
get_current_profile_info,
|
60
70
|
get_profile_for_operation,
|
61
71
|
resolve_profile_for_operation_silent,
|
62
72
|
validate_profile_access,
|
@@ -120,13 +130,20 @@ __all__ = [
|
|
120
130
|
"print_markdown",
|
121
131
|
"confirm_action",
|
122
132
|
"create_columns",
|
133
|
+
# Dynamic date utilities
|
134
|
+
"get_current_year",
|
135
|
+
"get_current_month_period",
|
136
|
+
"get_previous_month_period",
|
137
|
+
"get_test_date_period",
|
138
|
+
"get_aws_cli_example_period",
|
139
|
+
"get_collection_timestamp",
|
123
140
|
# Profile management utilities
|
124
141
|
"get_profile_for_operation",
|
125
142
|
"resolve_profile_for_operation_silent",
|
126
143
|
"create_cost_session",
|
127
144
|
"create_management_session",
|
128
145
|
"create_operational_session",
|
129
|
-
"
|
146
|
+
"get_current_profile_info",
|
130
147
|
"validate_profile_access",
|
131
148
|
# Performance monitoring framework
|
132
149
|
"PerformanceMetrics",
|