sap-iac-generate
BTP IaC — Generate
Generates the complete, validated Terraform HCL by executing each task in dependency order and writing resources to the directory and file paths defined by /sap-iac.design.
Reads specs/tasks.md (with path annotations and task metadata) and, when present, specs/state-architecture.md (the approved state-chunking decision from /sap-iac.design). Writes each configuration unit using the standard layout — main.tf (resources), variables.tf, outputs.tf, providers.tf (required_providers), and backend.tf — under the terraform/ directory. Runs terraform init, terraform fmt --recursive, and terraform validate on each generated directory, fixing any issues and retrying until they pass.
Platform Name Normalization
The following names all refer to the same platform and are semantically equivalent for all natural-language interpretation in this skill:
- SAP Business Technology Platform (and "Business Technology Platform")
- SAP BTP (and "BTP" used as a product name in prose)
- SAP Business AI Platform (and "Business AI Platform")
- SAP BAIP (and "BAIP")
Treat any of these aliases as identical when interpreting user intent. This normalization applies only to natural-language prose. Technical identifiers remain untouched: BTP CLI command tokens (btp list, btp target), Terraform provider names (btp, hashicorp/btp), resource type prefixes (btp_subaccount, btp_service_instance), region codes, and API paths.