replimap 0.3.40__tar.gz → 0.4.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.
- {replimap-0.3.40 → replimap-0.4.0}/PKG-INFO +1 -1
- {replimap-0.3.40 → replimap-0.4.0}/pyproject.toml +6 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/__init__.py +1 -1
- {replimap-0.3.40 → replimap-0.4.0}/replimap/audit/hooks.py +3 -3
- {replimap-0.3.40 → replimap-0.4.0}/replimap/audit/models.py +25 -6
- {replimap-0.3.40 → replimap-0.4.0}/replimap/audit/trust_center.py +6 -6
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/commands/analyze.py +7 -32
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/commands/audit.py +46 -11
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/commands/clone.py +17 -3
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/commands/codify.py +39 -15
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/commands/cost.py +27 -4
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/commands/deps.py +36 -6
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/commands/dr.py +17 -3
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/commands/drift.py +69 -37
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/commands/graph.py +28 -5
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/commands/residency.py +27 -4
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/commands/scan.py +32 -16
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/commands/snapshot.py +43 -7
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/commands/transfer.py +15 -3
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/commands/trends.py +15 -3
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/commands/unused.py +15 -3
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/errors.py +72 -15
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/utils/__init__.py +20 -0
- replimap-0.4.0/replimap/cli/utils/cache_resolution.py +154 -0
- replimap-0.4.0/replimap/cli/utils/deprecation.py +146 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/resilience/circuit_breaker.py +7 -7
- {replimap-0.3.40 → replimap-0.4.0}/.gitignore +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/LICENSE +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/MANIFEST.in +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/README.md +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/docs/assets/demo.gif +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/api.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/audit/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/audit/apra_cps234_mapping.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/audit/checkov_runner.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/audit/classifier.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/audit/engine.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/audit/exporters.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/audit/fix_suggestions.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/audit/nzism_mapping.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/audit/rbnz_bs11_mapping.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/audit/remediation/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/audit/remediation/generator.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/audit/remediation/models.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/audit/remediation/templates/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/audit/remediation/templates/ec2.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/audit/remediation/templates/kms.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/audit/remediation/templates/rds.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/audit/remediation/templates/s3.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/audit/renderer.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/audit/reporter.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/audit/soc2_mapping.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/audit/templates/audit_report.html.j2 +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/audit/terminal_reporter.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cache/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cache/snapshots.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/commands/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/commands/cache.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/commands/completion.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/commands/doctor.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/commands/explain.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/commands/iam.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/commands/license.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/commands/load.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/commands/profiles.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/commands/remediate.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/commands/trust_center.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/commands/upgrade.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/commands/validate.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/common_options.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/completers.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/completion.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/config.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/context.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/error_catalog.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/error_renderer.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/output.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/params/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/params/definitions.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/params/registry.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/params/schema.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/state.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/telemetry.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/utils/aws_session.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/utils/console.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/utils/console_links.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/utils/error_handler.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/utils/helpers.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/utils/options.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/utils/tips.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cli/utils/update_checker.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/codify/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/codify/empty_pruner.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/codify/generators/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/codify/generators/backend.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/codify/generators/hcl.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/codify/generators/imports.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/codify/generators/output.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/codify/generators/readme.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/codify/generators/variables.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/codify/hcl_types.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/codify/pipeline.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/codify/schema_mapper.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/codify/schema_rules.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/codify/set_sorter.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/codify/transformers/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/codify/transformers/base.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/codify/transformers/cleanup_transformer.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/codify/transformers/data_source_filter.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/codify/transformers/default_filter.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/codify/transformers/global_filter.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/codify/transformers/iam_normalizer.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/codify/transformers/import_resolver.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/codify/transformers/lifecycle_protector.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/codify/transformers/managed_filter.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/codify/transformers/naming_transformer.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/codify/transformers/ref_transformer.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/codify/transformers/schema_filter.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/codify/transformers/secrets_transformer.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/codify/transformers/sg_splitter.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/codify/transforms.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/codify/type_caster.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/codify/utils/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/codify/utils/config_integrity_checker.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/compliance/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/compliance/audit/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/compliance/audit/renderer.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/compliance/codify_checker.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/compliance/compliance_tf_registry.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/compliance/data_residency.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/compliance/drift/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/compliance/drift/exemptions.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/compliance/drift/mapping.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/compliance/drift/report.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/compliance/drift/rules.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/analysis/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/analysis/centrality.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/async_aws.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/aws_config.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/bootstrap.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/browser.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/cache.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/cache_manager.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/circuit_breaker.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/concurrency.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/config.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/constants.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/context.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/enrichment/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/enrichment/enricher.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/enrichment/metadata_extractor.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/enrichment/network_analyzer.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/errors.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/filters.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/first_run.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/formatters/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/formatters/sarif.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/graph/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/graph/algorithms.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/graph_engine.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/graph_tracer.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/identity.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/identity_resolver.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/logging.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/models.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/naming.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/operations.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/pagination.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/pagination_config.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/rate_limiter.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/resilience/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/resilience/errors/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/resilience/errors/classifier.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/resilience/errors/loader.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/resilience/errors/rules.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/retry.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/sanitizer.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/scope.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/security/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/security/credential_checker.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/security/drift.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/security/global_sanitizer.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/security/iam_generator.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/security/patterns.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/security/redactor.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/security/scrubber.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/security/session_manager.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/security/storage.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/selection.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/signals.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/state.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/storage.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/topology_constraints.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/unified_storage/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/unified_storage/adapter.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/unified_storage/base.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/unified_storage/engine.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/unified_storage/migrate.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/core/unified_storage/sqlite_backend.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cost/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cost/constants.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cost/estimator.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cost/explorer.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cost/local_rightsizer.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cost/models.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cost/pricing.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cost/pricing_engine.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cost/reporter.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cost/ri_aware.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cost/rightsizer.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cost/transfer_analyzer.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cost/trends.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/cost/unused_detector.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/data/field_hints.yaml +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/data/schema_rules.yaml +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/decisions/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/decisions/cli.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/decisions/manager.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/decisions/models.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/dependencies/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/dependencies/graph_builder.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/dependencies/impact_calculator.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/dependencies/models.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/dependencies/reporter.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/dependencies/weights.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/deps/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/deps/analyzers/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/deps/analyzers/asg.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/deps/analyzers/ec2.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/deps/analyzers/elasticache.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/deps/analyzers/elb.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/deps/analyzers/graph_fallback.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/deps/analyzers/iam_role.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/deps/analyzers/lambda_func.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/deps/analyzers/rds.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/deps/analyzers/s3.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/deps/analyzers/security_group.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/deps/base_analyzer.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/deps/blast_radius.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/deps/implicit_resolver.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/deps/models.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/deps/reporter.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/dr/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/dr/readiness.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/drift/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/drift/comparator.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/drift/engine.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/drift/ignore.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/drift/models.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/drift/normalizer.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/drift/reporter.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/drift/state_parser.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/drift/templates/drift_report.html.j2 +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/extraction/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/extraction/hints.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/graph/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/graph/aggregation.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/graph/builder.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/graph/cost_overlay.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/graph/cross_region.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/graph/drift.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/graph/environment.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/graph/filters.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/graph/formatters/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/graph/formatters/d3.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/graph/formatters/json_format.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/graph/formatters/mermaid.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/graph/global_context.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/graph/grouper.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/graph/layout.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/graph/link_classification.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/graph/multi_region.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/graph/naming.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/graph/orphan_detection.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/graph/summary_links.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/graph/templates/graph.html.j2 +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/graph/tool_modes.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/graph/views.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/graph/visualizer.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/licensing/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/licensing/cache.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/licensing/ci_adapter.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/licensing/crypto/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/licensing/crypto/keys.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/licensing/crypto/time_validator.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/licensing/developer.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/licensing/fingerprint.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/licensing/gates.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/licensing/manager.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/licensing/models.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/licensing/prompts.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/licensing/secure_manager.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/licensing/secure_models.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/licensing/server/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/licensing/server/signer.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/licensing/tracker.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/licensing/verifier.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/licensing/version_check.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/main.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/mcp_server.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/migrations/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/migrations/sanitize_cache.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/patterns/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/patterns/local_module.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/recovery/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/recovery/actions.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/recovery/engine.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/recovery/gray_zone.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/renderers/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/renderers/audit_annotator.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/renderers/backend.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/renderers/base.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/renderers/cloudformation.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/renderers/file_router.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/renderers/import_generator.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/renderers/name_generator.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/renderers/preloader.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/renderers/pulumi.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/renderers/refactoring.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/renderers/terraform.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/renderers/terraform_v2.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/renderers/variable_extractor.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/scanners/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/scanners/async_base.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/scanners/async_vpc_scanner.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/scanners/base.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/scanners/compute_scanner.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/scanners/ec2_scanner.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/scanners/elasticache_scanner.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/scanners/iam_scanner.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/scanners/implementations/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/scanners/implementations/s3_scanner.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/scanners/implementations/vpc_scanner.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/scanners/incremental.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/scanners/legacy_adapter.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/scanners/messaging_scanner.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/scanners/monitoring_scanner.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/scanners/networking_scanner.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/scanners/rds_scanner.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/scanners/s3_scanner.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/scanners/storage_scanner.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/scanners/unified_base.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/scanners/unified_scanners.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/scanners/vpc_scanner.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/snapshot/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/snapshot/differ.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/snapshot/models.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/snapshot/reporter.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/snapshot/store.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/templates/autoscaling_group.tf.j2 +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/templates/db_parameter_group.tf.j2 +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/templates/db_subnet_group.tf.j2 +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/templates/ebs_volume.tf.j2 +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/templates/ec2_instance.tf.j2 +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/templates/elasticache_cluster.tf.j2 +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/templates/elasticache_subnet_group.tf.j2 +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/templates/internet_gateway.tf.j2 +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/templates/launch_template.tf.j2 +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/templates/lb.tf.j2 +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/templates/lb_listener.tf.j2 +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/templates/lb_target_group.tf.j2 +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/templates/nat_gateway.tf.j2 +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/templates/network_acl.tf.j2 +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/templates/rds_instance.tf.j2 +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/templates/route_table.tf.j2 +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/templates/s3_bucket.tf.j2 +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/templates/s3_bucket_policy.tf.j2 +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/templates/security_group.tf.j2 +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/templates/sns_topic.tf.j2 +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/templates/sqs_queue.tf.j2 +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/templates/subnet.tf.j2 +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/templates/vpc.tf.j2 +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/templates/vpc_endpoint.tf.j2 +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/transformers/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/transformers/base.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/transformers/downsizer.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/transformers/network_remapper.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/transformers/renamer.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/transformers/sanitizer.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/ui/__init__.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/ui/console.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/ui/rich_output.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/ui/snapshot_panels.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/replimap/ui/snapshot_tables.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/scripts/check_stdout_hygiene.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/scripts/record_cassettes.py +0 -0
- {replimap-0.3.40 → replimap-0.4.0}/scripts/verify_compliance_tf_subdomains.py +0 -0
|
@@ -195,6 +195,12 @@ python_files = ["test_*.py"]
|
|
|
195
195
|
python_functions = ["test_*"]
|
|
196
196
|
addopts = "-v --tb=short"
|
|
197
197
|
asyncio_mode = "auto"
|
|
198
|
+
filterwarnings = [
|
|
199
|
+
# Regression guard (Batch 4 D-4): a reintroduced datetime.utcnow() fails the suite.
|
|
200
|
+
# Scoped to the utcnow message only — do NOT broaden to error::DeprecationWarning,
|
|
201
|
+
# some tests exercise intentional deprecations (e.g. GraphEngine in test_cache.py).
|
|
202
|
+
"error:datetime.datetime.utcnow:DeprecationWarning",
|
|
203
|
+
]
|
|
198
204
|
markers = [
|
|
199
205
|
"json_output: tests for JSON output format correctness",
|
|
200
206
|
"stdout_hygiene: tests for stdout cleanliness in JSON mode",
|
|
@@ -19,7 +19,7 @@ import logging
|
|
|
19
19
|
import threading
|
|
20
20
|
import uuid
|
|
21
21
|
from collections.abc import Callable
|
|
22
|
-
from datetime import datetime
|
|
22
|
+
from datetime import UTC, datetime
|
|
23
23
|
from typing import TYPE_CHECKING, Any
|
|
24
24
|
|
|
25
25
|
from .classifier import classifier
|
|
@@ -144,7 +144,7 @@ class AuditHooks:
|
|
|
144
144
|
**kwargs: Any,
|
|
145
145
|
) -> None:
|
|
146
146
|
"""Handler called before each API request."""
|
|
147
|
-
_timing_context.start_time = datetime.
|
|
147
|
+
_timing_context.start_time = datetime.now(UTC)
|
|
148
148
|
_timing_context.params = params if self.capture_params else {}
|
|
149
149
|
|
|
150
150
|
def _after_call_handler(
|
|
@@ -155,7 +155,7 @@ class AuditHooks:
|
|
|
155
155
|
**kwargs: Any,
|
|
156
156
|
) -> None:
|
|
157
157
|
"""Handler called after each API response."""
|
|
158
|
-
end_time = datetime.
|
|
158
|
+
end_time = datetime.now(UTC)
|
|
159
159
|
|
|
160
160
|
# Calculate duration
|
|
161
161
|
start_time = getattr(_timing_context, "start_time", end_time)
|
|
@@ -8,11 +8,30 @@ audit sessions, and compliance reports.
|
|
|
8
8
|
from __future__ import annotations
|
|
9
9
|
|
|
10
10
|
from dataclasses import dataclass, field
|
|
11
|
-
from datetime import datetime
|
|
11
|
+
from datetime import UTC, datetime
|
|
12
12
|
from enum import Enum
|
|
13
13
|
from typing import Any
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
def _ensure_utc(dt: datetime) -> datetime:
|
|
17
|
+
"""
|
|
18
|
+
Coerce a naive datetime to UTC-aware.
|
|
19
|
+
|
|
20
|
+
Legacy persisted sessions (written before the utcnow() removal) contain
|
|
21
|
+
naive ISO timestamps without an offset. New timestamps are UTC-aware, so
|
|
22
|
+
naive values loaded from old files must be tagged as UTC to keep them
|
|
23
|
+
comparable (naive vs aware comparison raises TypeError).
|
|
24
|
+
|
|
25
|
+
Load-bearing assumption: legacy naive values were written by
|
|
26
|
+
datetime.utcnow(), i.e. they already represent UTC wall-clock time.
|
|
27
|
+
Tagging them with UTC changes no instant — this is semantically correct,
|
|
28
|
+
not a best-effort approximation.
|
|
29
|
+
"""
|
|
30
|
+
if dt.tzinfo is None:
|
|
31
|
+
return dt.replace(tzinfo=UTC)
|
|
32
|
+
return dt
|
|
33
|
+
|
|
34
|
+
|
|
16
35
|
class APICategory(Enum):
|
|
17
36
|
"""
|
|
18
37
|
AWS API operation categories.
|
|
@@ -111,7 +130,7 @@ class APICallRecord:
|
|
|
111
130
|
def from_dict(cls, data: dict[str, Any]) -> APICallRecord:
|
|
112
131
|
"""Create from dictionary."""
|
|
113
132
|
return cls(
|
|
114
|
-
timestamp=datetime.fromisoformat(data["timestamp"]),
|
|
133
|
+
timestamp=_ensure_utc(datetime.fromisoformat(data["timestamp"])),
|
|
115
134
|
duration_ms=data["duration_ms"],
|
|
116
135
|
service=data["service"],
|
|
117
136
|
operation=data["operation"],
|
|
@@ -139,7 +158,7 @@ class AuditSession:
|
|
|
139
158
|
session_name: str | None = None
|
|
140
159
|
|
|
141
160
|
# Timing
|
|
142
|
-
start_time: datetime = field(default_factory=datetime.
|
|
161
|
+
start_time: datetime = field(default_factory=lambda: datetime.now(UTC))
|
|
143
162
|
end_time: datetime | None = None
|
|
144
163
|
|
|
145
164
|
# Statistics (updated incrementally)
|
|
@@ -199,7 +218,7 @@ class AuditSession:
|
|
|
199
218
|
|
|
200
219
|
def close(self) -> None:
|
|
201
220
|
"""Mark session as complete."""
|
|
202
|
-
self.end_time = datetime.
|
|
221
|
+
self.end_time = datetime.now(UTC)
|
|
203
222
|
|
|
204
223
|
def to_dict(self) -> dict[str, Any]:
|
|
205
224
|
"""Convert to dictionary for serialization."""
|
|
@@ -227,9 +246,9 @@ class AuditSession:
|
|
|
227
246
|
session = cls(
|
|
228
247
|
session_id=data["session_id"],
|
|
229
248
|
session_name=data.get("session_name"),
|
|
230
|
-
start_time=datetime.fromisoformat(data["start_time"]),
|
|
249
|
+
start_time=_ensure_utc(datetime.fromisoformat(data["start_time"])),
|
|
231
250
|
end_time=(
|
|
232
|
-
datetime.fromisoformat(data["end_time"])
|
|
251
|
+
_ensure_utc(datetime.fromisoformat(data["end_time"]))
|
|
233
252
|
if data.get("end_time")
|
|
234
253
|
else None
|
|
235
254
|
),
|
|
@@ -33,7 +33,7 @@ import threading
|
|
|
33
33
|
import uuid
|
|
34
34
|
from collections.abc import Generator
|
|
35
35
|
from contextlib import contextmanager
|
|
36
|
-
from datetime import datetime, timedelta
|
|
36
|
+
from datetime import UTC, datetime, timedelta
|
|
37
37
|
from pathlib import Path
|
|
38
38
|
from typing import TYPE_CHECKING, Any
|
|
39
39
|
|
|
@@ -192,7 +192,7 @@ class TrustCenter:
|
|
|
192
192
|
audit_session = AuditSession(
|
|
193
193
|
session_id=session_id,
|
|
194
194
|
session_name=name,
|
|
195
|
-
start_time=datetime.
|
|
195
|
+
start_time=datetime.now(UTC),
|
|
196
196
|
metadata=metadata or {},
|
|
197
197
|
)
|
|
198
198
|
|
|
@@ -282,7 +282,7 @@ class TrustCenter:
|
|
|
282
282
|
audit_session = AuditSession(
|
|
283
283
|
session_id=session_id,
|
|
284
284
|
session_name=name,
|
|
285
|
-
start_time=datetime.
|
|
285
|
+
start_time=datetime.now(UTC),
|
|
286
286
|
metadata=metadata or {},
|
|
287
287
|
)
|
|
288
288
|
|
|
@@ -363,7 +363,7 @@ class TrustCenter:
|
|
|
363
363
|
account_id: AWS account ID
|
|
364
364
|
"""
|
|
365
365
|
record = APICallRecord(
|
|
366
|
-
timestamp=datetime.
|
|
366
|
+
timestamp=datetime.now(UTC),
|
|
367
367
|
duration_ms=duration_ms,
|
|
368
368
|
service=service,
|
|
369
369
|
operation=operation,
|
|
@@ -397,7 +397,7 @@ class TrustCenter:
|
|
|
397
397
|
Returns:
|
|
398
398
|
TrustCenterReport instance
|
|
399
399
|
"""
|
|
400
|
-
period_end = period_end or datetime.
|
|
400
|
+
period_end = period_end or datetime.now(UTC)
|
|
401
401
|
period_start = period_start or (period_end - timedelta(days=30))
|
|
402
402
|
|
|
403
403
|
# Collect sessions
|
|
@@ -463,7 +463,7 @@ class TrustCenter:
|
|
|
463
463
|
|
|
464
464
|
return TrustCenterReport(
|
|
465
465
|
report_id=str(uuid.uuid4())[:8],
|
|
466
|
-
generated_at=datetime.
|
|
466
|
+
generated_at=datetime.now(UTC),
|
|
467
467
|
report_period_start=period_start,
|
|
468
468
|
report_period_end=period_end,
|
|
469
469
|
tool_name=self.TOOL_NAME,
|
|
@@ -44,7 +44,7 @@ import typer
|
|
|
44
44
|
from rich.table import Table
|
|
45
45
|
|
|
46
46
|
from replimap.cli.errors import EXIT_GENERAL_ERROR, enhanced_cli_error_handler
|
|
47
|
-
from replimap.cli.utils import
|
|
47
|
+
from replimap.cli.utils import resolve_cached_scan
|
|
48
48
|
from replimap.core.analysis.centrality import (
|
|
49
49
|
AttackSurfaceAnalyzer,
|
|
50
50
|
CentralityAnalyzer,
|
|
@@ -61,23 +61,6 @@ if TYPE_CHECKING:
|
|
|
61
61
|
GraphType = GraphEngine | GraphEngineAdapter
|
|
62
62
|
|
|
63
63
|
|
|
64
|
-
def _resolve_cache_path(profile: str, region: str) -> Path | None:
|
|
65
|
-
"""Resolve the cached scan path for a profile/region (age-agnostic).
|
|
66
|
-
|
|
67
|
-
analyze is an offline command: it uses whatever scan is cached regardless
|
|
68
|
-
of TTL (never triggers a re-scan). Returns the .db (or legacy .json)
|
|
69
|
-
path if it exists, else None. Mirrors drift's `_resolve_cache_path`.
|
|
70
|
-
"""
|
|
71
|
-
from replimap.core.cache_manager import CacheManager
|
|
72
|
-
|
|
73
|
-
cache = CacheManager(profile, region)
|
|
74
|
-
if cache.cache_path.exists():
|
|
75
|
-
return cache.cache_path
|
|
76
|
-
if cache.legacy_json_path.exists():
|
|
77
|
-
return cache.legacy_json_path
|
|
78
|
-
return None
|
|
79
|
-
|
|
80
|
-
|
|
81
64
|
def _load_graph(graph_file: Path):
|
|
82
65
|
"""
|
|
83
66
|
Load a graph from file (supports both JSON and SQLite formats).
|
|
@@ -241,22 +224,14 @@ def register(app: typer.Typer, panel: str | None = None) -> None:
|
|
|
241
224
|
output = gctx.output
|
|
242
225
|
|
|
243
226
|
# Resolve the graph source: explicit GRAPH_FILE wins; otherwise use
|
|
244
|
-
# the cached scan for profile/region.
|
|
245
|
-
#
|
|
246
|
-
#
|
|
247
|
-
#
|
|
248
|
-
# the profile-configured region and the Batch 2b② "explicit global
|
|
249
|
-
# -r beats profile config" semantics — otherwise a profile with a
|
|
250
|
-
# non-default region would make analyze look for a cache scan
|
|
251
|
-
# never wrote.
|
|
227
|
+
# the cached scan for profile/region. Identity derivation + lookup
|
|
228
|
+
# live in the shared single source of truth also used by scan's
|
|
229
|
+
# write path (cli/utils/cache_resolution.py), so the read path can
|
|
230
|
+
# never drift from the cache key scan writes.
|
|
252
231
|
if graph_file is None:
|
|
253
|
-
effective_profile
|
|
254
|
-
|
|
255
|
-
region or gctx.explicit_region,
|
|
256
|
-
effective_profile,
|
|
257
|
-
default=gctx.region or "us-east-1",
|
|
232
|
+
effective_profile, effective_region, graph_file = resolve_cached_scan(
|
|
233
|
+
profile, region, gctx
|
|
258
234
|
)
|
|
259
|
-
graph_file = _resolve_cache_path(effective_profile, effective_region)
|
|
260
235
|
if graph_file is None:
|
|
261
236
|
output.error(
|
|
262
237
|
f"No cached scan found for profile '{effective_profile}' "
|
|
@@ -23,6 +23,11 @@ from replimap.cli.errors import (
|
|
|
23
23
|
enhanced_cli_error_handler,
|
|
24
24
|
)
|
|
25
25
|
from replimap.cli.utils import get_aws_session, resolve_effective_region
|
|
26
|
+
from replimap.cli.utils.deprecation import (
|
|
27
|
+
deprecated_flag_option,
|
|
28
|
+
deprecated_value_option,
|
|
29
|
+
resolve_deprecated,
|
|
30
|
+
)
|
|
26
31
|
from replimap.core.browser import open_in_browser
|
|
27
32
|
from replimap.licensing import check_audit_ci_mode_allowed, check_audit_fix_allowed
|
|
28
33
|
from replimap.ui import print_audit_findings_fomo
|
|
@@ -531,9 +536,9 @@ def audit_command(
|
|
|
531
536
|
vpc: str | None = typer.Option(
|
|
532
537
|
None,
|
|
533
538
|
"--vpc",
|
|
534
|
-
"-v",
|
|
535
539
|
help="VPC ID to scope the audit (optional)",
|
|
536
540
|
),
|
|
541
|
+
vpc_deprecated: str | None = deprecated_value_option("-v", new_name="--vpc"),
|
|
537
542
|
output_file: Path | None = typer.Option(
|
|
538
543
|
None,
|
|
539
544
|
"--output",
|
|
@@ -594,10 +599,13 @@ def audit_command(
|
|
|
594
599
|
help="Generate Terraform remediation code for findings",
|
|
595
600
|
rich_help_panel="Remediation",
|
|
596
601
|
),
|
|
597
|
-
fix_output: Path = typer.Option(
|
|
598
|
-
|
|
602
|
+
fix_output: Path | None = typer.Option(
|
|
603
|
+
None,
|
|
599
604
|
"--fix-output",
|
|
600
|
-
help=
|
|
605
|
+
help=(
|
|
606
|
+
"Directory for remediation Terraform files "
|
|
607
|
+
"(default: ~/.replimap/reports/<timestamp>/remediation/)"
|
|
608
|
+
),
|
|
601
609
|
rich_help_panel="Remediation",
|
|
602
610
|
),
|
|
603
611
|
# === Compliance Framework ===
|
|
@@ -650,12 +658,13 @@ def audit_command(
|
|
|
650
658
|
rich_help_panel="Auditing & Compliance",
|
|
651
659
|
),
|
|
652
660
|
# === Cache & Performance ===
|
|
653
|
-
|
|
661
|
+
no_cred_cache: bool = typer.Option(
|
|
654
662
|
False,
|
|
655
|
-
"--no-cache",
|
|
656
|
-
help="Don't use cached credentials",
|
|
663
|
+
"--no-cred-cache",
|
|
664
|
+
help="Don't use cached AWS credentials (re-authenticate)",
|
|
657
665
|
rich_help_panel="Cache & Performance",
|
|
658
666
|
),
|
|
667
|
+
no_cache: bool = deprecated_flag_option("--no-cache", new_name="--no-cred-cache"),
|
|
659
668
|
refresh: bool = typer.Option(
|
|
660
669
|
False,
|
|
661
670
|
"--refresh",
|
|
@@ -679,8 +688,9 @@ def audit_command(
|
|
|
679
688
|
\b
|
|
680
689
|
|
|
681
690
|
Artifacts default to ~/.replimap/reports/<timestamp>/ (report +
|
|
682
|
-
terraform/); use -o
|
|
683
|
-
only opened in a browser when
|
|
691
|
+
terraform/, plus remediation/ with --fix); use -o, -t and --fix-output
|
|
692
|
+
to choose your own paths. The report is only opened in a browser when
|
|
693
|
+
--open is passed.
|
|
684
694
|
|
|
685
695
|
\b
|
|
686
696
|
|
|
@@ -688,7 +698,7 @@ def audit_command(
|
|
|
688
698
|
|
|
689
699
|
replimap audit --region us-east-1
|
|
690
700
|
|
|
691
|
-
replimap audit -p prod -r ap-southeast-2
|
|
701
|
+
replimap audit -p prod -r ap-southeast-2 --vpc vpc-abc123
|
|
692
702
|
|
|
693
703
|
replimap audit -r us-west-2 --open # open HTML report in browser
|
|
694
704
|
|
|
@@ -713,6 +723,23 @@ def audit_command(
|
|
|
713
723
|
# Get V3 context
|
|
714
724
|
gctx: GlobalContext = ctx.obj
|
|
715
725
|
output = gctx.output
|
|
726
|
+
no_cache = resolve_deprecated(
|
|
727
|
+
no_cred_cache,
|
|
728
|
+
no_cache,
|
|
729
|
+
old_name="--no-cache",
|
|
730
|
+
new_name="--no-cred-cache",
|
|
731
|
+
output=output,
|
|
732
|
+
)
|
|
733
|
+
# '-v' used to be the short name for --vpc, colliding with the global
|
|
734
|
+
# -v/--verbose (which only applies before the subcommand name:
|
|
735
|
+
# `replimap -v audit`). It stays accepted as a hidden deprecated alias.
|
|
736
|
+
vpc = resolve_deprecated(
|
|
737
|
+
vpc,
|
|
738
|
+
vpc_deprecated,
|
|
739
|
+
old_name="-v",
|
|
740
|
+
new_name="--vpc",
|
|
741
|
+
output=output,
|
|
742
|
+
)
|
|
716
743
|
|
|
717
744
|
# Inherit profile from global -p flag if not set locally
|
|
718
745
|
effective_profile = profile or gctx.profile
|
|
@@ -992,7 +1019,15 @@ def audit_command(
|
|
|
992
1019
|
output.log(fix_gate.prompt)
|
|
993
1020
|
raise typer.Exit(EXIT_GENERAL_ERROR)
|
|
994
1021
|
if results.findings:
|
|
995
|
-
|
|
1022
|
+
# Default remediation output shares this run's timestamped
|
|
1023
|
+
# reports directory (same policy as the report and terraform/:
|
|
1024
|
+
# never write into the CWD by default). An explicit --fix-output
|
|
1025
|
+
# is used exactly as given, no timestamp added.
|
|
1026
|
+
effective_fix_output = (
|
|
1027
|
+
fix_output if fix_output is not None else default_dir / "remediation"
|
|
1028
|
+
)
|
|
1029
|
+
_generate_remediation(results, effective_fix_output, output)
|
|
1030
|
+
output.success(f"Remediation: {effective_fix_output.absolute()}")
|
|
996
1031
|
|
|
997
1032
|
# CI/CD checks (PRO+ feature)
|
|
998
1033
|
exit_code = EXIT_SUCCESS
|
|
@@ -24,6 +24,10 @@ from replimap.cli.utils import (
|
|
|
24
24
|
get_aws_session,
|
|
25
25
|
resolve_effective_region,
|
|
26
26
|
)
|
|
27
|
+
from replimap.cli.utils.deprecation import (
|
|
28
|
+
deprecated_flag_option,
|
|
29
|
+
resolve_deprecated,
|
|
30
|
+
)
|
|
27
31
|
from replimap.core import GraphEngine
|
|
28
32
|
from replimap.licensing.manager import get_license_manager
|
|
29
33
|
from replimap.renderers import TerraformRenderer
|
|
@@ -88,10 +92,13 @@ def register(app: typer.Typer, panel: str | None = None) -> None:
|
|
|
88
92
|
"-i",
|
|
89
93
|
help="Interactive mode - prompt for missing options",
|
|
90
94
|
),
|
|
91
|
-
|
|
95
|
+
no_cred_cache: bool = typer.Option(
|
|
92
96
|
False,
|
|
93
|
-
"--no-cache",
|
|
94
|
-
help="Don't use cached credentials (re-authenticate)",
|
|
97
|
+
"--no-cred-cache",
|
|
98
|
+
help="Don't use cached AWS credentials (re-authenticate)",
|
|
99
|
+
),
|
|
100
|
+
no_cache: bool = deprecated_flag_option(
|
|
101
|
+
"--no-cache", new_name="--no-cred-cache"
|
|
95
102
|
),
|
|
96
103
|
refresh: bool = typer.Option(
|
|
97
104
|
False,
|
|
@@ -204,6 +211,13 @@ def register(app: typer.Typer, panel: str | None = None) -> None:
|
|
|
204
211
|
# Get V3 context
|
|
205
212
|
gctx: GlobalContext = ctx.obj
|
|
206
213
|
output = gctx.output
|
|
214
|
+
no_cache = resolve_deprecated(
|
|
215
|
+
no_cred_cache,
|
|
216
|
+
no_cache,
|
|
217
|
+
old_name="--no-cache",
|
|
218
|
+
new_name="--no-cred-cache",
|
|
219
|
+
output=output,
|
|
220
|
+
)
|
|
207
221
|
|
|
208
222
|
# Interactive mode - prompt for missing options
|
|
209
223
|
if interactive:
|
|
@@ -24,6 +24,11 @@ from replimap.cli.errors import EXIT_SUCCESS, enhanced_cli_error_handler
|
|
|
24
24
|
from replimap.cli.utils import (
|
|
25
25
|
get_aws_session,
|
|
26
26
|
resolve_effective_region,
|
|
27
|
+
resolve_scan_identity,
|
|
28
|
+
)
|
|
29
|
+
from replimap.cli.utils.deprecation import (
|
|
30
|
+
deprecated_flag_option,
|
|
31
|
+
resolve_deprecated,
|
|
27
32
|
)
|
|
28
33
|
|
|
29
34
|
if TYPE_CHECKING:
|
|
@@ -120,12 +125,15 @@ def register(app: typer.Typer, panel: str | None = None) -> None:
|
|
|
120
125
|
help="Show what would be generated without writing files",
|
|
121
126
|
rich_help_panel="Cache & Performance",
|
|
122
127
|
),
|
|
123
|
-
|
|
128
|
+
no_cred_cache: bool = typer.Option(
|
|
124
129
|
False,
|
|
125
|
-
"--no-cache",
|
|
126
|
-
help="Don't use cached credentials (re-authenticate)",
|
|
130
|
+
"--no-cred-cache",
|
|
131
|
+
help="Don't use cached AWS credentials (re-authenticate)",
|
|
127
132
|
rich_help_panel="Cache & Performance",
|
|
128
133
|
),
|
|
134
|
+
no_cache: bool = deprecated_flag_option(
|
|
135
|
+
"--no-cache", new_name="--no-cred-cache"
|
|
136
|
+
),
|
|
129
137
|
refresh: bool = typer.Option(
|
|
130
138
|
False,
|
|
131
139
|
"--refresh",
|
|
@@ -203,6 +211,14 @@ def register(app: typer.Typer, panel: str | None = None) -> None:
|
|
|
203
211
|
# Fallback: create default output manager
|
|
204
212
|
output = create_output_manager(format="text", verbose=0)
|
|
205
213
|
|
|
214
|
+
no_cache = resolve_deprecated(
|
|
215
|
+
no_cred_cache,
|
|
216
|
+
no_cache,
|
|
217
|
+
old_name="--no-cache",
|
|
218
|
+
new_name="--no-cred-cache",
|
|
219
|
+
output=output,
|
|
220
|
+
)
|
|
221
|
+
|
|
206
222
|
# Use profile/region from context if not provided via flags
|
|
207
223
|
ctx_profile = gctx.profile if gctx else None
|
|
208
224
|
ctx_region = gctx.region if gctx else None
|
|
@@ -214,18 +230,26 @@ def register(app: typer.Typer, panel: str | None = None) -> None:
|
|
|
214
230
|
|
|
215
231
|
effective_profile = profile or ctx_profile
|
|
216
232
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
233
|
+
if gctx is not None:
|
|
234
|
+
# Identity (profile + region) via the single source of truth
|
|
235
|
+
# shared with scan's write path and the offline read paths
|
|
236
|
+
# (cli/utils/cache_resolution.py) — the value below feeds
|
|
237
|
+
# get_or_load_graph, so it must match the cache key scan writes.
|
|
238
|
+
effective_profile, effective_region, region_source = resolve_scan_identity(
|
|
239
|
+
profile, region, gctx
|
|
240
|
+
)
|
|
241
|
+
else:
|
|
242
|
+
# Legacy dict ctx.obj (sub-command groups without a
|
|
243
|
+
# GlobalContext): no explicit_region is available; preserve the
|
|
244
|
+
# prior fallback derivation. Do NOT copy this branch into new
|
|
245
|
+
# commands — use resolve_scan_identity.
|
|
246
|
+
effective_region, region_source = resolve_effective_region(
|
|
247
|
+
region,
|
|
248
|
+
effective_profile,
|
|
249
|
+
default=ctx_region or "us-east-1",
|
|
250
|
+
)
|
|
251
|
+
if region_source == "default" and ctx_region:
|
|
252
|
+
region_source = "context"
|
|
229
253
|
|
|
230
254
|
# Use effective_region as primary_region default if not specified
|
|
231
255
|
effective_primary_region = primary_region or effective_region
|
|
@@ -17,6 +17,11 @@ import typer
|
|
|
17
17
|
|
|
18
18
|
from replimap.cli.errors import EXIT_GENERAL_ERROR, enhanced_cli_error_handler
|
|
19
19
|
from replimap.cli.utils import get_aws_session, resolve_effective_region
|
|
20
|
+
from replimap.cli.utils.deprecation import (
|
|
21
|
+
deprecated_flag_option,
|
|
22
|
+
deprecated_value_option,
|
|
23
|
+
resolve_deprecated,
|
|
24
|
+
)
|
|
20
25
|
from replimap.core import GraphEngine
|
|
21
26
|
from replimap.core.browser import open_in_browser
|
|
22
27
|
from replimap.scanners.base import run_all_scanners
|
|
@@ -45,10 +50,10 @@ def cost_command(
|
|
|
45
50
|
vpc: str | None = typer.Option(
|
|
46
51
|
None,
|
|
47
52
|
"--vpc",
|
|
48
|
-
"-v",
|
|
49
53
|
help="VPC ID to scope the scan (optional)",
|
|
50
54
|
rich_help_panel="Selection",
|
|
51
55
|
),
|
|
56
|
+
vpc_deprecated: str | None = deprecated_value_option("-v", new_name="--vpc"),
|
|
52
57
|
# === Output Options ===
|
|
53
58
|
output_file: Path | None = typer.Option(
|
|
54
59
|
None,
|
|
@@ -78,12 +83,13 @@ def cost_command(
|
|
|
78
83
|
rich_help_panel="Output",
|
|
79
84
|
),
|
|
80
85
|
# === Cache & Performance ===
|
|
81
|
-
|
|
86
|
+
no_cred_cache: bool = typer.Option(
|
|
82
87
|
False,
|
|
83
|
-
"--no-cache",
|
|
84
|
-
help="Don't use cached credentials",
|
|
88
|
+
"--no-cred-cache",
|
|
89
|
+
help="Don't use cached AWS credentials (re-authenticate)",
|
|
85
90
|
rich_help_panel="Cache & Performance",
|
|
86
91
|
),
|
|
92
|
+
no_cache: bool = deprecated_flag_option("--no-cache", new_name="--no-cred-cache"),
|
|
87
93
|
refresh: bool = typer.Option(
|
|
88
94
|
False,
|
|
89
95
|
"--refresh",
|
|
@@ -161,6 +167,23 @@ def cost_command(
|
|
|
161
167
|
gctx: GlobalContext = ctx.obj
|
|
162
168
|
output = gctx.output
|
|
163
169
|
stderr_console = output._stderr_console
|
|
170
|
+
no_cache = resolve_deprecated(
|
|
171
|
+
no_cred_cache,
|
|
172
|
+
no_cache,
|
|
173
|
+
old_name="--no-cache",
|
|
174
|
+
new_name="--no-cred-cache",
|
|
175
|
+
output=output,
|
|
176
|
+
)
|
|
177
|
+
# '-v' used to be the short name for --vpc, colliding with the global
|
|
178
|
+
# -v/--verbose (which only applies before the subcommand name:
|
|
179
|
+
# `replimap -v cost`). It stays accepted as a hidden deprecated alias.
|
|
180
|
+
vpc = resolve_deprecated(
|
|
181
|
+
vpc,
|
|
182
|
+
vpc_deprecated,
|
|
183
|
+
old_name="-v",
|
|
184
|
+
new_name="--vpc",
|
|
185
|
+
output=output,
|
|
186
|
+
)
|
|
164
187
|
|
|
165
188
|
# Check cost feature access (Pro+ feature)
|
|
166
189
|
cost_gate = check_cost_allowed()
|
|
@@ -17,6 +17,11 @@ from rich.status import Status
|
|
|
17
17
|
|
|
18
18
|
from replimap.cli.errors import EXIT_GENERAL_ERROR, enhanced_cli_error_handler
|
|
19
19
|
from replimap.cli.utils import get_aws_session, logger, resolve_effective_region
|
|
20
|
+
from replimap.cli.utils.deprecation import (
|
|
21
|
+
deprecated_flag_option,
|
|
22
|
+
deprecated_value_option,
|
|
23
|
+
resolve_deprecated,
|
|
24
|
+
)
|
|
20
25
|
from replimap.core import GraphEngine
|
|
21
26
|
from replimap.core.browser import open_in_browser
|
|
22
27
|
from replimap.scanners.base import run_all_scanners
|
|
@@ -163,9 +168,9 @@ def deps_command(
|
|
|
163
168
|
vpc: str | None = typer.Option(
|
|
164
169
|
None,
|
|
165
170
|
"--vpc",
|
|
166
|
-
"-v",
|
|
167
171
|
help="VPC ID to scope the scan (optional)",
|
|
168
172
|
),
|
|
173
|
+
vpc_deprecated: str | None = deprecated_value_option("-v", new_name="--vpc"),
|
|
169
174
|
max_depth: int = typer.Option(
|
|
170
175
|
10,
|
|
171
176
|
"--depth",
|
|
@@ -205,12 +210,13 @@ def deps_command(
|
|
|
205
210
|
rich_help_panel="Output",
|
|
206
211
|
),
|
|
207
212
|
# === Cache & Performance ===
|
|
208
|
-
|
|
213
|
+
no_cred_cache: bool = typer.Option(
|
|
209
214
|
False,
|
|
210
|
-
"--no-cache",
|
|
211
|
-
help="Don't use cached credentials",
|
|
215
|
+
"--no-cred-cache",
|
|
216
|
+
help="Don't use cached AWS credentials (re-authenticate)",
|
|
212
217
|
rich_help_panel="Cache & Performance",
|
|
213
218
|
),
|
|
219
|
+
no_cache: bool = deprecated_flag_option("--no-cache", new_name="--no-cred-cache"),
|
|
214
220
|
refresh: bool = typer.Option(
|
|
215
221
|
False,
|
|
216
222
|
"--refresh",
|
|
@@ -281,6 +287,23 @@ def deps_command(
|
|
|
281
287
|
# Get V3 context
|
|
282
288
|
gctx: GlobalContext = ctx.obj
|
|
283
289
|
output = gctx.output
|
|
290
|
+
no_cache = resolve_deprecated(
|
|
291
|
+
no_cred_cache,
|
|
292
|
+
no_cache,
|
|
293
|
+
old_name="--no-cache",
|
|
294
|
+
new_name="--no-cred-cache",
|
|
295
|
+
output=output,
|
|
296
|
+
)
|
|
297
|
+
# '-v' used to be the short name for --vpc, colliding with the global
|
|
298
|
+
# -v/--verbose (which only applies before the subcommand name:
|
|
299
|
+
# `replimap -v deps`). It stays accepted as a hidden deprecated alias.
|
|
300
|
+
vpc = resolve_deprecated(
|
|
301
|
+
vpc,
|
|
302
|
+
vpc_deprecated,
|
|
303
|
+
old_name="-v",
|
|
304
|
+
new_name="--vpc",
|
|
305
|
+
output=output,
|
|
306
|
+
)
|
|
284
307
|
|
|
285
308
|
# Check deps feature access (Pro+ feature)
|
|
286
309
|
deps_gate = check_deps_allowed()
|
|
@@ -475,12 +498,14 @@ def blast_command(
|
|
|
475
498
|
resource_id: str = typer.Argument(...),
|
|
476
499
|
profile: str | None = typer.Option(None, "--profile", "-p"),
|
|
477
500
|
region: str | None = typer.Option(None, "--region", "-r"),
|
|
478
|
-
vpc: str | None = typer.Option(None, "--vpc"
|
|
501
|
+
vpc: str | None = typer.Option(None, "--vpc"),
|
|
502
|
+
vpc_deprecated: str | None = deprecated_value_option("-v", new_name="--vpc"),
|
|
479
503
|
max_depth: int = typer.Option(10, "--depth", "-d"),
|
|
480
504
|
output_file: Path | None = typer.Option(None, "--output", "-o"),
|
|
481
505
|
report_format: str = typer.Option("console", "--format", "-f"),
|
|
482
506
|
open_report: bool = typer.Option(True, "--open/--no-open"),
|
|
483
|
-
|
|
507
|
+
no_cred_cache: bool = typer.Option(False, "--no-cred-cache"),
|
|
508
|
+
no_cache: bool = deprecated_flag_option("--no-cache", new_name="--no-cred-cache"),
|
|
484
509
|
refresh: bool = typer.Option(False, "--refresh", "-R"),
|
|
485
510
|
) -> None:
|
|
486
511
|
"""Deprecated: Use 'replimap deps' instead."""
|
|
@@ -489,18 +514,23 @@ def blast_command(
|
|
|
489
514
|
output = gctx.output
|
|
490
515
|
output.warn("'replimap blast' is deprecated. Use 'replimap deps' instead.")
|
|
491
516
|
|
|
517
|
+
# Forward BOTH the canonical and deprecated raw values (same treatment
|
|
518
|
+
# as no_cred_cache/no_cache): deps_command resolves them exactly once,
|
|
519
|
+
# so `blast -v` warns once instead of twice.
|
|
492
520
|
deps_command(
|
|
493
521
|
ctx=ctx,
|
|
494
522
|
resource_id=resource_id,
|
|
495
523
|
profile=profile,
|
|
496
524
|
region=region,
|
|
497
525
|
vpc=vpc,
|
|
526
|
+
vpc_deprecated=vpc_deprecated,
|
|
498
527
|
max_depth=max_depth,
|
|
499
528
|
output_file=output_file,
|
|
500
529
|
report_format=report_format,
|
|
501
530
|
open_report=open_report,
|
|
502
531
|
show_disclaimer=True,
|
|
503
532
|
verbose=False,
|
|
533
|
+
no_cred_cache=no_cred_cache,
|
|
504
534
|
no_cache=no_cache,
|
|
505
535
|
refresh=refresh,
|
|
506
536
|
analyze=False,
|