# Terraform Lock<no value>
// <!-- Required for asciidoctor -->
:toc:
// Set toclevels to be at least your hugo [markup.tableOfContents.endLevel] config key
:toclevels: 4

[cols="1^,1^,1^",options=header]
|===
| source | condition | target
| &#10007; | &#10004; | &#10004;
|===

== Description

**condition**

The terraform/lock "condition" tests that lock file version and hashes match the value for a given provider.

**target**

The terraform/lock "target" ensures that an the lock file version and hashes are update to date for given provider.

== Parameter

{{< resourceparameters "sources" "terraform/lock" >}}

== Example

The example uses an additional resource plugin: link:{{< ref "registry" >}}[`terraform/registry`].

[source,yaml]
----
# updatecli.yaml
{{<include "assets/code_example/docs/plugins/resources/terraform/lock/updatecli.d/default.yaml">}}
----
