pltf terraform apply
Generate and apply Terraform for a spec
Synopsis
Render Terraform from an Environment or Service spec, ensure the backend bucket, then run 'terraform apply'. Supports Terraform-style flags like targets, lock timeout, parallelism, refresh control, and color toggles. Defaults to embedded modules and the standard output layout unless overridden.
Examples
pltf terraform apply -f env.yaml -e prod
pltf terraform apply -f service.yaml -e dev -m ./modules -o ./.pltf/service/payments/dev --target=module.eks
Options
--auto-approve Pass -auto-approve to terraform apply
-e, --env string Environment key to render (dev, prod, etc.)
-f, --file string Path to the Environment or Service YAML file (default "env.yaml")
-h, --help help for apply
-i, --input Ask for input if necessary (default false)
-l, --lock Lock state when locking is supported (default true)
-T, --lock-timeout string Lock timeout (e.g. 0s, 30s)
-m, --modules string Override modules root; defaults to embedded modules
-C, --no-color Disable color output
-o, --out string Output directory for generated Terraform
-p, --parallelism int Limit Terraform parallelism (0 = default)
-r, --refresh Update state prior to actions (default true)
-t, --target stringArray Optional Terraform target address (repeatable)
-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 terraform - Terraform helpers (generate+init+tf commands)