-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Proposer generates all workspace files (REMOTE-STATE + tf-direc…
…tory-setup.py)
- buildspec-proposer.yml: install tf-directory-setup.py from terraform/support in
INSTALL phase; add python-dateutil + pyyaml pip deps.
BUILD phase: after template rendering, run Python bootstrap step that:
1. Processes REMOTE-STATE directives in tf-run.data files — derives workspace
remote_state.yml from layer-level file (identical to tf-run.sh behavior)
2. Runs tf-directory-setup.py --link none in each workspace with remote_state.yml —
generates remote_state.backend.tf + .tf.s3/.local/.none variant files + symlink
- buildspec-executor.yml: add note that REMOTE-STATE and tf-directory-setup.py
steps are idempotent — files already exist from Proposer PR, no new files created
- docs/HOW-IT-WORKS.md: expand BUILD phase step 5 to document the full file
generation sequence including REMOTE-STATE and tf-directory-setup.py; add
rationale explaining why all generation must happen in the Proposer
- docs/template-management.md: fix template repo structure diagram — workspace
remote_state.yml.j2 files removed (wrong); layer-level remote_state.yml.j2 shown;
workspace tf-run.data with REMOTE-STATE directive shown; add layout rules for
auto.tfvars profile/region requirement and .j2 source file handling.
Expand Proposer Build steps to cover REMOTE-STATE + tf-directory-setup.py.
Add principle callout: PR diff is the complete truth.- Loading branch information
Dave Arnold
committed
May 20, 2026
1 parent
dc71d57
commit 77f9a49
Showing
4 changed files
with
130 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters