Environment locking prevents any change to the environment. While the environment is locked no deploy, destroy, plan or drift detection actions will be run.
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.
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.