Repository navigation
Closed
Labels
effort/mediumEffort Mediumpriority/p2-mediumPriority P2: standard worksource/agentFiled by an agenttype/refactorType refactor: a new structure, same behaviorvalue/mediumValue Medium
Description
Problem
Checked at devops-cli main 4ff4b7c.
devops tf deploy-cloud -p <provider>resolvestf/<provider>andtf/environments/<provider>.tfvars.exampleunder the worktree root of the working folder (src/devops_cli/commands/tf.py:93-115,692-693,CONST_TF_*insrc/devops_cli/config/constants.py:928-933).- Other readers of
tf/:src/devops_cli/research/terraform_pins.py:16(tf/**/*.tf),src/devops_cli/roadmap/step_rules.py:95-99(tf/**totf/README.md), the Renovate terraform manager, the AGENTS.md row 'change a manifest, the cluster or OpenTofu',README.md:50(link totf/README.md), the knowledge base pagessrc/devops_cli/ai/knowledge_base/devops_cli/tasks/infrastructure_provisioning.md:21-34andsrc/devops_cli/ai/knowledge_base/it_domains/tools/opentofu_terraform.md:27-57,tests/commands/test_tf.py(11 uses ofCONST_TF_*),docs/commands/tf.mdanddocs/CLI_REFERENCE.md. - After feat(tf): add cloud cluster modules on maintained modules infra#9, infra holds the modules and the examples. Two copies must not stay live.
- Open feat(gh): manage GitHub organization and repository settings as code #5311 plans
tf/githubhere, and its root stacks go to dan-petty/homelabtf/github/(owner decision of 2026-11-21, recorded in docs(adr): record the four homes of the infrastructure #6674).
Proposed remedy
CONST_TF_*nametf/examples/<provider>andtf/examples/<provider>/<provider>.tfvars.example, the infra layout. Sodevops tf deploy-cloud -p <provider>runs with an infra checkout as the working folder. When the folder is missing, the message says to run the command in an infra checkout.- Delete
tf/aws,tf/azure,tf/gcp,tf/environmentsandtf/README.md. Keeptf/githubif feat(gh): manage GitHub organization and repository settings as code #5311 has added it. Remove thetf/**rule ofstep_rules.py, or point it to the README oftf/githubif that exists.terraform_pins.pykeeps its glob, because it reads the root that it gets. - Update the AGENTS.md row,
README.md:50, the 2 knowledge base pages, the docs and the generated command reference. - Change the tests first:
tests/commands/test_tf.pybuildstmp_pathtrees in the infra layout.
Acceptance criteria
-
git ls-files tf/aws tf/azure tf/gcp tf/environments tf/README.md | wc -lprints 0, andgit grep -n CONST_TF_AWS_DIRfinds only the new definition and its readers. - With an infra checkout as the working folder,
uv run --project <devops-cli checkout> devops tf deploy-cloud -p aws --dry-runprints the init and plan commands fortf/examples/awsand sends no request. -
git grep -n 'tf/aws\|tf/README' -- README.md src/devops_cli/ai/knowledge_basefinds nothing. -
uv run devops ci --check --only test,lint,typecheck,docspasses.
Person steps
None.
Dependencies
- feat(tf): add cloud cluster modules on maintained modules infra#9, docs(adr): record the four homes of the infrastructure #6674 (the verdict on the ADR 0026 root stacks).
Alternatives check of 2026-11-21: not-applicable.
Class: refactor, no search.
Tool: none found.
Metadata
Metadata
Assignees
Labels
effort/mediumEffort Mediumpriority/p2-mediumPriority P2: standard worksource/agentFiled by an agenttype/refactorType refactor: a new structure, same behaviorvalue/mediumValue Medium
Activity
dan-petty commentedon Nov 21, 2026
tf, and .github/labels.yml declares no scope/tf label. Add the label to the file to give the scope to this item.Both move a command to read from the infra repo, but 5131 targets k8s/ while this targets tf/ and the deploy-cloud command.devops-cli-service commentedon Nov 22, 2026
Released in v0.194.1: https://github.com/dan-petty/devops-cli/releases/tag/v0.194.1
devops-cli-service commentedon Nov 22, 2026
Live since 2026-11-22 14:41 UTC