Environment Locking

Environment locking prevents any change to the environment. While the environment is locked no deploy, destroy, plan or drift detection actions will be run.

Who can lock and unlock

To be able to lock or unlock an environment, a user needs "Lock/Unlock Environment" permission (part of the default "Project Admin" role.

Any user with this permission can unlock the environment regardless of who locked it.

How to use

From the environment's advanced context menu, click on "Lock Environment". It will ask for confirmation. You can provide an optional reason, so other users will know why the environment is locked.

Locked environments will have a banner explaining who, when and why the environment is locked, and a button to unlock it.

What happens when the environment is locked