terraform_providers_lock
Rules
terraform_providers_lock
load("@rules_terraform//terraform:terraform_providers_lock.bzl", "terraform_providers_lock")
terraform_providers_lock(name, output, platforms, target)
bazel run target that writes a module's .terraform.lock.hcl with the
toolchain terraform, recording hashes for every platform in platforms at
once, which the engine's own init does not do. Needs the network.
ATTRIBUTES
| Name | Description | Type | Mandatory | Default |
|---|---|---|---|---|
| name | A unique name for this target. | Name | required | |
| output | Where to write the lock, relative to this package: .terraform.lock.hcl. | String | required | |
| platforms | Platforms to record hashes for, as linux_amd64. Default: linux_amd64, linux_arm64, darwin_amd64, darwin_arm64, windows_amd64. | List of strings | optional | [] |
| target | The terraform_module the lock covers, its local child modules included. | Label | required |