runbooks 0.7.5__py3-none-any.whl → 0.7.7__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/base.py +5 -1
- runbooks/cfat/__init__.py +2 -2
- runbooks/cfat/assessment/compliance.py +847 -0
- runbooks/finops/__init__.py +1 -1
- runbooks/finops/cli.py +63 -1
- runbooks/finops/dashboard_runner.py +632 -161
- runbooks/finops/helpers.py +492 -61
- runbooks/finops/optimizer.py +822 -0
- runbooks/inventory/collectors/aws_comprehensive.py +435 -0
- runbooks/inventory/discovery.md +1 -1
- runbooks/main.py +158 -12
- runbooks/operate/__init__.py +2 -2
- runbooks/remediation/__init__.py +2 -2
- runbooks/remediation/acm_remediation.py +1 -1
- runbooks/remediation/base.py +1 -1
- runbooks/remediation/cloudtrail_remediation.py +1 -1
- runbooks/remediation/cognito_remediation.py +1 -1
- runbooks/remediation/dynamodb_remediation.py +1 -1
- runbooks/remediation/ec2_remediation.py +1 -1
- runbooks/remediation/ec2_unattached_ebs_volumes.py +1 -1
- runbooks/remediation/kms_enable_key_rotation.py +1 -1
- runbooks/remediation/kms_remediation.py +1 -1
- runbooks/remediation/lambda_remediation.py +1 -1
- runbooks/remediation/multi_account.py +1 -1
- runbooks/remediation/rds_remediation.py +1 -1
- runbooks/remediation/requirements.txt +2 -2
- runbooks/remediation/s3_block_public_access.py +1 -1
- runbooks/remediation/s3_enable_access_logging.py +1 -1
- runbooks/remediation/s3_encryption.py +1 -1
- runbooks/remediation/s3_remediation.py +1 -1
- runbooks/security/__init__.py +1 -1
- {runbooks-0.7.5.dist-info → runbooks-0.7.7.dist-info}/METADATA +4 -2
- {runbooks-0.7.5.dist-info → runbooks-0.7.7.dist-info}/RECORD +50 -67
- {runbooks-0.7.5.dist-info → runbooks-0.7.7.dist-info}/top_level.txt +0 -1
- jupyter-agent/.env +0 -2
- jupyter-agent/.env.template +0 -2
- jupyter-agent/.gitattributes +0 -35
- jupyter-agent/.gradio/certificate.pem +0 -31
- jupyter-agent/README.md +0 -16
- jupyter-agent/__main__.log +0 -8
- jupyter-agent/app.py +0 -256
- jupyter-agent/cloudops-agent.png +0 -0
- jupyter-agent/ds-system-prompt.txt +0 -154
- jupyter-agent/jupyter-agent.png +0 -0
- jupyter-agent/llama3_template.jinja +0 -123
- jupyter-agent/requirements.txt +0 -9
- jupyter-agent/tmp/4ojbs8a02ir/jupyter-agent.ipynb +0 -68
- jupyter-agent/tmp/cm5iasgpm3p/jupyter-agent.ipynb +0 -91
- jupyter-agent/tmp/crqbsseag5/jupyter-agent.ipynb +0 -91
- jupyter-agent/tmp/hohanq1u097/jupyter-agent.ipynb +0 -57
- jupyter-agent/tmp/jns1sam29wm/jupyter-agent.ipynb +0 -53
- jupyter-agent/tmp/jupyter-agent.ipynb +0 -27
- jupyter-agent/utils.py +0 -409
- runbooks/inventory/aws_organization.png +0 -0
- /runbooks/inventory/{tests → Tests}/common_test_data.py +0 -0
- /runbooks/inventory/{tests → Tests}/common_test_functions.py +0 -0
- /runbooks/inventory/{tests → Tests}/script_test_data.py +0 -0
- /runbooks/inventory/{tests → Tests}/setup.py +0 -0
- /runbooks/inventory/{tests → Tests}/src.py +0 -0
- /runbooks/inventory/{tests/test_inventory_modules.py → Tests/test_Inventory_Modules.py} +0 -0
- /runbooks/inventory/{tests → Tests}/test_cfn_describe_stacks.py +0 -0
- /runbooks/inventory/{tests → Tests}/test_ec2_describe_instances.py +0 -0
- /runbooks/inventory/{tests → Tests}/test_lambda_list_functions.py +0 -0
- /runbooks/inventory/{tests → Tests}/test_moto_integration_example.py +0 -0
- /runbooks/inventory/{tests → Tests}/test_org_list_accounts.py +0 -0
- /runbooks/inventory/{Inventory_Modules.py → inventory_modules.py} +0 -0
- {runbooks-0.7.5.dist-info → runbooks-0.7.7.dist-info}/WHEEL +0 -0
- {runbooks-0.7.5.dist-info → runbooks-0.7.7.dist-info}/entry_points.txt +0 -0
- {runbooks-0.7.5.dist-info → runbooks-0.7.7.dist-info}/licenses/LICENSE +0 -0
runbooks/__init__.py
CHANGED
@@ -67,7 +67,7 @@ try:
|
|
67
67
|
__version__ = _pkg_version("runbooks")
|
68
68
|
except Exception:
|
69
69
|
# Fallback if metadata is unavailable during editable installs
|
70
|
-
__version__ = "0.7.
|
70
|
+
__version__ = "0.7.6"
|
71
71
|
|
72
72
|
# Core module exports
|
73
73
|
from runbooks.config import RunbooksConfig, load_config, save_config
|
runbooks/base.py
CHANGED
@@ -5,6 +5,7 @@ This module provides common base classes and utilities used across
|
|
5
5
|
all Cloud Foundations components including CFAT, inventory, and organizations.
|
6
6
|
"""
|
7
7
|
|
8
|
+
import os
|
8
9
|
from abc import ABC, abstractmethod
|
9
10
|
from datetime import datetime
|
10
11
|
from pathlib import Path
|
@@ -86,7 +87,10 @@ class CloudFoundationsBase(ABC):
|
|
86
87
|
|
87
88
|
def _create_session(self) -> boto3.Session:
|
88
89
|
"""Create boto3 session with appropriate configuration."""
|
89
|
-
|
90
|
+
# Use environment variable first, then profile parameter, then default
|
91
|
+
profile = os.environ.get('AWS_PROFILE') or self.profile
|
92
|
+
|
93
|
+
session_kwargs = {"profile_name": profile}
|
90
94
|
if self.region:
|
91
95
|
session_kwargs["region_name"] = self.region
|
92
96
|
|
runbooks/cfat/__init__.py
CHANGED
@@ -34,7 +34,7 @@ Example:
|
|
34
34
|
print(f"Critical Issues: {report.summary.critical_issues}")
|
35
35
|
```
|
36
36
|
|
37
|
-
Version: 0.7.
|
37
|
+
Version: 0.7.6 (Latest with enhanced CLI integration, rust tooling, and modern dependency stack)
|
38
38
|
"""
|
39
39
|
|
40
40
|
# Core assessment engine
|
@@ -53,7 +53,7 @@ from runbooks.cfat.models import (
|
|
53
53
|
from runbooks.cfat.runner import AssessmentRunner
|
54
54
|
|
55
55
|
# Version info
|
56
|
-
__version__ = "0.7.
|
56
|
+
__version__ = "0.7.6"
|
57
57
|
__author__ = "CloudOps Runbooks Team"
|
58
58
|
|
59
59
|
# Public API exports
|