How to lock Terraform state when using Consul as backend

I wanted to compare gitlab and consul as backend for storing terraform state.

in gitlab I can see the option for locking/unlocking terraform state

How can I do something similiar in consul backend?

is it possible?

Hi @kingindanord,

The Consul backend in Terraform supports state locking. This is enabled by default unless you disable locking by setting lock = false in the backend configuration.

Is this helpful, or are you looking for some other type of locking capability?