sdaf-workspace-and-tfvars
Skill145 starsChanged 3 months agoMITView on GitHub
Explain and validate the SDAF `WORKSPACES` layout (DEPLOYER / LIBRARY / LANDSCAPE / SYSTEM), the region-code naming convention, and how the four tfvars files hang off it. Grounded in `docs/local/README.md § Configuration and state layout`, `docs/region-codes.md`, and the samples repo `sap-automation-samples/docs/01-00-terraform-samples.md`. Use when a user says "how do I lay out WORKSPACES", "which tfvars go where", "SDAF naming convention", "how should I name my parameter files", "region code", "control-plane vs library vs landscape vs system tfvars", or "location_short". Do NOT use to deploy anything or to select a BOM (see sdaf-bom-selection).
In this repository21 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- Webapp/.github/copilot-instructions.mdCopilot instructions
- code-reviewSkill
- sdaf-bom-selectionSkill
- sdaf-control-plane-bootstrapSkill
- sdaf-failure-triageSkill
- sdaf-ha-diagnosticsSkill
- sdaf-ha-topologySkill
- sdaf-media-acquisitionSkill
- sdaf-media-diagnosticsSkill
- sdaf-orientation-and-surfaceSkill
- sdaf-plan-and-test-semanticsSkill
- sdaf-quality-assuranceSkill
- sdaf-readiness-checkSkill
- sdaf-safe-removalSkill
- sdaf-sap-installationSkill
- sdaf-sap-systemSkill
- sdaf-sovereign-cloudSkill
- sdaf-state-managementSkill
- sdaf-workload-zoneSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 30
Do NOT trigger on: deploying, running validate.sh (that's sdaf-readiness-check), selecting a BOM (sdaf-bom-selection).
- Very specific: line 76
Every documented example uses the same name for the directory and the .tfvars file inside it.
- Distinctive: line 83
Do not "fix" a mismatch by editing state — re-name to match, or fix the tfvars content.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
SDAF Workspaces and tfvars
Context-primer. Answers "where does each tfvars go, and what must the directory names look like?" — grounded in the shipped docs. Hands off to the matching deploy skill.
When to invoke
Trigger on: "WORKSPACES layout", "which tfvars", "region code", "SDAF naming convention", "location_short", "unkn fallback", "DEPLOYER/LIBRARY/LANDSCAPE/ SYSTEM".
Do NOT trigger on: deploying, running validate.sh (that's
sdaf-readiness-check), selecting a BOM (sdaf-bom-selection).
The four workspaces
Docs (docs/local/README.md § Configuration and state layout) show a
WORKSPACES/ tree outside the SDAF checkout with four leaves. Each leaf
holds a same-named .tfvars file:
WORKSPACES/
├── DEPLOYER/<ENV>-<CODE>-<DEPLOYER>-INFRASTRUCTURE/<same>.tfvars
├── LIBRARY/<ENV>-<CODE>-SAP_LIBRARY/<same>.tfvars
├── LANDSCAPE/<ENV>-<CODE>-<VNET>-INFRASTRUCTURE/<same>.tfvars
└── SYSTEM/<ENV>-<CODE>-<VNET>-<SID>/<same>.tfvarsSources: docs/local/README.md § Configuration and state layout;
sample layout also documented in
sap-automation-samples/docs/01-00-terraform-samples.md § Inputs.
Naming convention
docs/region-codes.md § Where the region code appears defines the tokens
and the pattern:
<ENV>— DEV / QA / PRD / MGMT / LAB.<CODE>— the uppercase region code fromdocs/region-codes.md § Supported regions; unmapped regions fall back tounknper§ Unmapped regions fall back to unkn.<DEPLOYER>— deployer identifier (e.g.DEP00,DEP01).<VNET>— network identifier (e.g.SAP01,SAP02).<SID>— SAP SID (e.g.X00,HA2,WIN).
Documented examples:
MGMT-WEEU-DEP01-INFRASTRUCTUREMGMT-WEEU-SAP_LIBRARYDEV-WEEU-SAP01-INFRASTRUCTUREDEV-WEEU-SAP01-X00
See references/naming-and-region-codes.md
for the doc-cited example set plus the "region codes appear in six places"
note.
Filename must match the containing directory
Every documented example uses the same name for the directory and the
.tfvars file inside it. Deploy scripts require you to cd into the
directory containing the tfvars and pass the basename only
(docs/local/troubleshooting.md § A parameter file is not found). Mismatch
between directory name / file name / declared environment/region/network/SID
is one of the shipped stage-script validation gates.
Do not "fix" a mismatch by editing state — re-name to match, or fix the tfvars content.
Relationship of the four workspaces
- DEPLOYER + LIBRARY together form the control plane; the library stores remote Terraform state.
- LANDSCAPE (workload zone) reads control-plane / deployer state.
- SYSTEM reads deployer + landscape state.
The enforced deploy order (control plane → workload zone → SAP system) is
stated in sdaf-orientation-and-surface § The spine (order is enforced),
which is the canonical statement. Doc anchors: docs/local/README.md
§ Complete the journey; each stage doc's § What the automation does /
§ Outcome.
GitHub-Actions-generated SYSTEM tfvars
For the GitHub Actions surface, docs say 04-create-system-environment.yml
generates and commits the SAP-system WORKSPACES
(docs/documentation-source-map.md § Lifecycle capability sources). Do not
hand-author the SYSTEM tfvars in that flow; treat the generation step as the
source of truth.
Hand-off
- To validate a prepared workspace:
sdaf-readiness-check(drivesvalidate.sh). - To deploy:
sdaf-control-plane-bootstrap→sdaf-workload-zone→sdaf-sap-system. - To pick a BOM referenced from SYSTEM tfvars:
sdaf-bom-selection.
See also
sdaf-readiness-check,sdaf-control-plane-bootstrap,sdaf-workload-zone,sdaf-sap-system,sdaf-bom-selection.docs/local/README.md,docs/region-codes.md,sap-automation-samples/docs/01-00-terraform-samples.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

