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.
Files changed (70) hide show
  1. runbooks/__init__.py +1 -1
  2. runbooks/base.py +5 -1
  3. runbooks/cfat/__init__.py +2 -2
  4. runbooks/cfat/assessment/compliance.py +847 -0
  5. runbooks/finops/__init__.py +1 -1
  6. runbooks/finops/cli.py +63 -1
  7. runbooks/finops/dashboard_runner.py +632 -161
  8. runbooks/finops/helpers.py +492 -61
  9. runbooks/finops/optimizer.py +822 -0
  10. runbooks/inventory/collectors/aws_comprehensive.py +435 -0
  11. runbooks/inventory/discovery.md +1 -1
  12. runbooks/main.py +158 -12
  13. runbooks/operate/__init__.py +2 -2
  14. runbooks/remediation/__init__.py +2 -2
  15. runbooks/remediation/acm_remediation.py +1 -1
  16. runbooks/remediation/base.py +1 -1
  17. runbooks/remediation/cloudtrail_remediation.py +1 -1
  18. runbooks/remediation/cognito_remediation.py +1 -1
  19. runbooks/remediation/dynamodb_remediation.py +1 -1
  20. runbooks/remediation/ec2_remediation.py +1 -1
  21. runbooks/remediation/ec2_unattached_ebs_volumes.py +1 -1
  22. runbooks/remediation/kms_enable_key_rotation.py +1 -1
  23. runbooks/remediation/kms_remediation.py +1 -1
  24. runbooks/remediation/lambda_remediation.py +1 -1
  25. runbooks/remediation/multi_account.py +1 -1
  26. runbooks/remediation/rds_remediation.py +1 -1
  27. runbooks/remediation/requirements.txt +2 -2
  28. runbooks/remediation/s3_block_public_access.py +1 -1
  29. runbooks/remediation/s3_enable_access_logging.py +1 -1
  30. runbooks/remediation/s3_encryption.py +1 -1
  31. runbooks/remediation/s3_remediation.py +1 -1
  32. runbooks/security/__init__.py +1 -1
  33. {runbooks-0.7.5.dist-info → runbooks-0.7.7.dist-info}/METADATA +4 -2
  34. {runbooks-0.7.5.dist-info → runbooks-0.7.7.dist-info}/RECORD +50 -67
  35. {runbooks-0.7.5.dist-info → runbooks-0.7.7.dist-info}/top_level.txt +0 -1
  36. jupyter-agent/.env +0 -2
  37. jupyter-agent/.env.template +0 -2
  38. jupyter-agent/.gitattributes +0 -35
  39. jupyter-agent/.gradio/certificate.pem +0 -31
  40. jupyter-agent/README.md +0 -16
  41. jupyter-agent/__main__.log +0 -8
  42. jupyter-agent/app.py +0 -256
  43. jupyter-agent/cloudops-agent.png +0 -0
  44. jupyter-agent/ds-system-prompt.txt +0 -154
  45. jupyter-agent/jupyter-agent.png +0 -0
  46. jupyter-agent/llama3_template.jinja +0 -123
  47. jupyter-agent/requirements.txt +0 -9
  48. jupyter-agent/tmp/4ojbs8a02ir/jupyter-agent.ipynb +0 -68
  49. jupyter-agent/tmp/cm5iasgpm3p/jupyter-agent.ipynb +0 -91
  50. jupyter-agent/tmp/crqbsseag5/jupyter-agent.ipynb +0 -91
  51. jupyter-agent/tmp/hohanq1u097/jupyter-agent.ipynb +0 -57
  52. jupyter-agent/tmp/jns1sam29wm/jupyter-agent.ipynb +0 -53
  53. jupyter-agent/tmp/jupyter-agent.ipynb +0 -27
  54. jupyter-agent/utils.py +0 -409
  55. runbooks/inventory/aws_organization.png +0 -0
  56. /runbooks/inventory/{tests → Tests}/common_test_data.py +0 -0
  57. /runbooks/inventory/{tests → Tests}/common_test_functions.py +0 -0
  58. /runbooks/inventory/{tests → Tests}/script_test_data.py +0 -0
  59. /runbooks/inventory/{tests → Tests}/setup.py +0 -0
  60. /runbooks/inventory/{tests → Tests}/src.py +0 -0
  61. /runbooks/inventory/{tests/test_inventory_modules.py → Tests/test_Inventory_Modules.py} +0 -0
  62. /runbooks/inventory/{tests → Tests}/test_cfn_describe_stacks.py +0 -0
  63. /runbooks/inventory/{tests → Tests}/test_ec2_describe_instances.py +0 -0
  64. /runbooks/inventory/{tests → Tests}/test_lambda_list_functions.py +0 -0
  65. /runbooks/inventory/{tests → Tests}/test_moto_integration_example.py +0 -0
  66. /runbooks/inventory/{tests → Tests}/test_org_list_accounts.py +0 -0
  67. /runbooks/inventory/{Inventory_Modules.py → inventory_modules.py} +0 -0
  68. {runbooks-0.7.5.dist-info → runbooks-0.7.7.dist-info}/WHEEL +0 -0
  69. {runbooks-0.7.5.dist-info → runbooks-0.7.7.dist-info}/entry_points.txt +0 -0
  70. {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.5"
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
- session_kwargs = {"profile_name": self.profile}
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.5 (Latest with enhanced CLI integration, rust tooling, and modern dependency stack)
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.5"
56
+ __version__ = "0.7.6"
57
57
  __author__ = "CloudOps Runbooks Team"
58
58
 
59
59
  # Public API exports