aws-arch-agent 0.3.1__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_arch_agent-0.3.1/.aws-arch-agent-baseline.json +600 -0
- aws_arch_agent-0.3.1/.github/actions/aws-arch-agent/action.yml +144 -0
- aws_arch_agent-0.3.1/.github/workflows/aws-arch-agent.yml +170 -0
- aws_arch_agent-0.3.1/.github/workflows/release.yml +92 -0
- aws_arch_agent-0.3.1/.gitignore +93 -0
- aws_arch_agent-0.3.1/.pre-commit-config.yaml +9 -0
- aws_arch_agent-0.3.1/CHANGELOG.md +180 -0
- aws_arch_agent-0.3.1/CONTRIBUTING.md +80 -0
- aws_arch_agent-0.3.1/LICENSE +21 -0
- aws_arch_agent-0.3.1/PKG-INFO +174 -0
- aws_arch_agent-0.3.1/README.md +131 -0
- aws_arch_agent-0.3.1/docs/CF_RULES.md +1487 -0
- aws_arch_agent-0.3.1/docs/CONFIG.md +135 -0
- aws_arch_agent-0.3.1/docs/COVERAGE.md +569 -0
- aws_arch_agent-0.3.1/docs/REFERENCE.md +386 -0
- aws_arch_agent-0.3.1/docs/V2_LANGGRAPH.md +49 -0
- aws_arch_agent-0.3.1/docs/example-config.json +22 -0
- aws_arch_agent-0.3.1/docs/report-schema.json +452 -0
- aws_arch_agent-0.3.1/docs/waf-snippets.md +27 -0
- aws_arch_agent-0.3.1/pyproject.toml +89 -0
- aws_arch_agent-0.3.1/scripts/check_doc_links.py +78 -0
- aws_arch_agent-0.3.1/scripts/refresh_prices.py +79 -0
- aws_arch_agent-0.3.1/scripts/release_notes.py +68 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/__init__.py +2 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/agent/hypotheses.py +186 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/agent/v1.py +612 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/agent/v2_graph.py +712 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/agent/verdicts.py +246 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/baseline.py +259 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/cli.py +442 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/config.py +461 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/models.py +100 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/pricing/__init__.py +116 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/pricing/build.py +231 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/pricing/prices.json.gz +0 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/py.typed +0 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rag/__init__.py +24 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rag/embeddings_rag.py +104 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rag/simple.py +59 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/report/doc_topics.py +3698 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/report/docs.py +150 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/report/html.py +104 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/report/json_report.py +39 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/report/markdown.py +216 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/report/sarif.py +89 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/report/schema.py +227 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/report/summary.py +162 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/report/templates/report.html +337 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/account.py +235 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/ai_gate.py +90 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/base.py +77 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/best_practices.py +167 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/cards.py +94 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/cf_template.py +8466 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/cost.py +531 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/data/ai_lenses.json +2836 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/data/eks_versions.json +22 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/data/graviton_families.json +48 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/data/instance_generations.json +53 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/data/well_architected.json +1691 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/effort.py +49 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/eks_versions.py +46 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/environments.py +238 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/estimates.py +373 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/fix_snippets.py +4446 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/generations.py +213 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/iam_policy.py +333 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/lambda_runtimes.py +129 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/lens_map.py +428 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/lenses.py +196 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/nonprod.py +128 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/operational_excellence.py +822 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/performance_efficiency.py +580 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/regions.py +234 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/registry.py +267 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/reliability.py +1055 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/repo_practices.py +13519 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/resource_model.py +269 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/runner.py +58 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/scope.py +81 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/secret_names.py +54 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/security.py +147 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/security_api_edge.py +255 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/security_compute.py +502 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/security_iam.py +662 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/security_network.py +274 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/security_storage.py +620 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/stack_cost.py +142 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/sustainability.py +211 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/tag_policy.py +210 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/terraform_model.py +3576 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/themes.py +77 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/wa_map.py +690 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/rules/well_architected.py +252 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/tools/cdk_synth.py +217 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/tools/cfn_yaml.py +92 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/tools/files.py +60 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/tools/llm.py +171 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/tools/paths.py +22 -0
- aws_arch_agent-0.3.1/src/aws_arch_agent/tools/rg.py +195 -0
- aws_arch_agent-0.3.1/tests/conftest.py +9 -0
- aws_arch_agent-0.3.1/tests/fixtures/build_rule_cases.py +127 -0
- aws_arch_agent-0.3.1/tests/fixtures/calibrate_rule_cases.py +253 -0
- aws_arch_agent-0.3.1/tests/fixtures/cloudformation/deploy.yml.fixture +8 -0
- aws_arch_agent-0.3.1/tests/fixtures/cloudformation/stack.yaml.fixture +45 -0
- aws_arch_agent-0.3.1/tests/fixtures/minimal-cdk/bin/app.js +12 -0
- aws_arch_agent-0.3.1/tests/fixtures/minimal-cdk/cdk.json +4 -0
- aws_arch_agent-0.3.1/tests/fixtures/minimal-cdk/package-lock.json +689 -0
- aws_arch_agent-0.3.1/tests/fixtures/minimal-cdk/package.json +14 -0
- aws_arch_agent-0.3.1/tests/fixtures/rule_cases.json +1933 -0
- aws_arch_agent-0.3.1/tests/fixtures/rules/hardcoded_secret.ts +1 -0
- aws_arch_agent-0.3.1/tests/fixtures/rules/iam_wildcard.ts +1 -0
- aws_arch_agent-0.3.1/tests/fixtures/rules/no_cloudtrail.py +1 -0
- aws_arch_agent-0.3.1/tests/fixtures/rules/open_ssh.ts +5 -0
- aws_arch_agent-0.3.1/tests/fixtures/rules/rds_no_multiaz.ts +1 -0
- aws_arch_agent-0.3.1/tests/fixtures/rules/s3_no_encryption.ts +1 -0
- aws_arch_agent-0.3.1/tests/fixtures/snapshots/cloudformation.json +765 -0
- aws_arch_agent-0.3.1/tests/fixtures/snapshots/minimal-cdk.json +380 -0
- aws_arch_agent-0.3.1/tests/fixtures/snapshots/terraform.json +786 -0
- aws_arch_agent-0.3.1/tests/fixtures/terraform/main.tf.fixture +57 -0
- aws_arch_agent-0.3.1/tests/fixtures/terraform/modules/logs/main.tf.fixture +2 -0
- aws_arch_agent-0.3.1/tests/fixtures/terraform/network.tf.fixture +3 -0
- aws_arch_agent-0.3.1/tests/test_accelerator_utilization.py +68 -0
- aws_arch_agent-0.3.1/tests/test_account_baseline_checks.py +405 -0
- aws_arch_agent-0.3.1/tests/test_ai_checks.py +202 -0
- aws_arch_agent-0.3.1/tests/test_ai_lenses.py +264 -0
- aws_arch_agent-0.3.1/tests/test_all_rules_coverage.py +164 -0
- aws_arch_agent-0.3.1/tests/test_analytics_checks.py +379 -0
- aws_arch_agent-0.3.1/tests/test_api_gateway_checks.py +311 -0
- aws_arch_agent-0.3.1/tests/test_app_security.py +478 -0
- aws_arch_agent-0.3.1/tests/test_app_services_checks.py +574 -0
- aws_arch_agent-0.3.1/tests/test_appsec_practices.py +209 -0
- aws_arch_agent-0.3.1/tests/test_architecture_decision.py +59 -0
- aws_arch_agent-0.3.1/tests/test_autoscaling_checks.py +493 -0
- aws_arch_agent-0.3.1/tests/test_backup_checks.py +568 -0
- aws_arch_agent-0.3.1/tests/test_baseline.py +218 -0
- aws_arch_agent-0.3.1/tests/test_cdk_synth.py +196 -0
- aws_arch_agent-0.3.1/tests/test_cf_covers_static.py +446 -0
- aws_arch_agent-0.3.1/tests/test_cf_template.py +653 -0
- aws_arch_agent-0.3.1/tests/test_change_flow.py +213 -0
- aws_arch_agent-0.3.1/tests/test_change_management.py +535 -0
- aws_arch_agent-0.3.1/tests/test_ci_cd_checks.py +511 -0
- aws_arch_agent-0.3.1/tests/test_cli.py +924 -0
- aws_arch_agent-0.3.1/tests/test_cloudfront_s3_origin_checks.py +199 -0
- aws_arch_agent-0.3.1/tests/test_cloudfront_settings_checks.py +627 -0
- aws_arch_agent-0.3.1/tests/test_cloudfront_waf_checks.py +263 -0
- aws_arch_agent-0.3.1/tests/test_component_failures.py +338 -0
- aws_arch_agent-0.3.1/tests/test_compute_integrity.py +207 -0
- aws_arch_agent-0.3.1/tests/test_compute_protection.py +113 -0
- aws_arch_agent-0.3.1/tests/test_compute_resources.py +382 -0
- aws_arch_agent-0.3.1/tests/test_config.py +157 -0
- aws_arch_agent-0.3.1/tests/test_config_yaml.py +17 -0
- aws_arch_agent-0.3.1/tests/test_container_checks.py +505 -0
- aws_arch_agent-0.3.1/tests/test_cost_estimates.py +337 -0
- aws_arch_agent-0.3.1/tests/test_cost_modeling.py +284 -0
- aws_arch_agent-0.3.1/tests/test_cost_monitoring.py +370 -0
- aws_arch_agent-0.3.1/tests/test_cost_review.py +56 -0
- aws_arch_agent-0.3.1/tests/test_coverage_doc.py +122 -0
- aws_arch_agent-0.3.1/tests/test_culture.py +84 -0
- aws_arch_agent-0.3.1/tests/test_data_classification.py +170 -0
- aws_arch_agent-0.3.1/tests/test_data_lifecycle.py +79 -0
- aws_arch_agent-0.3.1/tests/test_data_management.py +151 -0
- aws_arch_agent-0.3.1/tests/test_data_plane_recovery.py +63 -0
- aws_arch_agent-0.3.1/tests/test_data_store_checks.py +500 -0
- aws_arch_agent-0.3.1/tests/test_data_store_choice.py +198 -0
- aws_arch_agent-0.3.1/tests/test_data_transfer.py +428 -0
- aws_arch_agent-0.3.1/tests/test_decommissioning.py +340 -0
- aws_arch_agent-0.3.1/tests/test_deletion_policy_checks.py +241 -0
- aws_arch_agent-0.3.1/tests/test_demand_alignment.py +452 -0
- aws_arch_agent-0.3.1/tests/test_demand_load_test.py +52 -0
- aws_arch_agent-0.3.1/tests/test_demand_management.py +314 -0
- aws_arch_agent-0.3.1/tests/test_demand_scaling.py +364 -0
- aws_arch_agent-0.3.1/tests/test_dependency_checks.py +131 -0
- aws_arch_agent-0.3.1/tests/test_deployment_safety.py +435 -0
- aws_arch_agent-0.3.1/tests/test_disaster_recovery.py +296 -0
- aws_arch_agent-0.3.1/tests/test_dns_certificate_checks.py +473 -0
- aws_arch_agent-0.3.1/tests/test_docs.py +97 -0
- aws_arch_agent-0.3.1/tests/test_ecr_ecs_checks.py +329 -0
- aws_arch_agent-0.3.1/tests/test_ecs_rollback.py +58 -0
- aws_arch_agent-0.3.1/tests/test_eks_checks.py +182 -0
- aws_arch_agent-0.3.1/tests/test_emr_dms_checks.py +425 -0
- aws_arch_agent-0.3.1/tests/test_encryption_checks.py +453 -0
- aws_arch_agent-0.3.1/tests/test_encryption_guardrail.py +142 -0
- aws_arch_agent-0.3.1/tests/test_environments.py +203 -0
- aws_arch_agent-0.3.1/tests/test_error_handling_checks.py +530 -0
- aws_arch_agent-0.3.1/tests/test_event_management.py +162 -0
- aws_arch_agent-0.3.1/tests/test_failure_interactions.py +357 -0
- aws_arch_agent-0.3.1/tests/test_financial_management.py +417 -0
- aws_arch_agent-0.3.1/tests/test_finding_correlation.py +156 -0
- aws_arch_agent-0.3.1/tests/test_fix_snippets.py +127 -0
- aws_arch_agent-0.3.1/tests/test_gateway_endpoints.py +181 -0
- aws_arch_agent-0.3.1/tests/test_generations.py +242 -0
- aws_arch_agent-0.3.1/tests/test_graviton_ec2.py +136 -0
- aws_arch_agent-0.3.1/tests/test_html_report.py +136 -0
- aws_arch_agent-0.3.1/tests/test_hypotheses.py +850 -0
- aws_arch_agent-0.3.1/tests/test_iac_source.py +196 -0
- aws_arch_agent-0.3.1/tests/test_iam_admin_checks.py +323 -0
- aws_arch_agent-0.3.1/tests/test_iam_policy_checks.py +289 -0
- aws_arch_agent-0.3.1/tests/test_iam_trust_checks.py +249 -0
- aws_arch_agent-0.3.1/tests/test_identity_checks.py +389 -0
- aws_arch_agent-0.3.1/tests/test_imdsv2_checks.py +203 -0
- aws_arch_agent-0.3.1/tests/test_incident_readiness.py +170 -0
- aws_arch_agent-0.3.1/tests/test_incident_response.py +238 -0
- aws_arch_agent-0.3.1/tests/test_incident_routing.py +247 -0
- aws_arch_agent-0.3.1/tests/test_kms_ssm_checks.py +316 -0
- aws_arch_agent-0.3.1/tests/test_lambda_access_checks.py +154 -0
- aws_arch_agent-0.3.1/tests/test_lambda_runtime_checks.py +200 -0
- aws_arch_agent-0.3.1/tests/test_language.py +118 -0
- aws_arch_agent-0.3.1/tests/test_legacy_cf_checks.py +97 -0
- aws_arch_agent-0.3.1/tests/test_live_account.py +162 -0
- aws_arch_agent-0.3.1/tests/test_llm.py +236 -0
- aws_arch_agent-0.3.1/tests/test_load_balancer_checks.py +266 -0
- aws_arch_agent-0.3.1/tests/test_loose_coupling.py +286 -0
- aws_arch_agent-0.3.1/tests/test_markdown_report.py +118 -0
- aws_arch_agent-0.3.1/tests/test_monitoring_checks.py +601 -0
- aws_arch_agent-0.3.1/tests/test_monitoring_review.py +56 -0
- aws_arch_agent-0.3.1/tests/test_network_checks.py +376 -0
- aws_arch_agent-0.3.1/tests/test_network_connectivity.py +136 -0
- aws_arch_agent-0.3.1/tests/test_network_protection.py +274 -0
- aws_arch_agent-0.3.1/tests/test_network_resources.py +467 -0
- aws_arch_agent-0.3.1/tests/test_network_topology.py +306 -0
- aws_arch_agent-0.3.1/tests/test_new_rules_have_an_answer.py +96 -0
- aws_arch_agent-0.3.1/tests/test_nonprod.py +210 -0
- aws_arch_agent-0.3.1/tests/test_observability_telemetry.py +425 -0
- aws_arch_agent-0.3.1/tests/test_operations_automation.py +64 -0
- aws_arch_agent-0.3.1/tests/test_operations_evolution.py +93 -0
- aws_arch_agent-0.3.1/tests/test_operations_health.py +101 -0
- aws_arch_agent-0.3.1/tests/test_org_guardrails.py +243 -0
- aws_arch_agent-0.3.1/tests/test_org_rules.py +53 -0
- aws_arch_agent-0.3.1/tests/test_ownership.py +111 -0
- aws_arch_agent-0.3.1/tests/test_parameter_checks.py +77 -0
- aws_arch_agent-0.3.1/tests/test_performance_culture.py +113 -0
- aws_arch_agent-0.3.1/tests/test_permission_guardrails.py +207 -0
- aws_arch_agent-0.3.1/tests/test_permission_practices.py +147 -0
- aws_arch_agent-0.3.1/tests/test_pricing.py +346 -0
- aws_arch_agent-0.3.1/tests/test_pricing_models.py +540 -0
- aws_arch_agent-0.3.1/tests/test_priorities.py +109 -0
- aws_arch_agent-0.3.1/tests/test_public_ip_checks.py +169 -0
- aws_arch_agent-0.3.1/tests/test_python_kwargs.py +47 -0
- aws_arch_agent-0.3.1/tests/test_rag.py +108 -0
- aws_arch_agent-0.3.1/tests/test_rds_settings_checks.py +178 -0
- aws_arch_agent-0.3.1/tests/test_readiness.py +99 -0
- aws_arch_agent-0.3.1/tests/test_regions.py +200 -0
- aws_arch_agent-0.3.1/tests/test_release.py +115 -0
- aws_arch_agent-0.3.1/tests/test_reliability_practices.py +109 -0
- aws_arch_agent-0.3.1/tests/test_reliability_testing.py +235 -0
- aws_arch_agent-0.3.1/tests/test_repo_practices.py +237 -0
- aws_arch_agent-0.3.1/tests/test_report.py +63 -0
- aws_arch_agent-0.3.1/tests/test_report_docs.py +113 -0
- aws_arch_agent-0.3.1/tests/test_report_summary.py +195 -0
- aws_arch_agent-0.3.1/tests/test_resource_model.py +95 -0
- aws_arch_agent-0.3.1/tests/test_resource_policy_checks.py +315 -0
- aws_arch_agent-0.3.1/tests/test_restore_testing.py +126 -0
- aws_arch_agent-0.3.1/tests/test_rg_encoding.py +31 -0
- aws_arch_agent-0.3.1/tests/test_rule_cards.py +175 -0
- aws_arch_agent-0.3.1/tests/test_rules.py +409 -0
- aws_arch_agent-0.3.1/tests/test_rules_security.py +225 -0
- aws_arch_agent-0.3.1/tests/test_runner.py +274 -0
- aws_arch_agent-0.3.1/tests/test_s3_settings_checks.py +542 -0
- aws_arch_agent-0.3.1/tests/test_s3_tls_checks.py +355 -0
- aws_arch_agent-0.3.1/tests/test_sagemaker_fsx_checks.py +514 -0
- aws_arch_agent-0.3.1/tests/test_same_file_scope.py +22 -0
- aws_arch_agent-0.3.1/tests/test_sarif.py +22 -0
- aws_arch_agent-0.3.1/tests/test_search_streaming_checks.py +398 -0
- aws_arch_agent-0.3.1/tests/test_secret_cognito_checks.py +282 -0
- aws_arch_agent-0.3.1/tests/test_security_operations.py +127 -0
- aws_arch_agent-0.3.1/tests/test_service_boundaries.py +56 -0
- aws_arch_agent-0.3.1/tests/test_service_cost.py +101 -0
- aws_arch_agent-0.3.1/tests/test_service_quota_practices.py +154 -0
- aws_arch_agent-0.3.1/tests/test_service_quotas.py +204 -0
- aws_arch_agent-0.3.1/tests/test_single_location_recovery.py +122 -0
- aws_arch_agent-0.3.1/tests/test_smoke.py +11 -0
- aws_arch_agent-0.3.1/tests/test_source_regression.py +180 -0
- aws_arch_agent-0.3.1/tests/test_stack_cost.py +280 -0
- aws_arch_agent-0.3.1/tests/test_storage_scaling_checks.py +329 -0
- aws_arch_agent-0.3.1/tests/test_sustainability_process.py +123 -0
- aws_arch_agent-0.3.1/tests/test_sustainable_patterns.py +548 -0
- aws_arch_agent-0.3.1/tests/test_tag_policy.py +301 -0
- aws_arch_agent-0.3.1/tests/test_telemetry_analysis.py +432 -0
- aws_arch_agent-0.3.1/tests/test_terraform_model.py +530 -0
- aws_arch_agent-0.3.1/tests/test_terraform_variable_checks.py +187 -0
- aws_arch_agent-0.3.1/tests/test_themes.py +166 -0
- aws_arch_agent-0.3.1/tests/test_transit_encryption.py +117 -0
- aws_arch_agent-0.3.1/tests/test_unused_region.py +53 -0
- aws_arch_agent-0.3.1/tests/test_usage_governance.py +559 -0
- aws_arch_agent-0.3.1/tests/test_v1_cloudformation.py +185 -0
- aws_arch_agent-0.3.1/tests/test_v1_terraform.py +302 -0
- aws_arch_agent-0.3.1/tests/test_v2_graph.py +158 -0
- aws_arch_agent-0.3.1/tests/test_v2_merge.py +390 -0
- aws_arch_agent-0.3.1/tests/test_verdicts.py +754 -0
- aws_arch_agent-0.3.1/tests/test_version.py +37 -0
- aws_arch_agent-0.3.1/tests/test_warehouse_checks.py +278 -0
- aws_arch_agent-0.3.1/tests/test_well_architected.py +280 -0
- aws_arch_agent-0.3.1/tests/test_workload_monitoring.py +418 -0
|
@@ -0,0 +1,600 @@
|
|
|
1
|
+
{
|
|
2
|
+
"accepted": [
|
|
3
|
+
{
|
|
4
|
+
"id": "BP-001",
|
|
5
|
+
"file": null,
|
|
6
|
+
"evidence_hash": null
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"id": "BP-003",
|
|
10
|
+
"file": null,
|
|
11
|
+
"evidence_hash": null
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"id": "COST-001",
|
|
15
|
+
"file": "src/aws_arch_agent/rules/cf_template.py",
|
|
16
|
+
"evidence_hash": null
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"id": "COST-001",
|
|
20
|
+
"file": "src/aws_arch_agent/rules/cf_template.py",
|
|
21
|
+
"evidence_hash": "c8e86af77589ba23",
|
|
22
|
+
"logical_id": "\"CF-CW-001\": \"Log group has no retention period (infinite retention)\","
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"id": "COST-001",
|
|
26
|
+
"file": "src/aws_arch_agent/rules/cf_template.py",
|
|
27
|
+
"evidence_hash": "dbc72f9439ae7445",
|
|
28
|
+
"logical_id": "# RetentionDays.INFINITE synthesises to a log group with no RetentionInDays."
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"id": "COST-001",
|
|
32
|
+
"file": "src/aws_arch_agent/rules/cf_template.py",
|
|
33
|
+
"evidence_hash": "e6583ec41ab337f2",
|
|
34
|
+
"logical_id": "title=\"Log group has no retention period (infinite retention)\","
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"id": "COST-001",
|
|
38
|
+
"file": "src/aws_arch_agent/rules/cost.py",
|
|
39
|
+
"evidence_hash": null
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"id": "COST-001",
|
|
43
|
+
"file": "src/aws_arch_agent/rules/cost.py",
|
|
44
|
+
"evidence_hash": "bc47eeabddf17ff9",
|
|
45
|
+
"logical_id": "pattern = r'RetentionDays\\.INFINITE|retention\\s*:\\s*logs\\.RetentionDays\\.INFINITE' if language == \"typescript\" else r'INFINITE|retention.*infinite'"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"id": "COST-001",
|
|
49
|
+
"file": "src/aws_arch_agent/rules/cost.py",
|
|
50
|
+
"evidence_hash": "eb3ef62dac420324",
|
|
51
|
+
"logical_id": "title = \"Log retention may be infinite (cost risk)\""
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"id": "COST-001",
|
|
55
|
+
"file": "tests/test_rules.py",
|
|
56
|
+
"evidence_hash": null
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"id": "COST-004",
|
|
60
|
+
"file": "src/aws_arch_agent/rules/cf_template.py",
|
|
61
|
+
"evidence_hash": "3ab837e227b087c8",
|
|
62
|
+
"logical_id": "\"reservedConcurrentExecutions.\")"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"id": "COST-004",
|
|
66
|
+
"file": "src/aws_arch_agent/rules/cost.py",
|
|
67
|
+
"evidence_hash": null
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"id": "COST-004",
|
|
71
|
+
"file": "src/aws_arch_agent/rules/cost.py",
|
|
72
|
+
"evidence_hash": "76cb2e8924b63eb0",
|
|
73
|
+
"logical_id": "provisioned = rg(repo_path, r'provisionedConcurrentExecutions|reservedConcurrentExecutions', glob=code_glob(language))"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"id": "COST-004",
|
|
77
|
+
"file": "src/aws_arch_agent/rules/operational_excellence.py",
|
|
78
|
+
"evidence_hash": null
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"id": "COST-005",
|
|
82
|
+
"file": null,
|
|
83
|
+
"evidence_hash": null
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"id": "COST-007",
|
|
87
|
+
"file": null,
|
|
88
|
+
"evidence_hash": null
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"id": "COST-008",
|
|
92
|
+
"file": "src/aws_arch_agent/pricing/__init__.py",
|
|
93
|
+
"evidence_hash": "c95f3034dc0716fd",
|
|
94
|
+
"logical_id": "ebs:gp2, ebs:gp3, ebs:io2 USD per GB-month"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"id": "COST-008",
|
|
98
|
+
"file": "src/aws_arch_agent/pricing/build.py",
|
|
99
|
+
"evidence_hash": "1545ee38dc4c2364",
|
|
100
|
+
"logical_id": "return f\"ebs:{api}\" if api in (\"gp2\", \"gp3\", \"io2\") else None"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"id": "COST-008",
|
|
104
|
+
"file": "src/aws_arch_agent/rules/cost.py",
|
|
105
|
+
"evidence_hash": null
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"id": "COST-010",
|
|
109
|
+
"file": "tests/fixtures/rules/rds_no_multiaz.ts",
|
|
110
|
+
"evidence_hash": null
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"id": "COST-010",
|
|
114
|
+
"file": "tests/test_rules.py",
|
|
115
|
+
"evidence_hash": null
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"id": "COST-013",
|
|
119
|
+
"file": null,
|
|
120
|
+
"evidence_hash": null
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"id": "COST-014",
|
|
124
|
+
"file": null,
|
|
125
|
+
"evidence_hash": null
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"id": "COST-016",
|
|
129
|
+
"file": null,
|
|
130
|
+
"evidence_hash": null
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"id": "COST-018",
|
|
134
|
+
"file": null,
|
|
135
|
+
"evidence_hash": null
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"id": "OPS-001",
|
|
139
|
+
"file": null,
|
|
140
|
+
"evidence_hash": null
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"id": "OPS-009",
|
|
144
|
+
"file": "tests/fixtures/rules/rds_no_multiaz.ts",
|
|
145
|
+
"evidence_hash": null
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"id": "OPS-010",
|
|
149
|
+
"file": null,
|
|
150
|
+
"evidence_hash": null
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"id": "OPS-014",
|
|
154
|
+
"file": null,
|
|
155
|
+
"evidence_hash": null
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"id": "OPS-021",
|
|
159
|
+
"file": null,
|
|
160
|
+
"evidence_hash": null
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"id": "PERF-002",
|
|
164
|
+
"file": null,
|
|
165
|
+
"evidence_hash": null
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"id": "PERF-014",
|
|
169
|
+
"file": null,
|
|
170
|
+
"evidence_hash": null
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"id": "PERF-016",
|
|
174
|
+
"file": null,
|
|
175
|
+
"evidence_hash": null
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"id": "PERF-019",
|
|
179
|
+
"file": null,
|
|
180
|
+
"evidence_hash": null
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"id": "REL-001",
|
|
184
|
+
"file": "tests/fixtures/rules/rds_no_multiaz.ts",
|
|
185
|
+
"evidence_hash": null
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"id": "REL-001",
|
|
189
|
+
"file": "tests/test_rules.py",
|
|
190
|
+
"evidence_hash": null
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"id": "REL-002",
|
|
194
|
+
"file": "tests/fixtures/rules/rds_no_multiaz.ts",
|
|
195
|
+
"evidence_hash": null
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"id": "REL-011",
|
|
199
|
+
"file": "tests/fixtures/rules/rds_no_multiaz.ts",
|
|
200
|
+
"evidence_hash": null
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"id": "REL-013",
|
|
204
|
+
"file": null,
|
|
205
|
+
"evidence_hash": null
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"id": "REL-026",
|
|
209
|
+
"file": null,
|
|
210
|
+
"evidence_hash": null
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"id": "REL-030",
|
|
214
|
+
"file": "tests/fixtures/rules/rds_no_multiaz.ts",
|
|
215
|
+
"evidence_hash": null
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"id": "REL-031",
|
|
219
|
+
"file": "tests/fixtures/rules/s3_no_encryption.ts",
|
|
220
|
+
"evidence_hash": null
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"id": "REL-032",
|
|
224
|
+
"file": "src/aws_arch_agent/rules/reliability.py",
|
|
225
|
+
"evidence_hash": "8fa4826e4e138315",
|
|
226
|
+
"logical_id": "# ec2.Vpc( / new Vpc( in TypeScript and Python."
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"id": "REPO-003",
|
|
230
|
+
"file": null,
|
|
231
|
+
"evidence_hash": "5b9b20ea55f8c1a5",
|
|
232
|
+
"logical_id": "Environments named in IaC paths, tfvars and parameter files, CDK stack ids and cdk.json context: none; two or more expected"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"id": "REPO-013",
|
|
236
|
+
"file": null,
|
|
237
|
+
"evidence_hash": "ec77d75d8ffd399d",
|
|
238
|
+
"logical_id": "Elastic IPs (EIP resources and CDK NAT gateways) number 6 (src/aws_arch_agent/rules/nonprod.py 1, src/aws_arch_agent/rules/reliability.py 2, src/aws_arch_agent/rules/repo_practices.py 1, src/aws_arch_agent/rules/resource_model.py 1, src/aws_arch_agent/rules/tag_policy.py 1); the default quota is 5 per Region; over half leaves no room for failover"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"id": "REPO-021",
|
|
242
|
+
"file": "src/aws_arch_agent/rules/repo_practices.py",
|
|
243
|
+
"evidence_hash": "353adaed373a70d6",
|
|
244
|
+
"logical_id": "Deploys from src/aws_arch_agent/rules/repo_practices.py (line 159) with no test that can fail before the deploy; searched each build config and the package.json scripts it runs for a test (npm, yarn or pnpm test, jest, vitest, pytest, tox, go test, terraform test, taskcat, cfn-guard, mvn, gradle, dotnet, cargo or make test, a CodePipeline test action) ahead of it; found none"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"id": "REPO-023",
|
|
248
|
+
"file": "src/aws_arch_agent/rules/repo_practices.py",
|
|
249
|
+
"evidence_hash": "a9fe6143a4575b81",
|
|
250
|
+
"logical_id": "Changes running instances in place instead of replacing them: ansible-playbook in src/aws_arch_agent/rules/repo_practices.py (line 2988)"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"id": "REPO-024",
|
|
254
|
+
"file": "src/aws_arch_agent/rules/repo_practices.py",
|
|
255
|
+
"evidence_hash": "a0ec16101854e70e",
|
|
256
|
+
"logical_id": "Deploys from src/aws_arch_agent/rules/repo_practices.py (line 159) with no functional test that can fail after the deploy; searched each build config and the package.json scripts it runs for a test (the test commands REPO-021 knows, curl with a fail flag against a URL, Newman, Playwright, Cypress, integ, e2e or smoke package scripts, the CDK integ runner, a CodePipeline test action, a CDK pipelines post step) after a deploy, and before the last deploy when it deploys more than once; found none"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"id": "REPO-027",
|
|
260
|
+
"file": null,
|
|
261
|
+
"evidence_hash": "6c7a11ced0440bb0",
|
|
262
|
+
"logical_id": "Runs Lambda (src/aws_arch_agent/rules/fix_snippets.py), ECS service (src/aws_arch_agent/rules/fix_snippets.py), EKS cluster (src/aws_arch_agent/rules/fix_snippets.py), EC2 (src/aws_arch_agent/rules/fix_snippets.py), App Runner (src/aws_arch_agent/rules/fix_snippets.py); searched the IaC for an alarm on a metric outside AWS/, an edge latency or 5xx metric, a datastore or queue metric, or with anomaly detection; the alarms in src/aws_arch_agent/rules/fix_snippets.py watch no workload metric"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"id": "REPO-028",
|
|
266
|
+
"file": null,
|
|
267
|
+
"evidence_hash": "f0c089d89ce93be9",
|
|
268
|
+
"logical_id": "Runs Lambda (src/aws_arch_agent/rules/fix_snippets.py), ECS service (src/aws_arch_agent/rules/fix_snippets.py), EKS cluster (src/aws_arch_agent/rules/fix_snippets.py), EC2 (src/aws_arch_agent/rules/fix_snippets.py), App Runner (src/aws_arch_agent/rules/fix_snippets.py); searched the IaC for a CloudWatch Logs metric filter, a Contributor Insights rule, a Logs Insights saved query, a log anomaly detector, and a subscription filter; found none"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"id": "REPO-029",
|
|
272
|
+
"file": null,
|
|
273
|
+
"evidence_hash": "efe7353e6a12ab46",
|
|
274
|
+
"logical_id": "Runs Lambda (src/aws_arch_agent/rules/fix_snippets.py), ECS service (src/aws_arch_agent/rules/fix_snippets.py), EKS cluster (src/aws_arch_agent/rules/fix_snippets.py), EC2 (src/aws_arch_agent/rules/fix_snippets.py), App Runner (src/aws_arch_agent/rules/fix_snippets.py); searched the IaC for an X-Ray group or sampling rule, CloudWatch Application Signals service level objectives or discovery, and an alarm on an Application Signals or X-Ray metric; found none"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"id": "REPO-034",
|
|
278
|
+
"file": null,
|
|
279
|
+
"evidence_hash": "f0bc74fa94ea52e7",
|
|
280
|
+
"logical_id": "Sends traffic out through NAT gateway (src/aws_arch_agent/rules/fix_snippets.py); searched the IaC for AWS Network Firewall, a Route 53 Resolver DNS Firewall association, and a Gateway Load Balancer endpoint; found none"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"id": "REPO-035",
|
|
284
|
+
"file": null,
|
|
285
|
+
"evidence_hash": "47403310c8fc52c4",
|
|
286
|
+
"logical_id": "Exposes API Gateway (src/aws_arch_agent/rules/fix_snippets.py), load balancer (src/aws_arch_agent/rules/fix_snippets.py), CloudFront (src/aws_arch_agent/rules/fix_snippets.py), NAT gateway (src/aws_arch_agent/rules/fix_snippets.py); searched the IaC for a WAF AWS managed rule group, Shield Advanced protection, a Firewall Manager policy, and AWS managed threat signatures or domain lists in Network Firewall or DNS Firewall; found none"
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"id": "REPO-037",
|
|
290
|
+
"file": null,
|
|
291
|
+
"evidence_hash": "16275947af6545bf",
|
|
292
|
+
"logical_id": "Deploys Lambda functions (src/aws_arch_agent/rules/fix_snippets.py); searched the IaC for a Lambda code signing config and an AWS Signer Notation profile, and the builds for notation sign or cosign sign; found none for these"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"id": "REPO-039",
|
|
296
|
+
"file": null,
|
|
297
|
+
"evidence_hash": "9eabaa52deb99cab",
|
|
298
|
+
"logical_id": "Declares S3 bucket in src/aws_arch_agent/rules/fix_snippets.py, S3 bucket in src/aws_arch_agent/rules/security_storage.py with no classification tag (DataClassification, Classification, Confidentiality or Sensitivity) on the store or the app"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"id": "REPO-045",
|
|
302
|
+
"file": "src/aws_arch_agent/rules/fix_snippets.py",
|
|
303
|
+
"evidence_hash": "52314ac0d039911d",
|
|
304
|
+
"logical_id": "Declares CloudWatch alarms without a metric or a threshold: $tf_name at src/aws_arch_agent/rules/fix_snippets.py:536 (no metric or threshold)"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
"id": "REPO-046",
|
|
308
|
+
"file": "src/aws_arch_agent/rules/fix_snippets.py",
|
|
309
|
+
"evidence_hash": "d184ceff7de5975f",
|
|
310
|
+
"logical_id": "Runs Lambda (src/aws_arch_agent/rules/fix_snippets.py), ECS service (src/aws_arch_agent/rules/fix_snippets.py), EKS cluster (src/aws_arch_agent/rules/fix_snippets.py), EC2 (src/aws_arch_agent/rules/fix_snippets.py), App Runner (src/aws_arch_agent/rules/fix_snippets.py); searched the IaC for a CloudWatch Logs metric filter on errors, a log anomaly detector, a Logs Insights saved query and a subscription filter; found none"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"id": "REPO-049",
|
|
314
|
+
"file": "src/aws_arch_agent/rules/fix_snippets.py",
|
|
315
|
+
"evidence_hash": "7a4a05066e06b595",
|
|
316
|
+
"logical_id": "Fleets that cannot grow on demand: ECS service $tf_name at src/aws_arch_agent/rules/fix_snippets.py:716 (no Application Auto Scaling target on its tasks), ECS service $tf_name at src/aws_arch_agent/rules/fix_snippets.py:3908 (no Application Auto Scaling target on its tasks), ECS service $tf_name at src/aws_arch_agent/rules/fix_snippets.py:3943 (no Application Auto Scaling target on its tasks)"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"id": "REPO-050",
|
|
320
|
+
"file": "src/aws_arch_agent/rules/fix_snippets.py",
|
|
321
|
+
"evidence_hash": "6b6a47d15800e443",
|
|
322
|
+
"logical_id": "Every scaling policy reacts to CPU or memory (${tf_name}_cpu at src/aws_arch_agent/rules/fix_snippets.py:4225); none scales on queue depth, request count, latency, error rate or a forecast"
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"id": "REPO-052",
|
|
326
|
+
"file": null,
|
|
327
|
+
"evidence_hash": "945367f361f3ad52",
|
|
328
|
+
"logical_id": "Runs S3 bucket (src/aws_arch_agent/rules/fix_snippets.py), DynamoDB table (src/aws_arch_agent/rules/fix_snippets.py), RDS database (src/aws_arch_agent/rules/fix_snippets.py), ElastiCache (src/aws_arch_agent/rules/fix_snippets.py), OpenSearch domain (src/aws_arch_agent/rules/fix_snippets.py), EFS file system (src/aws_arch_agent/rules/fix_snippets.py), Redshift cluster (src/aws_arch_agent/rules/fix_snippets.py), DocumentDB cluster (src/aws_arch_agent/rules/fix_snippets.py), Neptune cluster (src/aws_arch_agent/rules/fix_snippets.py), Kinesis stream (src/aws_arch_agent/rules/fix_snippets.py), Lambda (src/aws_arch_agent/rules/fix_snippets.py), ECS service (src/aws_arch_agent/rules/fix_snippets.py), EKS cluster (src/aws_arch_agent/rules/fix_snippets.py), EC2 (src/aws_arch_agent/rules/fix_snippets.py), App Runner (src/aws_arch_agent/rules/fix_snippets.py); searched the IaC for a Resilience Hub resiliency policy and for a recovery time or recovery point objective tag or context key; found none"
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"id": "REPO-055",
|
|
332
|
+
"file": "src/aws_arch_agent/rules/fix_snippets.py",
|
|
333
|
+
"evidence_hash": "f5f1b177fc25910b",
|
|
334
|
+
"logical_id": "Copies data to another Region with S3 replication (src/aws_arch_agent/rules/fix_snippets.py), AWS Backup copy action (src/aws_arch_agent/rules/fix_snippets.py); searched the IaC for StackSets, a readiness check, a Config aggregator and one stack or module deployed to two Regions, and the builds for drift detection; found none"
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"id": "REPO-056",
|
|
338
|
+
"file": null,
|
|
339
|
+
"evidence_hash": "92245be7df619bad",
|
|
340
|
+
"logical_id": "Turns off automatic recovery for an EC2 instance at src/aws_arch_agent/rules/repo_practices.py (line 430)"
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"id": "REPO-058",
|
|
344
|
+
"file": "src/aws_arch_agent/rules/fix_snippets.py",
|
|
345
|
+
"evidence_hash": "fa4afeeeab92c45b",
|
|
346
|
+
"logical_id": "Serves users through API Gateway (src/aws_arch_agent/rules/fix_snippets.py), load balancer (src/aws_arch_agent/rules/fix_snippets.py), CloudFront (src/aws_arch_agent/rules/fix_snippets.py); searched the IaC for an alarm on an edge 5xx, error or latency metric and an Application Signals service level objective; found none"
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"id": "REPO-061",
|
|
350
|
+
"file": "src/aws_arch_agent/rules/fix_snippets.py",
|
|
351
|
+
"evidence_hash": "7247b1b01ac12516",
|
|
352
|
+
"logical_id": "Production compute that does not scale dynamically: ECS service $tf_name at src/aws_arch_agent/rules/fix_snippets.py:716 (no scaling policy on its task count), ECS service $tf_name at src/aws_arch_agent/rules/fix_snippets.py:3908 (no scaling policy on its task count), ECS service $tf_name at src/aws_arch_agent/rules/fix_snippets.py:3943 (no scaling policy on its task count)"
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"id": "REPO-064",
|
|
356
|
+
"file": null,
|
|
357
|
+
"evidence_hash": "f473e8d1587dfa80",
|
|
358
|
+
"logical_id": "Serves users through API Gateway in src/aws_arch_agent/rules/fix_snippets.py, load balancer in src/aws_arch_agent/rules/fix_snippets.py, CloudFront in src/aws_arch_agent/rules/fix_snippets.py; searched the IaC for an alarm on TargetResponseTime, Latency, IntegrationLatency or OriginLatency; found none"
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
"id": "REPO-071",
|
|
362
|
+
"file": null,
|
|
363
|
+
"evidence_hash": "406fcccef050fe56",
|
|
364
|
+
"logical_id": "Runs Lambda in src/aws_arch_agent/rules/fix_snippets.py, ECS service in src/aws_arch_agent/rules/fix_snippets.py, EKS cluster in src/aws_arch_agent/rules/fix_snippets.py, EC2 in src/aws_arch_agent/rules/fix_snippets.py and 1 more; searched the IaC and code for a metric name, metric filter, metric math label or embedded metric named like CostPerRequest or UnitCost; found none"
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"id": "REPO-072",
|
|
368
|
+
"file": null,
|
|
369
|
+
"evidence_hash": "720d63993bfd8f92",
|
|
370
|
+
"logical_id": "Runs Lambda in src/aws_arch_agent/rules/fix_snippets.py, ECS service in src/aws_arch_agent/rules/fix_snippets.py, EKS cluster in src/aws_arch_agent/rules/fix_snippets.py, EC2 in src/aws_arch_agent/rules/fix_snippets.py and 1 more; searched the IaC for metric math that combines a cost metric (EstimatedCharges or a unit cost) with a workload metric; found none"
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"id": "REPO-076",
|
|
374
|
+
"file": null,
|
|
375
|
+
"evidence_hash": "3c6bdddfe4ffb650",
|
|
376
|
+
"logical_id": "Runs Lambda in src/aws_arch_agent/rules/fix_snippets.py, ECS service in src/aws_arch_agent/rules/fix_snippets.py, EKS cluster in src/aws_arch_agent/rules/fix_snippets.py, EC2 in src/aws_arch_agent/rules/fix_snippets.py and 1 more; searched the IaC for a budget named per request, tenant, order, user or transaction and for a unit-cost metric; found none"
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"id": "REPO-077",
|
|
380
|
+
"file": null,
|
|
381
|
+
"evidence_hash": "27ac88213c0cd156",
|
|
382
|
+
"logical_id": "Declares Lambda in src/aws_arch_agent/rules/fix_snippets.py, ECS service in src/aws_arch_agent/rules/fix_snippets.py, EKS cluster in src/aws_arch_agent/rules/fix_snippets.py and 15 more; no finance or engineering contact is named: searched the repo for a cost note (COST.md, FINOPS.md, docs/cost*.md, or a README or docs section headed Cost, FinOps or Cost ownership) that names an owner, contact, responsible or accountable person or team; found none"
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"id": "REPO-078",
|
|
386
|
+
"file": null,
|
|
387
|
+
"evidence_hash": "0deabd98ad0af22c",
|
|
388
|
+
"logical_id": "Declares Lambda in src/aws_arch_agent/rules/fix_snippets.py, ECS service in src/aws_arch_agent/rules/fix_snippets.py, EKS cluster in src/aws_arch_agent/rules/fix_snippets.py and 15 more; searched pull and merge request templates for a cost checklist item; found none; searched the repo for a cost note (COST.md, FINOPS.md, docs/cost*.md, or a README or docs section headed Cost, FinOps or Cost ownership) that names an owner, contact, responsible or accountable person or team; found none"
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
"id": "REPO-079",
|
|
392
|
+
"file": null,
|
|
393
|
+
"evidence_hash": "b2a917fbba252920",
|
|
394
|
+
"logical_id": "Declares Lambda in src/aws_arch_agent/rules/fix_snippets.py, ECS service in src/aws_arch_agent/rules/fix_snippets.py, EKS cluster in src/aws_arch_agent/rules/fix_snippets.py and 15 more; the team has no shared cost guidance: searched the repo for a cost note (COST.md, FINOPS.md, docs/cost*.md, or a README or docs section headed Cost, FinOps or Cost ownership) that names an owner, contact, responsible or accountable person or team; found none"
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"id": "REPO-088",
|
|
398
|
+
"file": null,
|
|
399
|
+
"evidence_hash": "56c56d97967115fb",
|
|
400
|
+
"logical_id": "Declares Lambda in src/aws_arch_agent/rules/fix_snippets.py, ECS service in src/aws_arch_agent/rules/fix_snippets.py, EKS cluster in src/aws_arch_agent/rules/fix_snippets.py and 15 more; searched CI for infracost breakdown, diff or comment, the repo for an Infracost or cost-estimate config, and notes named or headed cost estimate, cost model, estimated cost or pricing that give an amount or a Pricing Calculator link; found none"
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"id": "REPO-089",
|
|
404
|
+
"file": null,
|
|
405
|
+
"evidence_hash": "99254ac141c3fddf",
|
|
406
|
+
"logical_id": "Creates its own ECS cluster in src/aws_arch_agent/rules/fix_snippets.py, EKS cluster in src/aws_arch_agent/rules/fix_snippets.py, VPC in src/aws_arch_agent/rules/reliability.py; searched the IaC for a looked-up or imported VPC, subnet, cluster or bucket (fromLookup, from*Attributes, Terraform data sources or remote state, ImportValue, an SSM VPC id parameter), an AWS RAM share, and a Tenancy tag or single-tenant comment; found none"
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
"id": "SEC-001",
|
|
410
|
+
"file": "src/aws_arch_agent/rules/fix_snippets.py",
|
|
411
|
+
"evidence_hash": "1dd7d621c06936cf",
|
|
412
|
+
"logical_id": "Action = \"kms:*\""
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"id": "SEC-001",
|
|
416
|
+
"file": "src/aws_arch_agent/rules/fix_snippets.py",
|
|
417
|
+
"evidence_hash": "c45e987572241fc9",
|
|
418
|
+
"logical_id": "Action = \"s3:*\""
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
"id": "SEC-001",
|
|
422
|
+
"file": "src/aws_arch_agent/rules/security_iam.py",
|
|
423
|
+
"evidence_hash": null
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"id": "SEC-001",
|
|
427
|
+
"file": "tests/fixtures/rules/iam_wildcard.ts",
|
|
428
|
+
"evidence_hash": null
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
"id": "SEC-002",
|
|
432
|
+
"file": "src/aws_arch_agent/rules/fix_snippets.py",
|
|
433
|
+
"evidence_hash": "4eef4d8c87a75b5c",
|
|
434
|
+
"logical_id": "Resource = \"*\""
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"id": "SEC-002",
|
|
438
|
+
"file": "tests/fixtures/rules/iam_wildcard.ts",
|
|
439
|
+
"evidence_hash": null
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"id": "SEC-002",
|
|
443
|
+
"file": "tests/test_cf_template.py",
|
|
444
|
+
"evidence_hash": null
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
"id": "SEC-003",
|
|
448
|
+
"file": "src/aws_arch_agent/rules/cf_template.py",
|
|
449
|
+
"evidence_hash": null
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
"id": "SEC-003",
|
|
453
|
+
"file": "src/aws_arch_agent/rules/cf_template.py",
|
|
454
|
+
"evidence_hash": "189930af7a8dcddf",
|
|
455
|
+
"logical_id": "\"Allow port 22 and 3389 only from known CIDRs, or deny them, in the network ACL \""
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"id": "SEC-003",
|
|
459
|
+
"file": "src/aws_arch_agent/rules/fix_snippets.py",
|
|
460
|
+
"evidence_hash": "40ddfe5cd90af1a7",
|
|
461
|
+
"logical_id": "from_port = 22"
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
"id": "SEC-003",
|
|
465
|
+
"file": "src/aws_arch_agent/rules/fix_snippets.py",
|
|
466
|
+
"evidence_hash": "45e71837f509d2f3",
|
|
467
|
+
"logical_id": "from_port = 22 # the flagged port"
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
"id": "SEC-003",
|
|
471
|
+
"file": "src/aws_arch_agent/rules/fix_snippets.py",
|
|
472
|
+
"evidence_hash": "6260ef0ec7220cc6",
|
|
473
|
+
"logical_id": "FromPort: 22 # the flagged port"
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
"id": "SEC-003",
|
|
477
|
+
"file": "src/aws_arch_agent/rules/fix_snippets.py",
|
|
478
|
+
"evidence_hash": "9173a2419bd74b3b",
|
|
479
|
+
"logical_id": "from_port = 22 # the flagged port"
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
"id": "SEC-003",
|
|
483
|
+
"file": "src/aws_arch_agent/rules/fix_snippets.py",
|
|
484
|
+
"evidence_hash": "b934aa70e81ca5ae",
|
|
485
|
+
"logical_id": "from_port = 22"
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
"id": "SEC-003",
|
|
489
|
+
"file": "src/aws_arch_agent/rules/security_network.py",
|
|
490
|
+
"evidence_hash": null
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
"id": "SEC-003",
|
|
494
|
+
"file": "tests/fixtures/rules/open_ssh.ts",
|
|
495
|
+
"evidence_hash": null
|
|
496
|
+
},
|
|
497
|
+
{
|
|
498
|
+
"id": "SEC-003",
|
|
499
|
+
"file": "tests/test_cf_template.py",
|
|
500
|
+
"evidence_hash": null
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
"id": "SEC-003",
|
|
504
|
+
"file": "tests/test_rules_security.py",
|
|
505
|
+
"evidence_hash": null
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
"id": "SEC-004",
|
|
509
|
+
"file": "tests/test_rules_security.py",
|
|
510
|
+
"evidence_hash": null
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
"id": "SEC-005",
|
|
514
|
+
"file": "src/aws_arch_agent/rules/repo_practices.py",
|
|
515
|
+
"evidence_hash": "a62299936d94e773",
|
|
516
|
+
"logical_id": "# A CDK construct: new s3.Bucket(this, ...), s3.Bucket(self, ...)."
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
"id": "SEC-005",
|
|
520
|
+
"file": "tests/fixtures/rules/s3_no_encryption.ts",
|
|
521
|
+
"evidence_hash": null
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
"id": "SEC-006",
|
|
525
|
+
"file": "tests/fixtures/rules/s3_no_encryption.ts",
|
|
526
|
+
"evidence_hash": null
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
"id": "SEC-007",
|
|
530
|
+
"file": "src/aws_arch_agent/rules/fix_snippets.py",
|
|
531
|
+
"evidence_hash": "4f150a4aa2998ea6",
|
|
532
|
+
"logical_id": "Principal: \"*\""
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
"id": "SEC-007",
|
|
536
|
+
"file": "src/aws_arch_agent/rules/fix_snippets.py",
|
|
537
|
+
"evidence_hash": "5bf2aea4fd35efd1",
|
|
538
|
+
"logical_id": "Principal = \"*\""
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
"id": "SEC-007",
|
|
542
|
+
"file": "src/aws_arch_agent/rules/security_iam.py",
|
|
543
|
+
"evidence_hash": null
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
"id": "SEC-012",
|
|
547
|
+
"file": "src/aws_arch_agent/rules/cf_template.py",
|
|
548
|
+
"evidence_hash": "5c63f2d091d63ee6",
|
|
549
|
+
"logical_id": "_DEFAULT_ELB_POLICY = \"ELBSecurityPolicy-2016-08\""
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
"id": "SEC-012",
|
|
553
|
+
"file": "src/aws_arch_agent/rules/cf_template.py",
|
|
554
|
+
"evidence_hash": "6bad22b71159f787",
|
|
555
|
+
"logical_id": "(\"No SslPolicy is set, so the listener uses ELBSecurityPolicy-2016-08, which allows \""
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
"id": "SEC-012",
|
|
559
|
+
"file": "src/aws_arch_agent/rules/cf_template.py",
|
|
560
|
+
"evidence_hash": "c9475ae120f8bc7e",
|
|
561
|
+
"logical_id": "# ELBv2 security policies that allow TLS 1.0 or 1.1. ELBSecurityPolicy-2016-08 is also"
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
"id": "SEC-021",
|
|
565
|
+
"file": "tests/fixtures/rules/rds_no_multiaz.ts",
|
|
566
|
+
"evidence_hash": null
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
"id": "SEC-026",
|
|
570
|
+
"file": null,
|
|
571
|
+
"evidence_hash": null
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
"id": "SEC-027",
|
|
575
|
+
"file": null,
|
|
576
|
+
"evidence_hash": null
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
"id": "SEC-054",
|
|
580
|
+
"file": "tests/fixtures/rules/open_ssh.ts",
|
|
581
|
+
"evidence_hash": null
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
"id": "SEC-064",
|
|
585
|
+
"file": "tests/fixtures/rules/rds_no_multiaz.ts",
|
|
586
|
+
"evidence_hash": null
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
"id": "SEC-065",
|
|
590
|
+
"file": null,
|
|
591
|
+
"evidence_hash": null
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
"id": "SUST-007",
|
|
595
|
+
"file": "src/aws_arch_agent/rules/generations.py",
|
|
596
|
+
"evidence_hash": "a3c80ab82628c587",
|
|
597
|
+
"logical_id": "m4.large -> m7i.large, db.m4.large -> db.m6i.large, m4.large.search -> m5.large.search."
|
|
598
|
+
}
|
|
599
|
+
]
|
|
600
|
+
}
|