pltf generate
Generate workspace-ready Terraform from an Environment or Service spec
Synopsis
Read a YAML spec, detect Environment vs Service, and render a workspace-ready Terraform
root with variables.tf, secrets.tf, and a single
Examples
pltf generate -f env.yaml -e dev
pltf generate -f service.yaml -e prod -m ./modules -o .pltf/my-env/my-svc/workspace
Options
-e, --env string Environment key to render (dev, prod, etc.); required for both env and service specs
-f, --file string Path to the Environment or Service YAML file (default "env.yaml")
-h, --help help for generate
-m, --modules string Root directory containing module type folders with module.yaml metadata; defaults to embedded modules bundle
-o, --out string Output directory for generated Terraform (defaults to .pltf/<env_name>/workspace or .pltf/<env_name>/<service>/workspace)
-v, --var stringArray Override variable as key=value; merges over vars and supports bool/int/JSON/list parsing. Can be repeated for multiple overrides.
Options inherited from parent commands
--telemetry Enable anonymous telemetry (usage metrics). Currently a stub/no-op unless enabled.
-V, --verbose Enable verbose logging
SEE ALSO
- pltf - Platform toolkit for validating and generating Terraform stacks