feature/hub ref improvement#174
Conversation
JohannesRudolph
commented
May 19, 2026
- refactor: use var.hub.git_ref for backplane sources, add const=true
- chore: remove update-module-refs tool
- Replace all hardcoded commit SHA refs in backplane module sources with
${var.hub.git_ref}, making the update-module-refs tool obsolete
- Add `const = true` to all `variable "hub"` blocks so OpenTofu/Terraform
can resolve var.hub.git_ref at init time (requires OpenTofu >= 1.12)
- Add/update required_version = ">= 1.12.0" in all meshstack_integration.tf
terraform blocks
- Update copilot-instructions.md baseline from >= 1.11.0 to >= 1.12.0
Superseded by const variable support in OpenTofu >= 1.12 / Terraform >= 1.15. Backplane module sources now use var.hub.git_ref which is resolved at init time, so there is no longer any need to stamp hardcoded commit SHAs.
The workflow is no longer needed since the tool was removed.
|
@grubmeshi fyi post-factum I have found a simpler way to maintain hub references and pin versions between backends and terraform implementations correctly rather than using the custom tool. We have supported a hub.git_ref variable already, and re-using this for the backend module source makes our versioning approach simpler overall:
|
|
This pull request is automatically being deployed by Amplify Hosting (learn more). |
|
Note: we'll have to wait until opentofu 1.12 lands in nixos before we can start testing this change properly in CI (don't forget to update flake.lock) Until then we need to keep this PR open |