Phase 2 sections 2-6 and 8 of docs/SCALE-EXPANSION.md: - pkg/telemetry + pkg/metrics: OpenTelemetry trace propagation and Prometheus metrics across every service hop (CLI -> agent -> gateway -> card-issuance/tenant-registry/auth -> ledger-core), tracing added to ledger-core itself via services/ledger-core/src/telemetry.rs. - infra/: otel-collector + Prometheus + Grafana docker-compose stack, a Terraform ECS Fargate module + dev/staging/prod envs (plan-only, no apply — real AWS spend is an owner action), and a dev-only mTLS CA (infra/dev-ca) wired through pkg/mtls + services/ledger-core/src/mtls.rs. - services/audit-log (from the prior commit) gets its async mirror writer in services/ledger-core/src/audit_mirror.rs, and services/gateway gets a per-tenant token-bucket rate limiter (internal/ratelimit). - Test depth: a Rust proptest suite proving concurrent ApplyEntry never breaches the reserve floor (tests/apply_entry_proptest.rs, passing), a Go fuzz seed corpus for the policy envelope (rules_fuzz_test.go), a libFuzzer harness for the C WAL frame parser (services/wal/fuzz, deliberately not wired into `make test` per its own Makefile comment - needs a libFuzzer-bundled clang), and a real chaos test (scripts/chaos/kill-ledger-mid-write.sh) that SIGKILLs ledger-core mid-write under concurrent load and verifies via ListEntries that nothing was lost or double-applied. - docs/formal/ledger.tla: a TLA+ spec of the ledger state machine (balance >= reserve_floor safety, HOLD-eventually-resolves liveness) plus a TLC model config - not run through TLC in this pass, that's a precise documented TODO, not faked. - docs/adr/0001-0004, docs/RUNBOOK.md, docs/SLO.md, docs/THREAT-MODEL.md. Verified: `make build && make test` clean (C WAL, Rust incl. the new proptest suite, all 10 Go modules) from a cold target. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
45 lines
1.4 KiB
HCL
45 lines
1.4 KiB
HCL
output "service_name" {
|
|
description = "ECS service name."
|
|
value = aws_ecs_service.this.name
|
|
}
|
|
|
|
output "service_id" {
|
|
description = "ECS service ID (cluster/service ARN-ish identifier used by other AWS APIs)."
|
|
value = aws_ecs_service.this.id
|
|
}
|
|
|
|
output "task_definition_arn" {
|
|
description = "ARN of the registered task definition (includes revision)."
|
|
value = aws_ecs_task_definition.this.arn
|
|
}
|
|
|
|
output "security_group_id" {
|
|
description = "Security group ID attached to this service's task ENIs."
|
|
value = aws_security_group.this.id
|
|
}
|
|
|
|
output "log_group_name" {
|
|
description = "CloudWatch log group name for this service's container logs."
|
|
value = aws_cloudwatch_log_group.this.name
|
|
}
|
|
|
|
output "target_group_arn" {
|
|
description = "ALB target group ARN, if enable_alb is true; null otherwise."
|
|
value = var.enable_alb ? aws_lb_target_group.this[0].arn : null
|
|
}
|
|
|
|
output "service_discovery_arn" {
|
|
description = "Cloud Map service ARN, if enable_service_discovery is true; null otherwise."
|
|
value = var.enable_service_discovery ? aws_service_discovery_service.this[0].arn : null
|
|
}
|
|
|
|
output "task_role_arn" {
|
|
description = "IAM role ARN assumed by the running task (the service's own runtime permissions)."
|
|
value = aws_iam_role.task.arn
|
|
}
|
|
|
|
output "execution_role_arn" {
|
|
description = "IAM role ARN ECS uses to pull the image, write logs, and read secrets."
|
|
value = aws_iam_role.execution.arn
|
|
}
|