Rolling back
Roll a Facets release back to a previous known-good state using stored S3 deployment context, with a two-phase plan and apply workflow.
Rollback restores an environment to a previous known-good state when something goes wrong. It runs in two phases: create a rollback plan to review what will change, then apply it to execute the rollback.
What can be a rollback target
To serve as a rollback target, a release must have its deployment context stored in S3. That context holds the complete deployment state: stack version, overrides, resource metadata, modules, and resources, retrieved when you plan the rollback.
You also need release-authority permission. Deployments created before Facets began storing deployment context cannot be rollback targets; if you pick one, Facets prompts you to choose a more recent release instead.
Creating a rollback plan
Creating the plan changes nothing on the environment. It only previews the rollback.
- Open the resource in Projects > Resources, select it, and go to its Release History tab.
- On the release you want to roll back to, click Rollback. The rollback plan is scoped to that one resource. The button is hidden on
APPLY_ROLLBACK_PLANrows, and disabled when the old and new versions are identical. - The system generates a ROLLBACK_PLAN release type that shows what will change.
- Review the plan. It compares your current state against the state you are reverting to, so you can verify the impact before proceeding: the resources that will be restored, the stack versions that will be applied, the configuration changes between current and previous state, and the Terraform changes that will execute.
Applying the rollback plan
The rollback only takes effect once you apply the plan.
- Open the ROLLBACK_PLAN release from the environment's release history.
- Review the planned changes one more time, in particular any resource the plan will destroy or replace.
- Click Apply Plan and confirm.
Facets records the applied release as an APPLY ROLLBACK PLAN release, separate from the ROLLBACK_PLAN release that produced it. Both stay in the release history, so the plan you reviewed and the apply that acted on it remain auditable.
To verify the restored state:
- Confirm the APPLY ROLLBACK PLAN release finished with a SUCCEEDED status.
- Open the release and check the Terraform logs to confirm the changes the plan listed are the changes that ran.
- Check the environment's resources against the release you rolled back to.
If the environment has a release approval gate configured, the apply passes through it like any other release.
Types of Validations
The validation types in Facets: non-existent and disabled resource references, invalid reference expressions, JSON syntax errors, and guardrail violations.
Monitoring
Monitoring, observability, alerting, and cost tracking for deployed environments in Facets, with built-in dashboards and third-party integrations.