Deployment Lifecycle
Every time a Deployment is executed or destroyed, a Run is created. That Run progresses through a series of statuses that reflect exactly what is happening at each stage. Understanding this lifecycle helps you know what to expect, when to take action, and what to do if something goes wrong.
The Two-Phase Approval Model
Amnify Deploy requires two human approvals before any infrastructure change is made permanent:
-
Plan Approval — After the execution engine analyzes your template and variables, it generates a detailed preview of every change that will be made. You must review and approve this plan before anything is created or modified.
-
Apply Approval — After you approve the plan, there is a second confirmation step before the actual changes are executed. This gives you one final opportunity to stop if you have second thoughts.
Both approvals are required. In cloud infrastructure, mistakes are expensive and sometimes irreversible. The two-phase model ensures no change is made accidentally. For a detailed walkthrough of each step, see the Approval Workflow guide.
Execute Lifecycle
Destroy Lifecycle
The destroy lifecycle mirrors the execute lifecycle, but the plan shows what resources will be removed rather than created.
Once a Destroy run reaches the Destroyed state, the cloud resources are gone. This cannot be undone from Amnify Deploy. You can re-deploy the infrastructure by executing the Deployment again, but any data stored in the destroyed resources (databases, storage accounts, etc.) will not be recovered.
What Happens When a Run Fails
If a run reaches the Failed state:
- Execution stops immediately — no further changes are made beyond what had already been applied
- The full error message is displayed in the Run detail view
- The execution log is available to help diagnose the cause
- You can re-execute the Deployment after fixing the underlying issue
Partial apply operations can leave infrastructure in an intermediate state. The plan for a re-run will reflect what was already created and only apply the remaining changes.
Cancelling a Run
You can cancel a run at either of the approval steps (Awaiting Plan Approval or Awaiting Apply Approval). Once a run enters Applying or Destroying, it cannot be cancelled — the changes are in progress.
Status Quick Reference
For a full reference table of all statuses and their transitions, see Deployment Statuses.
Next Steps
- Approval Workflow guide — how to read and act on a plan
- Monitoring Runs guide — how to track execution progress and read logs
- Deployment Statuses reference — complete status list with transitions