Skip to main content
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.
Lock Environment confirmation dialog with optional reason field
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

โŒ˜I