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.
- aws_inventory_manager-0.17.0/CLAUDE.md +39 -0
- aws_inventory_manager-0.17.0/LICENSE +21 -0
- aws_inventory_manager-0.17.0/MANIFEST.in +31 -0
- aws_inventory_manager-0.17.0/PKG-INFO +1226 -0
- aws_inventory_manager-0.17.0/README.md +1180 -0
- aws_inventory_manager-0.17.0/TESTING.md +241 -0
- aws_inventory_manager-0.17.0/aws_inventory_manager.egg-info/PKG-INFO +1226 -0
- aws_inventory_manager-0.17.0/aws_inventory_manager.egg-info/SOURCES.txt +159 -0
- aws_inventory_manager-0.17.0/aws_inventory_manager.egg-info/dependency_links.txt +1 -0
- aws_inventory_manager-0.17.0/aws_inventory_manager.egg-info/entry_points.txt +2 -0
- aws_inventory_manager-0.17.0/aws_inventory_manager.egg-info/requires.txt +21 -0
- aws_inventory_manager-0.17.0/aws_inventory_manager.egg-info/top_level.txt +1 -0
- aws_inventory_manager-0.17.0/pyproject.toml +119 -0
- aws_inventory_manager-0.17.0/requirements.txt +8 -0
- aws_inventory_manager-0.17.0/setup.cfg +4 -0
- aws_inventory_manager-0.17.0/src/__init__.py +3 -0
- aws_inventory_manager-0.17.0/src/aws/__init__.py +11 -0
- aws_inventory_manager-0.17.0/src/aws/client.py +128 -0
- aws_inventory_manager-0.17.0/src/aws/credentials.py +191 -0
- aws_inventory_manager-0.17.0/src/aws/rate_limiter.py +177 -0
- aws_inventory_manager-0.17.0/src/cli/__init__.py +12 -0
- aws_inventory_manager-0.17.0/src/cli/config.py +130 -0
- aws_inventory_manager-0.17.0/src/cli/main.py +3991 -0
- aws_inventory_manager-0.17.0/src/cloudtrail/__init__.py +5 -0
- aws_inventory_manager-0.17.0/src/cloudtrail/query.py +585 -0
- aws_inventory_manager-0.17.0/src/config_service/__init__.py +21 -0
- aws_inventory_manager-0.17.0/src/config_service/collector.py +346 -0
- aws_inventory_manager-0.17.0/src/config_service/detector.py +256 -0
- aws_inventory_manager-0.17.0/src/config_service/resource_type_mapping.py +328 -0
- aws_inventory_manager-0.17.0/src/cost/__init__.py +5 -0
- aws_inventory_manager-0.17.0/src/cost/analyzer.py +226 -0
- aws_inventory_manager-0.17.0/src/cost/explorer.py +209 -0
- aws_inventory_manager-0.17.0/src/cost/reporter.py +237 -0
- aws_inventory_manager-0.17.0/src/delta/__init__.py +5 -0
- aws_inventory_manager-0.17.0/src/delta/calculator.py +206 -0
- aws_inventory_manager-0.17.0/src/delta/differ.py +185 -0
- aws_inventory_manager-0.17.0/src/delta/formatters.py +272 -0
- aws_inventory_manager-0.17.0/src/delta/models.py +154 -0
- aws_inventory_manager-0.17.0/src/delta/reporter.py +234 -0
- aws_inventory_manager-0.17.0/src/matching/__init__.py +6 -0
- aws_inventory_manager-0.17.0/src/matching/config.py +52 -0
- aws_inventory_manager-0.17.0/src/matching/normalizer.py +450 -0
- aws_inventory_manager-0.17.0/src/matching/prompts.py +33 -0
- aws_inventory_manager-0.17.0/src/models/__init__.py +21 -0
- aws_inventory_manager-0.17.0/src/models/config_diff.py +135 -0
- aws_inventory_manager-0.17.0/src/models/cost_report.py +87 -0
- aws_inventory_manager-0.17.0/src/models/deletion_operation.py +104 -0
- aws_inventory_manager-0.17.0/src/models/deletion_record.py +97 -0
- aws_inventory_manager-0.17.0/src/models/delta_report.py +122 -0
- aws_inventory_manager-0.17.0/src/models/efs_resource.py +80 -0
- aws_inventory_manager-0.17.0/src/models/elasticache_resource.py +90 -0
- aws_inventory_manager-0.17.0/src/models/group.py +318 -0
- aws_inventory_manager-0.17.0/src/models/inventory.py +133 -0
- aws_inventory_manager-0.17.0/src/models/protection_rule.py +123 -0
- aws_inventory_manager-0.17.0/src/models/report.py +288 -0
- aws_inventory_manager-0.17.0/src/models/resource.py +111 -0
- aws_inventory_manager-0.17.0/src/models/security_finding.py +102 -0
- aws_inventory_manager-0.17.0/src/models/snapshot.py +122 -0
- aws_inventory_manager-0.17.0/src/restore/__init__.py +20 -0
- aws_inventory_manager-0.17.0/src/restore/audit.py +175 -0
- aws_inventory_manager-0.17.0/src/restore/cleaner.py +461 -0
- aws_inventory_manager-0.17.0/src/restore/config.py +209 -0
- aws_inventory_manager-0.17.0/src/restore/deleter.py +976 -0
- aws_inventory_manager-0.17.0/src/restore/dependency.py +254 -0
- aws_inventory_manager-0.17.0/src/restore/safety.py +115 -0
- aws_inventory_manager-0.17.0/src/security/__init__.py +0 -0
- aws_inventory_manager-0.17.0/src/security/checks/__init__.py +0 -0
- aws_inventory_manager-0.17.0/src/security/checks/base.py +56 -0
- aws_inventory_manager-0.17.0/src/security/checks/ec2_checks.py +88 -0
- aws_inventory_manager-0.17.0/src/security/checks/elasticache_checks.py +149 -0
- aws_inventory_manager-0.17.0/src/security/checks/iam_checks.py +102 -0
- aws_inventory_manager-0.17.0/src/security/checks/rds_checks.py +140 -0
- aws_inventory_manager-0.17.0/src/security/checks/s3_checks.py +95 -0
- aws_inventory_manager-0.17.0/src/security/checks/secrets_checks.py +96 -0
- aws_inventory_manager-0.17.0/src/security/checks/sg_checks.py +142 -0
- aws_inventory_manager-0.17.0/src/security/cis_mapper.py +97 -0
- aws_inventory_manager-0.17.0/src/security/models.py +53 -0
- aws_inventory_manager-0.17.0/src/security/reporter.py +174 -0
- aws_inventory_manager-0.17.0/src/security/scanner.py +87 -0
- aws_inventory_manager-0.17.0/src/snapshot/__init__.py +6 -0
- aws_inventory_manager-0.17.0/src/snapshot/capturer.py +453 -0
- aws_inventory_manager-0.17.0/src/snapshot/filter.py +259 -0
- aws_inventory_manager-0.17.0/src/snapshot/inventory_storage.py +236 -0
- aws_inventory_manager-0.17.0/src/snapshot/report_formatter.py +250 -0
- aws_inventory_manager-0.17.0/src/snapshot/reporter.py +189 -0
- aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/__init__.py +5 -0
- aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/apigateway.py +140 -0
- aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/backup.py +136 -0
- aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/base.py +81 -0
- aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/cloudformation.py +55 -0
- aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/cloudwatch.py +109 -0
- aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/codebuild.py +69 -0
- aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/codepipeline.py +82 -0
- aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/dynamodb.py +65 -0
- aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/ec2.py +240 -0
- aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/ecs.py +215 -0
- aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/efs_collector.py +102 -0
- aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/eks.py +200 -0
- aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/elasticache_collector.py +79 -0
- aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/elb.py +126 -0
- aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/eventbridge.py +156 -0
- aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/glue.py +199 -0
- aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/iam.py +188 -0
- aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/kms.py +111 -0
- aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/lambda_func.py +139 -0
- aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/rds.py +109 -0
- aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/route53.py +86 -0
- aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/s3.py +105 -0
- aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/secretsmanager.py +70 -0
- aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/sns.py +68 -0
- aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/sqs.py +82 -0
- aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/ssm.py +160 -0
- aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/stepfunctions.py +74 -0
- aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/vpcendpoints.py +79 -0
- aws_inventory_manager-0.17.0/src/snapshot/resource_collectors/waf.py +159 -0
- aws_inventory_manager-0.17.0/src/snapshot/storage.py +351 -0
- aws_inventory_manager-0.17.0/src/storage/__init__.py +21 -0
- aws_inventory_manager-0.17.0/src/storage/audit_store.py +419 -0
- aws_inventory_manager-0.17.0/src/storage/database.py +294 -0
- aws_inventory_manager-0.17.0/src/storage/group_store.py +763 -0
- aws_inventory_manager-0.17.0/src/storage/inventory_store.py +320 -0
- aws_inventory_manager-0.17.0/src/storage/resource_store.py +416 -0
- aws_inventory_manager-0.17.0/src/storage/schema.py +339 -0
- aws_inventory_manager-0.17.0/src/storage/snapshot_store.py +363 -0
- aws_inventory_manager-0.17.0/src/utils/__init__.py +12 -0
- aws_inventory_manager-0.17.0/src/utils/export.py +305 -0
- aws_inventory_manager-0.17.0/src/utils/hash.py +60 -0
- aws_inventory_manager-0.17.0/src/utils/logging.py +63 -0
- aws_inventory_manager-0.17.0/src/utils/pagination.py +41 -0
- aws_inventory_manager-0.17.0/src/utils/paths.py +51 -0
- aws_inventory_manager-0.17.0/src/utils/progress.py +41 -0
- aws_inventory_manager-0.17.0/src/utils/unsupported_resources.py +306 -0
- aws_inventory_manager-0.17.0/src/web/__init__.py +5 -0
- aws_inventory_manager-0.17.0/src/web/app.py +97 -0
- aws_inventory_manager-0.17.0/src/web/dependencies.py +69 -0
- aws_inventory_manager-0.17.0/src/web/routes/__init__.py +1 -0
- aws_inventory_manager-0.17.0/src/web/routes/api/__init__.py +18 -0
- aws_inventory_manager-0.17.0/src/web/routes/api/charts.py +156 -0
- aws_inventory_manager-0.17.0/src/web/routes/api/cleanup.py +186 -0
- aws_inventory_manager-0.17.0/src/web/routes/api/filters.py +253 -0
- aws_inventory_manager-0.17.0/src/web/routes/api/groups.py +305 -0
- aws_inventory_manager-0.17.0/src/web/routes/api/inventories.py +80 -0
- aws_inventory_manager-0.17.0/src/web/routes/api/queries.py +202 -0
- aws_inventory_manager-0.17.0/src/web/routes/api/resources.py +379 -0
- aws_inventory_manager-0.17.0/src/web/routes/api/snapshots.py +314 -0
- aws_inventory_manager-0.17.0/src/web/routes/api/views.py +260 -0
- aws_inventory_manager-0.17.0/src/web/routes/pages.py +198 -0
- aws_inventory_manager-0.17.0/src/web/services/__init__.py +1 -0
- aws_inventory_manager-0.17.0/src/web/templates/base.html +949 -0
- aws_inventory_manager-0.17.0/src/web/templates/components/navbar.html +31 -0
- aws_inventory_manager-0.17.0/src/web/templates/components/sidebar.html +104 -0
- aws_inventory_manager-0.17.0/src/web/templates/pages/audit_logs.html +86 -0
- aws_inventory_manager-0.17.0/src/web/templates/pages/cleanup.html +279 -0
- aws_inventory_manager-0.17.0/src/web/templates/pages/dashboard.html +227 -0
- aws_inventory_manager-0.17.0/src/web/templates/pages/diff.html +175 -0
- aws_inventory_manager-0.17.0/src/web/templates/pages/error.html +30 -0
- aws_inventory_manager-0.17.0/src/web/templates/pages/groups.html +721 -0
- aws_inventory_manager-0.17.0/src/web/templates/pages/queries.html +246 -0
- aws_inventory_manager-0.17.0/src/web/templates/pages/resources.html +2254 -0
- aws_inventory_manager-0.17.0/src/web/templates/pages/snapshot_detail.html +271 -0
- 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 *
|