terraform_providers_lock_test

Rules

terraform_providers_lock_test

load("@rules_terraform//terraform:terraform_providers_lock_test.bzl", "terraform_providers_lock_test")

terraform_providers_lock_test(name, lock, target)

Fails when .terraform.lock.hcl does not match what the module tree requires: every module the init aspect placed, root, local children and installed external ones, and in each the providers required_providers declares plus the ones resource, data, ephemeral and provider blocks imply. A provider the configuration needs but the lock lacks fails, and so does a lock entry nothing needs. Network-free; no engine runs.

ATTRIBUTES

NameDescriptionTypeMandatoryDefault
nameA unique name for this target.Namerequired
lockThe .terraform.lock.hcl file being verified.Labelrequired
targetThe terraform_module whose module tree is being checked.Labelrequired