aws-inventory-manager 0.17.0__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.
Files changed (161) hide show
  1. aws_inventory_manager-0.17.0/CLAUDE.md +39 -0
  2. aws_inventory_manager-0.17.0/LICENSE +21 -0
  3. aws_inventory_manager-0.17.0/MANIFEST.in +31 -0
  4. aws_inventory_manager-0.17.0/PKG-INFO +1226 -0
  5. aws_inventory_manager-0.17.0/README.md +1180 -0
  6. aws_inventory_manager-0.17.0/TESTING.md +241 -0
  7. aws_inventory_manager-0.17.0/aws_inventory_manager.egg-info/PKG-INFO +1226 -0
  8. aws_inventory_manager-0.17.0/aws_inventory_manager.egg-info/SOURCES.txt +159 -0
  9. aws_inventory_manager-0.17.0/aws_inventory_manager.egg-info/dependency_links.txt +1 -0
  10. aws_inventory_manager-0.17.0/aws_inventory_manager.egg-info/entry_points.txt +2 -0
  11. aws_inventory_manager-0.17.0/aws_inventory_manager.egg-info/requires.txt +21 -0
  12. aws_inventory_manager-0.17.0/aws_inventory_manager.egg-info/top_level.txt +1 -0
  13. aws_inventory_manager-0.17.0/pyproject.toml +119 -0
  14. aws_inventory_manager-0.17.0/requirements.txt +8 -0
  15. aws_inventory_manager-0.17.0/setup.cfg +4 -0
  16. aws_inventory_manager-0.17.0/src/__init__.py +3 -0
  17. aws_inventory_manager-0.17.0/src/aws/__init__.py +11 -0
  18. aws_inventory_manager-0.17.0/src/aws/client.py +128 -0
  19. aws_inventory_manager-0.17.0/src/aws/credentials.py +191 -0
  20. aws_inventory_manager-0.17.0/src/aws/rate_limiter.py +177 -0
  21. aws_inventory_manager-0.17.0/src/cli/__init__.py +12 -0
  22. aws_inventory_manager-0.17.0/src/cli/config.py +130 -0
  23. aws_inventory_manager-0.17.0/src/cli/main.py +3991 -0
  24. aws_inventory_manager-0.17.0/src/cloudtrail/__init__.py +5 -0
  25. aws_inventory_manager-0.17.0/src/cloudtrail/query.py +585 -0
  26. aws_inventory_manager-0.17.0/src/config_service/__init__.py +21 -0
  27. aws_inventory_manager-0.17.0/src/config_service/collector.py +346 -0
  28. aws_inventory_manager-0.17.0/src/config_service/detector.py +256 -0
  29. aws_inventory_manager-0.17.0/src/config_service/resource_type_mapping.py +328 -0
  30. aws_inventory_manager-0.17.0/src/cost/__init__.py +5 -0
  31. aws_inventory_manager-0.17.0/src/cost/analyzer.py +226 -0
  32. aws_inventory_manager-0.17.0/src/cost/explorer.py +209 -0
  33. aws_inventory_manager-0.17.0/src/cost/reporter.py +237 -0
  34. aws_inventory_manager-0.17.0/src/delta/__init__.py +5 -0
  35. aws_inventory_manager-0.17.0/src/delta/calculator.py +206 -0
  36. aws_inventory_manager-0.17.0/src/delta/differ.py +185 -0
  37. aws_inventory_manager-0.17.0/src/delta/formatters.py +272 -0
  38. aws_inventory_manager-0.17.0/src/delta/models.py +154 -0
  39. aws_inventory_manager-0.17.0/src/delta/reporter.py +234 -0
  40. aws_inventory_manager-0.17.0/src/matching/__init__.py +6 -0
  41. aws_inventory_manager-0.17.0/src/matching/config.py +52 -0
  42. aws_inventory_manager-0.17.0/src/matching/normalizer.py +450 -0
  43. aws_inventory_manager-0.17.0/src/matching/prompts.py +33 -0
  44. aws_inventory_manager-0.17.0/src/models/__init__.py +21 -0
  45. aws_inventory_manager-0.17.0/src/models/config_diff.py +135 -0
  46. aws_inventory_manager-0.17.0/src/models/cost_report.py +87 -0
  47. aws_inventory_manager-0.17.0/src/models/deletion_operation.py +104 -0
  48. aws_inventory_manager-0.17.0/src/models/deletion_record.py +97 -0
  49. aws_inventory_manager-0.17.0/src/models/delta_report.py +122 -0
  50. aws_inventory_manager-0.17.0/src/models/efs_resource.py +80 -0
  51. aws_inventory_manager-0.17.0/src/models/elasticache_resource.py +90 -0
  52. aws_inventory_manager-0.17.0/src/models/group.py +318 -0
  53. aws_inventory_manager-0.17.0/src/models/inventory.py +133 -0
  54. aws_inventory_manager-0.17.0/src/models/protection_rule.py +123 -0
  55. aws_inventory_manager-0.17.0/src/models/report.py +288 -0
  56. aws_inventory_manager-0.17.0/src/models/resource.py +111 -0
  57. aws_inventory_manager-0.17.0/src/models/security_finding.py +102 -0
  58. aws_inventory_manager-0.17.0/src/models/snapshot.py +122 -0
  59. aws_inventory_manager-0.17.0/src/restore/__init__.py +20 -0
  60. aws_inventory_manager-0.17.0/src/restore/audit.py +175 -0
  61. aws_inventory_manager-0.17.0/src/restore/cleaner.py +461 -0
  62. aws_inventory_manager-0.17.0/src/restore/config.py +209 -0
  63. aws_inventory_manager-0.17.0/src/restore/deleter.py +976 -0
  64. aws_inventory_manager-0.17.0/src/restore/dependency.py +254 -0
  65. aws_inventory_manager-0.17.0/src/restore/safety.py +115 -0
  66. aws_inventory_manager-0.17.0/src/security/__init__.py +0 -0
  67. aws_inventory_manager-0.17.0/src/security/checks/__init__.py +0 -0
  68. aws_inventory_manager-0.17.0/src/security/checks/base.py +56 -0
  69. aws_inventory_manager-0.17.0/src/security/checks/ec2_checks.py +88 -0
  70. aws_inventory_manager-0.17.0/src/security/checks/elasticache_checks.py +149 -0
  71. aws_inventory_manager-0.17.0/src/security/checks/iam_checks.py +102 -0
  72. aws_inventory_manager-0.17.0/src/security/checks/rds_checks.py +140 -0
  73. aws_inventory_manager-0.17.0/src/security/checks/s3_checks.py +95 -0
  74. aws_inventory_manager-0.17.0/src/security/checks/secrets_checks.py +96 -0
  75. aws_inventory_manager-0.17.0/src/security/checks/sg_checks.py +142 -0
  76. aws_inventory_manager-0.17.0/src/security/cis_mapper.py +97 -0
  77. aws_inventory_manager-0.17.0/src/security/models.py +53 -0
  78. aws_inventory_manager-0.17.0/src/security/reporter.py +174 -0
  79. aws_inventory_manager-0.17.0/src/security/scanner.py +87 -0
  80. aws_inventory_manager-0.17.0/src/snapshot/__init__.py +6 -0
  81. aws_inventory_manager-0.17.0/src/snapshot/capturer.py +453 -0
  82. aws_inventory_manager-0.17.0/src/snapshot/filter.py +259 -0
  83. aws_inventory_manager-0.17.0/src/snapshot/inventory_storage.py +236 -0
  84. aws_inventory_manager-0.17.0/src/snapshot/report_formatter.py +250 -0
  85. aws_inventory_manager-0.17.0/src/snapshot/reporter.py +189 -0
  86. aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/__init__.py +5 -0
  87. aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/apigateway.py +140 -0
  88. aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/backup.py +136 -0
  89. aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/base.py +81 -0
  90. aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/cloudformation.py +55 -0
  91. aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/cloudwatch.py +109 -0
  92. aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/codebuild.py +69 -0
  93. aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/codepipeline.py +82 -0
  94. aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/dynamodb.py +65 -0
  95. aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/ec2.py +240 -0
  96. aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/ecs.py +215 -0
  97. aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/efs_collector.py +102 -0
  98. aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/eks.py +200 -0
  99. aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/elasticache_collector.py +79 -0
  100. aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/elb.py +126 -0
  101. aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/eventbridge.py +156 -0
  102. aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/glue.py +199 -0
  103. aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/iam.py +188 -0
  104. aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/kms.py +111 -0
  105. aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/lambda_func.py +139 -0
  106. aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/rds.py +109 -0
  107. aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/route53.py +86 -0
  108. aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/s3.py +105 -0
  109. aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/secretsmanager.py +70 -0
  110. aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/sns.py +68 -0
  111. aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/sqs.py +82 -0
  112. aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/ssm.py +160 -0
  113. aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/stepfunctions.py +74 -0
  114. aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/vpcendpoints.py +79 -0
  115. aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/waf.py +159 -0
  116. aws_inventory_manager-0.17.0/src/snapshot/storage.py +351 -0
  117. aws_inventory_manager-0.17.0/src/storage/__init__.py +21 -0
  118. aws_inventory_manager-0.17.0/src/storage/audit_store.py +419 -0
  119. aws_inventory_manager-0.17.0/src/storage/database.py +294 -0
  120. aws_inventory_manager-0.17.0/src/storage/group_store.py +763 -0
  121. aws_inventory_manager-0.17.0/src/storage/inventory_store.py +320 -0
  122. aws_inventory_manager-0.17.0/src/storage/resource_store.py +416 -0
  123. aws_inventory_manager-0.17.0/src/storage/schema.py +339 -0
  124. aws_inventory_manager-0.17.0/src/storage/snapshot_store.py +363 -0
  125. aws_inventory_manager-0.17.0/src/utils/__init__.py +12 -0
  126. aws_inventory_manager-0.17.0/src/utils/export.py +305 -0
  127. aws_inventory_manager-0.17.0/src/utils/hash.py +60 -0
  128. aws_inventory_manager-0.17.0/src/utils/logging.py +63 -0
  129. aws_inventory_manager-0.17.0/src/utils/pagination.py +41 -0
  130. aws_inventory_manager-0.17.0/src/utils/paths.py +51 -0
  131. aws_inventory_manager-0.17.0/src/utils/progress.py +41 -0
  132. aws_inventory_manager-0.17.0/src/utils/unsupported_resources.py +306 -0
  133. aws_inventory_manager-0.17.0/src/web/__init__.py +5 -0
  134. aws_inventory_manager-0.17.0/src/web/app.py +97 -0
  135. aws_inventory_manager-0.17.0/src/web/dependencies.py +69 -0
  136. aws_inventory_manager-0.17.0/src/web/routes/__init__.py +1 -0
  137. aws_inventory_manager-0.17.0/src/web/routes/api/__init__.py +18 -0
  138. aws_inventory_manager-0.17.0/src/web/routes/api/charts.py +156 -0
  139. aws_inventory_manager-0.17.0/src/web/routes/api/cleanup.py +186 -0
  140. aws_inventory_manager-0.17.0/src/web/routes/api/filters.py +253 -0
  141. aws_inventory_manager-0.17.0/src/web/routes/api/groups.py +305 -0
  142. aws_inventory_manager-0.17.0/src/web/routes/api/inventories.py +80 -0
  143. aws_inventory_manager-0.17.0/src/web/routes/api/queries.py +202 -0
  144. aws_inventory_manager-0.17.0/src/web/routes/api/resources.py +379 -0
  145. aws_inventory_manager-0.17.0/src/web/routes/api/snapshots.py +314 -0
  146. aws_inventory_manager-0.17.0/src/web/routes/api/views.py +260 -0
  147. aws_inventory_manager-0.17.0/src/web/routes/pages.py +198 -0
  148. aws_inventory_manager-0.17.0/src/web/services/__init__.py +1 -0
  149. aws_inventory_manager-0.17.0/src/web/templates/base.html +949 -0
  150. aws_inventory_manager-0.17.0/src/web/templates/components/navbar.html +31 -0
  151. aws_inventory_manager-0.17.0/src/web/templates/components/sidebar.html +104 -0
  152. aws_inventory_manager-0.17.0/src/web/templates/pages/audit_logs.html +86 -0
  153. aws_inventory_manager-0.17.0/src/web/templates/pages/cleanup.html +279 -0
  154. aws_inventory_manager-0.17.0/src/web/templates/pages/dashboard.html +227 -0
  155. aws_inventory_manager-0.17.0/src/web/templates/pages/diff.html +175 -0
  156. aws_inventory_manager-0.17.0/src/web/templates/pages/error.html +30 -0
  157. aws_inventory_manager-0.17.0/src/web/templates/pages/groups.html +721 -0
  158. aws_inventory_manager-0.17.0/src/web/templates/pages/queries.html +246 -0
  159. aws_inventory_manager-0.17.0/src/web/templates/pages/resources.html +2254 -0
  160. aws_inventory_manager-0.17.0/src/web/templates/pages/snapshot_detail.html +271 -0
  161. aws_inventory_manager-0.17.0/src/web/templates/pages/snapshots.html +429 -0
