Skip to content

Environment State

Track what’s deployed to each environment across your solutions.

Environment state tracks:

  • Which solution versions are deployed
  • When deployments occurred
  • Current health of each environment
┌─────────────────────────────────────────────────────────────┐
│ Environment State: Production │
├─────────────────────────────────────────────────────────────┤
│ │
│ ┌────────────────────┬─────────┬────────────────────────┐ │
│ │ Solution │ Version │ Last Deployed │ │
│ ├────────────────────┼─────────┼────────────────────────┤ │
│ │ customer-portal │ 1.3.0 │ Today at 14:30 │ │
│ │ auth-service │ 2.1.0 │ Yesterday │ │
│ │ payment-gateway │ 1.0.5 │ 3 days ago │ │
│ │ notification-svc │ 0.9.2 │ 1 week ago │ │
│ └────────────────────┴─────────┴────────────────────────┘ │
│ │
└─────────────────────────────────────────────────────────────┘

Navigate to an environment to see all deployed solutions:

┌─────────────────────────────────────────────────────────────┐
│ Production │
├─────────────────────────────────────────────────────────────┤
│ │
│ Description: Live customer-facing environment │
│ Targets: 12 (11 online, 1 stale) │
│ │
│ ───────────────────────────────────────────────────────── │
│ │
│ Deployed Solutions: │
│ │
│ ┌────────────────────┬─────────┬────────────┬────────────┐ │
│ │ Solution │ Version │ State │ Actions │ │
│ ├────────────────────┼─────────┼────────────┼────────────┤ │
│ │ customer-portal │ 1.3.0 │ Deployed │ [Rollback] │ │
│ │ auth-service │ 2.1.0 │ Deployed │ [Rollback] │ │
│ │ payment-gateway │ 1.0.5 │ Deployed │ [Rollback] │ │
│ └────────────────────┴─────────┴────────────┴────────────┘ │
│ │
└─────────────────────────────────────────────────────────────┘

See where a solution is deployed across environments:

┌─────────────────────────────────────────────────────────────┐
│ customer-portal │
├─────────────────────────────────────────────────────────────┤
│ │
│ Environment State: │
│ │
│ ┌────────────┬─────────┬────────────────┬───────────────┐ │
│ │Environment │ Version │ Deployed │ Action │ │
│ ├────────────┼─────────┼────────────────┼───────────────┤ │
│ │Development │ 1.4.0 │ 1 hour ago │ [Promote] │ │
│ │Staging │ 1.3.0 │ 2 days ago │ [Promote] │ │
│ │Production │ 1.3.0 │ 5 days ago │ - │ │
│ └────────────┴─────────┴────────────────┴───────────────┘ │
│ │
└─────────────────────────────────────────────────────────────┘

Each solution-environment combination tracks:

FieldDescription
Current VersionActive deployed version
Deployed AtWhen deployment completed
Deployed ByUser who initiated deployment
Deployment IDReference to deployment record

Each environment state-history record carries a state_type that describes the action which produced it. The current-state snapshot itself has no state_type, and the current implementation records Deployed for every event — Rolled Back and Promoted are defined but not yet emitted:

State TypeDescription
DeployedA deployment completed successfully
Rolled BackA rollback was applied to this environment
PromotedA version was promoted into this environment

The solution detail view shows which version is currently deployed in each environment. You can see at a glance whether the same version is running across Development, Staging, and Production, and initiate a promotion from this view when versions differ.

View historical deployments for an environment:

┌─────────────────────────────────────────────────────────────┐
│ Deployment History: Production │
├─────────────────────────────────────────────────────────────┤
│ │
│ ┌────────────────┬─────────┬────────────┬───────────────┐ │
│ │ Date │ Solution│ Version │ Result │ │
│ ├────────────────┼─────────┼────────────┼───────────────┤ │
│ │ Today 14:30 │ portal │ 1.3.0 │ ✓ Success │ │
│ │ Yesterday │ auth │ 2.1.0 │ ✓ Success │ │
│ │ 3 days ago │ portal │ 1.2.0→1.3.0│ ✓ Success │ │
│ │ 1 week ago │ payment │ 1.0.5 │ ✓ Success │ │
│ │ 2 weeks ago │ portal │ 1.1.0→1.2.0│ ✓ Success │ │
│ └────────────────┴─────────┴────────────┴───────────────┘ │
│ │
└─────────────────────────────────────────────────────────────┘

Point-in-time view of environment state:

┌─────────────────────────────────────────────────────────────┐
│ State Snapshot: Production - 2024-01-15 │
├─────────────────────────────────────────────────────────────┤
│ │
│ As of January 15, 2024: │
│ │
│ customer-portal: v1.2.0 │
│ auth-service: v2.0.0 │
│ payment-gateway: v1.0.5 │
│ │
│ Compare to today: │
│ customer-portal: v1.2.0 → v1.3.0 (+1) │
│ auth-service: v2.0.0 → v2.1.0 (+1) │
│ payment-gateway: (no change) │
│ │
└─────────────────────────────────────────────────────────────┘

State updates automatically when:

  • Deployment completes
  • Promotion occurs
  • Rollback executes

Environment state is derived from deployment history and updates automatically as deployments complete. The current state for each environment is shown in the Lens environment views; there is no separate manual-refresh command.

Environment state — which solution version is deployed where — is presented in the Lens environment and solution views.

A conceptual view of an environment’s deployed solutions:

{
"environment": "Production",
"solutions": [
{
"name": "customer-portal",
"version": "1.3.0",
"deployedAt": "2024-01-20T14:30:00Z",
"deployedBy": "admin",
"stateType": "deployed"
}
]
}

And a solution’s version across environments:

{
"solution": "customer-portal",
"environments": {
"Development": "1.4.0",
"Staging": "1.3.0",
"Production": "1.3.0"
}
}
  • Check which version is deployed per environment
  • Review deployment history
  • Identify stale environments

Promote versions through the pipeline:

Development (1.4.0) → Staging (1.3.0) → Production (1.3.0)
↓ ↓
Promote Promote
↓ ↓
Development (1.4.0) → Staging (1.4.0) → Production (1.4.0)

Track why versions were deployed:

DateEnvironmentVersionReason
Jan 20Production1.3.0Feature release
Jan 15Production1.2.1Security patch
Jan 10Production1.2.0Bug fix release

When issues occur:

  1. Check current state
  2. Compare to previous states
  3. Identify recent changes
  4. Roll back if needed

Cause: Deployment may have failed partially

Solution:

  1. Check deployment status
  2. Verify target-level results
  3. Redeploy if needed

Cause: Deployment still in progress or failed

Solution:

  1. Check deployment progress
  2. Review logs for errors
  3. State is read-only and derived from deployment records; if state appears stale, check whether the deployment itself is still in progress or has failed (see deployment logs)

Cause: Solution never deployed to environment

Solution:

  1. Create deployment to environment
  2. Or use promotion from earlier environment