status
Instant health dashboard for your deployment. Exits cleanly when healthy; hands off to diagnose automatically when degraded.
What it does
Section titled “What it does”- Queries ECS (
desiredCountvsrunningCount/pendingCount) and project-prefixed CloudWatch alarms. - Prints a color-coded dashboard: service status, replicas (green/yellow/red), and alarm states.
- If degraded (
runningCount < desiredCountor any alarm firing), prints the degraded notice, invokesdiagnose, and exits 1. - Resolves region like
logs(--region→AWS_REGION→terraform/main.tf→us-east-2); cluster, service, and log group default to<project-name>-cluster,<project-name>-service,/ecs/<project-name>(overridable viaECS_CLUSTER/ECS_SERVICE/ECS_LOG_GROUP). - Emits a
status_runtelemetry event recording health and outcome.
npx deploy-stack statusnpx deploy-stack status --json| Flag | Description |
|---|---|
--json |
Output the raw status payload as JSON; disables auto-diagnose. |
--region <region> |
Explicit AWS region override. |