CICD-418 · Self-service infrastructure provisioning
Encyclopedia · Platform engineering and internal developer platforms · All snippets
Previous · CICD-417 · Next · CICD-419
1. Where it fits
- Placement approved controller preflight.
- Prerequisites platform sandbox, scoped identities and reviewed service catalog or provisioning policy.
- Platforms kubernetes, local-lab.
2. Copy the snippet
bash
terraform init -input=false -lockfile=readonly
terraform plan -input=false -out=request.tfplan -var-file=approved-request.tfvars3. How it works
Initialization prepares the working directory and installs locked providers. Backend flags decide whether state is contacted. Plan calculates proposed changes from configuration, input variables and the selected state. A saved plan records the proposed actions.
4. Verify the result
Validate request against resource and budget policy and apply from an approved change with serialized state access.
Validation syntax-validated (Bash parse). Status definitions.