@@ -0,0 +1,39 @@
1
+ # aws-baseline Development Guidelines
2
+
3
+ Auto-generated from all feature plans. Last updated: 2025-10-26
4
+
5
+ ## Active Technologies
6
+ - Python 3.8+ (supports 3.8-3.13 per pyproject.toml) + boto3 (AWS SDK), typer (CLI), rich (terminal UI), pyyaml (storage), python-dateutil (timestamps) (002-inventory-management)
7
+ - Local filesystem YAML files (.snapshots/inventories.yaml, .snapshots/snapshots/*.yaml) (002-inventory-management)
8
+ - Python 3.8+ (project requires >=3.8, testing on 3.8-3.13) + Typer 0.9+, Rich 13.0+, PyYAML 6.0+, boto3 1.28+ (003-snapshot-resource-report)
9
+ - YAML files in ~/.snapshots (configurable via AWS_INVENTORY_STORAGE_PATH) (003-snapshot-resource-report)
10
+ - Python 3.8+ (supports 3.8 through 3.13) + boto3>=1.28.0, typer>=0.9.0, rich>=13.0.0, pyyaml>=6.0, python-dateutil>=2.8.0 (001-quick-wins)
11
+ - Local YAML files in ~/.snapshots (existing infrastructure, extended for full config storage) (001-quick-wins)
12
+ - Python 3.8+ (supports 3.8 through 3.13 per project standards) + boto3>=1.28.0 (AWS SDK), typer>=0.9.0 (CLI), rich>=13.0.0 (terminal UI), pyyaml>=6.0 (audit logs) (004-resource-cleanup)
13
+ - Local YAML files in ~/.snapshots (existing infrastructure, add audit-logs/ subdirectory) (004-resource-cleanup)
14
+
15
+ - Python 3.8+ (supports 3.8-3.13 based on project standards) (001-aws-baseline-snapshot)
16
+
17
+ ## Project Structure
18
+
19
+ ```text
20
+ src/
21
+ tests/
22
+ ```
23
+
24
+ ## Commands
25
+
26
+ cd src [ONLY COMMANDS FOR ACTIVE TECHNOLOGIES][ONLY COMMANDS FOR ACTIVE TECHNOLOGIES] pytest [ONLY COMMANDS FOR ACTIVE TECHNOLOGIES][ONLY COMMANDS FOR ACTIVE TECHNOLOGIES] ruff check .
27
+
28
+ ## Code Style
29
+
30
+ Python 3.8+ (supports 3.8-3.13 based on project standards): Follow standard conventions
31
+
32
+ ## Recent Changes
33
+ - 004-resource-cleanup: Added Python 3.8+ (supports 3.8 through 3.13 per project standards) + boto3>=1.28.0 (AWS SDK), typer>=0.9.0 (CLI), rich>=13.0.0 (terminal UI), pyyaml>=6.0 (audit logs)
34
+ - 001-quick-wins: Added Python 3.8+ (supports 3.8 through 3.13) + boto3>=1.28.0, typer>=0.9.0, rich>=13.0.0, pyyaml>=6.0, python-dateutil>=2.8.0
35
+ - 003-snapshot-resource-report: Added Python 3.8+ (project requires >=3.8, testing on 3.8-3.13) + Typer 0.9+, Rich 13.0+, PyYAML 6.0+, boto3 1.28+
36
+
37
+
38
+ <!-- MANUAL ADDITIONS START -->
39
+ <!-- MANUAL ADDITIONS END -->
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 AWS Audit Team
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,31 @@
1
+ # Include essential documentation
2
+ include README.md
3
+ include LICENSE
4
+ include TESTING.md
5
+ include CLAUDE.md
6
+
7
+ # Include configuration files
8
+ include pyproject.toml
9
+ include requirements.txt
10
+
11
+ # Include all Python source files
12
+ recursive-include src *.py
13
+
14
+ # Include web templates and static files
15
+ recursive-include src/web/templates *.html
16
+ recursive-include src/web/static *.css *.js
17
+
18
+ # Exclude test files and build artifacts
19
+ recursive-exclude tests *
20
+ recursive-exclude .github *
21
+ recursive-exclude htmlcov *
22
+ exclude .coverage
23
+ exclude .gitignore
24
+ exclude tasks.py
25
+
26
+ # Exclude spec files (development only)
27
+ recursive-exclude specs *
28
+ recursive-exclude .specify *
29
+
30
+ # Exclude snapshots directory
31
+ recursive-exclude .snapshots *