Use this when reading the real current configuration of a system to compare with intent.
Actual State
Actual state is the real, current configuration of a system as observed by reading it, which drift management compares with the desired state to find differences.
1. Actual state is what systems really have.
2. Collect fresh.
3. Normalise for comparison.
4. Store snapshots.
5. Include runtime state where relevant.
systems → collection → actual state
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
Capture configuration revision and current stored state, then perform a read/refresh-only plan without applying mutation. Inspect each reported difference and independently query the remote object for the fields that matter. Classify the difference as intentional external change, stale/incorrect state, provider normalization or true undesired drift. Only after that choose to update configuration/state or reapply desired intent.
Step 2 Common mistakes Narrow the fault
- Reading actual state from cache.
Step 3 Where it fails Narrow the fault
Separate desired configuration, stored automation state, provider refresh logic, remote API observation and consumer-visible service state. Missing permissions can look like deleted objects; normalization can look like drift; eventual consistency can produce transient differences. Do not apply a normal plan merely to make the diff disappear. Resolve observation accuracy first, then change the correct source of truth and repeat the comparison.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Actual state is what the system reports now.
- Read it, don't assume it.
- Collect it the same way every time.
- Facts/state collection — actual
- Fresh reads, not cache — accuracy
- Normalised representation — comparable
ReferenceWhy it matters1 section · depth on demand
In depth
Actual state is the configuration and status a system really has right now, read directly from the system. Drift management compares it with desired state, so it must be collected accurately and completely.
| Collection method | Note |
|---|---|
| Running configuration | Full text or structured via API |
| Facts/state queries | Packages, services, registry |
| Cloud APIs | Resource attributes |
| Terraform refresh | Provider reads real resources |
Collect actual state with read-only credentials and normalise it the same way as desired state before comparing.
ReferenceImportant terms & boundaries1 section · depth on demand
Mechanics
Actual state is the state observed from the managed system at a specific time, not the desired configuration and not necessarily the automation tool’s cached state. Drift management depends on comparing those three views. Provider/API read behavior, eventual consistency, permissions and partial visibility can make observed state incomplete. Refreshing state may update the tool’s record without changing the remote object, so that operation itself is a governance decision.
ReferenceConfiguration & state1 section · depth on demand
Lifecycle
Define which properties are authoritative in configuration, which may legitimately change out of band, and how observations are timestamped. Preserve state backups and versioned configuration before accepting drift. Changes discovered during incidents may be intentionally temporary; document when they should be codified versus reverted. Provider/schema upgrades can change observed values and should be separated from real infrastructure drift.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Drift Management > Actual State. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://developer.hashicorp.com/terraform/tutorials/state/refresh · confidence 94%Quick lookup tables
Drift Management → Actual State · operational reference
Context-specific ownership, verification, output and failure-boundary lookup for Drift Management → Actual State.
| Layer | Drift Management → Actual State operational reference |
|---|---|
| Runtime/ownership | Drift management / Terraform actual-state reconciliation · identify controller/parser, durable intent, identity and target ownership before mutation |
| Persistent intent | Versioned definition/configuration with explicit dependencies, scope and credential boundary |
| Verification | terraform plan -refresh-only -detailed-exitcode; compare configuration, stored state and provider-read remote object before deciding reconciliation. |
| Expected interpretation | The process distinguishes desired configuration, tool state and remote actual state, identifies external change without mutating blindly, and records the chosen reconcile direction. |
| Recovery boundary | Preserve correlation IDs + pre-state, repair first failing boundary, then verify the target independently |
Deep reference
Healthy vs suspicious evidence
Output interpretation
Record resource address/ID, configuration revision, prior state value, observed remote value, provider/version, plan action/reason and reconciliation decision. A “changed outside Terraform” message is a signal, not evidence of unauthorized drift. Preserve the exact diff and timestamps so later automation can explain why state was accepted or reverted.