subzone/Terraform Plan & Apply

Run Terraform with rich plan visualization in Step Summary, PR comments, multi-cloud backend support, and policy warnings.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
commandTerraform command: init | validate | plan | apply | plan-and-apply | destroynoplan
terraform-versionTerraform version to install (e.g. 1.7.5). Uses PATH terraform if empty.no1.12.0
working-directoryDirectory containing .tf filesno.
backend-typeBackend type: local | azurerm | s3 | gcs | customnolocal
backend-config-filePath to HCL or key=value backend config file (custom backend only)no""
azure-resource-groupAzure resource group (azurerm backend)no""
azure-storage-accountAzure storage account name (azurerm backend)no""
azure-containerAzure blob container (azurerm backend)no""
azure-state-keyState blob key (azurerm backend)no""
aws-bucketS3 bucket name (s3 backend)no""
aws-keyS3 state key path (s3 backend)no""
aws-regionAWS region (s3 backend)no""
aws-dynamodb-tableDynamoDB lock table (s3 backend, optional)no""
gcp-bucketGCS bucket name (gcs backend)no""
gcp-prefixGCS state prefix (gcs backend, optional)no""
plan-fileBinary plan file namenotfplan
additional-argsExtra arguments appended to the terraform command lineno""
auto-approvePass -auto-approve to apply/destroy (set true to skip confirmation)nofalse
plan-json-pathPath to an existing plan.json file. When set, the command is forced to "visualize" — skips all terraform execution and renders the Step Summary, PR comment, and outputs directly from this file. Useful for separating plan and visualization jobs, or for testing with fixture files. no""
post-step-summaryWrite rich plan visualization to GitHub Step Summarynotrue
post-pr-commentPost plan summary as a PR comment (updates existing comment)notrue
upload-plan-artifactUpload plan.json as a workflow artifactnotrue
artifact-nameName of the uploaded plan artifactnoterraform-plan
github-tokenGitHub token for PR comments and artifact uploadno${{ github.token }}
namedescription
add-countNumber of resources to add
change-countNumber of resources to change
destroy-countNumber of resources to destroy
replace-countNumber of resources to replace
has-changestrue if the plan has any resource changes
plan-json-pathAbsolute path to the generated plan.json file
exit-codeTerraform exit code (0 = success, 2 = changes present when using -detailed-exitcode)