Repository navigation
Docs | Leverage CLI: backend key format, validate-layout exit code, = in task arguments - #257
Conversation
…=` in task arguments - tofu/terraform reference: how `init` builds a layer's backend key, that `init --layers` gives each layer its own key, which keys `validate-layout` accepts (with or without the region directory, tf-/terraform-, -dr), and that it exits with an error when a check fails. - run reference: arguments are split on commas; a value may contain `=`. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
No actionable comments were generated in the recent review. WalkthroughThe CLI reference updates clarify task argument syntax and document S3 state key generation and validation for Terraform and OpenTofu. ChangesTask argument syntax
Terraform and OpenTofu state keys
Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Other Suggested reviewers: Merge Risk:
|
What?
tofuandterraformreference,init:base-/tools-prefix, with an exampleinit --layersgives each layer its own keytofuandterraformreference,validate-layout:tf-/terraform-, and-drrunreference: arguments are split on commas, and a keyworded value can contain=(task[query=a=b]).Why?
These behaviors changed in Leverage CLI during the testing work of binbashar/leverage#346, and the docs didn't describe them:
validate-layoutexited 0 even when a check failed, andinit --layersgave every new layer the same key (Fix | tf: init --layers backend key per layer, validate-layout exit code + error path tests leverage#385)leverage run task[k=a=b]crashed, and thebase-/tools-prefixes were dropped from anywhere in a name (Fix | Property-based tests (hypothesis) and the 4 bugs they found leverage#386)validate-layoutaccepts both (Enhancement | Contract tests with the reference architecture (le-tf-infra-aws) leverage#387)References
_layer_backend_keyand_make_layer_backend_keyinleverage/modules/tf.py, andparse_task_argsinleverage/_parsing.py.Important
No screenshots: the change is text in 3 existing pages (
reference/tofu/tofu.md,reference/terraform.md,reference/run.md), with no new pages or navigation. Theinitnote sits in the existing "Regarding S3 backend keys" info box.🤖 Generated with Claude Code
Summary by CodeRabbit
=.init --layers.validate-layoutreturns an error when a check fails.