desired state

A description of how a machine should look when the work is finished, rather than a list of steps to get there.

In more detail

Describing the finished condition, such as "this directory exists" or "three copies are running", lets a tool compare it with reality and act only on the difference. The description doubles as a record of what each system is supposed to contain.

Examples

An Ansible task that says state: directory declares an end state; a shell script that runs mkdir lists a step.
In AWS: A description of how a system should look, which a tool then compares with reality and changes reality to match.
In Terraform the configuration files are the desired state. Each plan compares that desired state with the recorded state and with reality, then proposes actions to close the gap. Keeping the desired state in version control is what gives a team a reviewable record of intent.

Related terms

Taught in

References

Certification courses