Subscribe to the Non-Human & AI Identity Journal

What is the difference between desired state and actual state in cloud operations?

Desired state is the configuration infrastructure-as-code says should exist. Actual state is the environment that is truly running at a given moment. Security and resilience teams need both views because incidents, drift, and manual intervention often affect actual state first.

Why This Matters for Security Teams

desired state and actual state are not just configuration terms. They are the difference between what governance expects and what the environment is really doing under production pressure. In cloud operations, security teams use desired state to define approved architecture, access boundaries, logging, encryption, and segmentation. They use actual state to detect drift, emergency changes, failed deployments, and hidden exceptions that can weaken control coverage.

This matters because many security outcomes depend on whether the live environment still matches the approved baseline. A configuration can be compliant on paper while exposed in practice if a security group, IAM policy, or storage setting changes outside the deployment pipeline. That is why control mappings such as NIST SP 800-53 Rev 5 Security and Privacy Controls remain useful, but only when paired with continuous state validation.

Cloud teams often assume the deployment tool is the source of truth, yet actual state can diverge through console edits, failed rollbacks, or automated remediation that only partially succeeds. In practice, many security teams discover drift only after a misconfiguration has already widened exposure or interrupted recovery.

How It Works in Practice

Desired state is usually defined in infrastructure-as-code, policy-as-code, or orchestration templates. It describes what should be deployed, such as approved regions, required tags, mandatory encryption, log retention, and allowed network paths. Actual state is collected from the running environment through cloud APIs, asset inventories, configuration monitors, and posture tools. Security operations compare the two to identify drift and determine whether the live system still matches the approved design.

That comparison is operationally important across build, deploy, and runtime stages. A pipeline may create the right baseline, but changes made later by humans, service accounts, autoscaling events, or dependent managed services can alter the live configuration. For that reason, NIST guidance on control monitoring, especially in NIST SP 800-53 Rev 5 Security and Privacy Controls, is most effective when paired with continuous evidence gathering rather than periodic snapshots.

  • Use desired state to define the approved baseline for infrastructure, identity, logging, and data protection.
  • Use actual state to verify what is currently live across accounts, subscriptions, clusters, and regions.
  • Alert on drift when the live environment no longer matches the declared baseline.
  • Prioritise differences that change exposure, such as public access, privilege elevation, or missing telemetry.

The best implementations tie drift detection to change management so that approved exceptions are distinguishable from risky deviations. This is especially important in environments with ephemeral workloads, autoscaling, and service meshes, where the environment changes faster than manual review cycles can track. These controls tend to break down when cloud resources are created outside the pipeline because those assets are often invisible to the baseline that security teams think they are enforcing.

Common Variations and Edge Cases

Tighter state control often increases operational overhead, requiring organisations to balance speed of change against confidence in the live environment. In mature cloud programmes, current guidance suggests treating desired state as the policy anchor and actual state as the evidence layer, but there is no universal standard for how often reconciliation must occur.

Some environments make that balance harder. Serverless services, managed databases, and platform controls may expose limited configuration detail, so actual state is only partially observable. In regulated environments, audit teams may also require proof that deviations were approved, not just detected. For example, NIST SP 800-53 Rev 5 Security and Privacy Controls can inform baseline and monitoring requirements, while operational resilience teams often map drift handling to incident response and continuity processes.

The main edge case is when the declared desired state is itself outdated. If the baseline does not reflect the current architecture, reconciliation becomes noise rather than assurance. That is why policy reviews, exception expiry, and configuration ownership are part of the control model, not administrative extras. In practice, the most common failure is not that teams fail to define desired state, but that they keep trusting it after the live environment has already moved on.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

MITRE ATT&CK address the attack and risk surface, while NIST CSF 2.0 and CIS-Controls set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
NIST CSF 2.0 GV.OV-01 Cloud state reconciliation supports ongoing oversight of security posture.
MITRE ATT&CK T1562 Unauthorized changes can weaken detection and defense in cloud environments.
CIS-Controls 4.1 Asset inventory and configuration visibility are prerequisites for comparing desired and actual state.

Define ownership for drift review and track whether live cloud settings still meet the approved baseline.