terraform_binary
Rules
terraform_binary
load("@rules_terraform//terraform:terraform_binary.bzl", "terraform_binary")
terraform_binary(name, lock, root)
Wraps the terraform binary for a terraform_module root. Invoke via
bazel run — any subcommand and args are passed straight through, so
bazel run //x:terraform -- plan, ... -- apply, ... -- state list, etc.
mirror the nominal CLI.
The .terraform directory is assembled hermetically by
terraform_init_aspect; providers and modules come from Bazel-managed
dependencies rather than the network.
ATTRIBUTES