tofu_providers_lock

Rules

tofu_providers_lock

load("@rules_terraform//tofu:tofu_providers_lock.bzl", "tofu_providers_lock")

tofu_providers_lock(name, output, platforms, target)

bazel run target that writes a module's .terraform.lock.hcl with the toolchain tofu, recording hashes for every platform in platforms at once, which the engine's own init does not do. Needs the network.

ATTRIBUTES

NameDescriptionTypeMandatoryDefault
nameA unique name for this target.Namerequired
outputWhere to write the lock, relative to this package: .terraform.lock.hcl.Stringrequired
platformsPlatforms to record hashes for, as linux_amd64. Default: linux_amd64, linux_arm64, darwin_amd64, darwin_arm64, windows_amd64.List of stringsoptional[]
targetThe terraform_module the lock covers, its local child modules included.Labelrequired