dmytrolevin-fn/terraform-plan
Create a Terraform plan
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Nov 29, 2024
- License
- None
Pinned Snippet
uses: dmytrolevin-fn/terraform-plan@1835896a7426220a7b0f517be3494a598d5db4ef # v4tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| path | Path to the Terraform configuration | no | . |
| workspace | Name of the Terraform workspace | no | default |
| backend_config | List of backend config values to set, one per line | no | "" |
| backend_config_file | Path to a backend config file | no | "" |
| variables | Variable definitions | no | — |
| var | Comma separated list of vars to set, e.g. 'foo=bar' | no | — |
| var_file | List of var file paths, one per line | no | — |
| parallelism | Limit the number of concurrent operations | no | 0 |
| target | List of resources to target for the plan, one per line | no | "" |
| replace | List of resources to replace if an update is required, one per line | no | "" |
| destroy | Create a plan to destroy all resources | no | false |
| label | A friendly name for this plan | no | "" |
| add_github_comment | Add the plan to a GitHub PR | no | true |
Outputs
| name | description |
|---|---|
| changes | If the generated plan would update any resources or outputs this is set to `true`, otherwise it's set to `false`. |
| to_add | The number of resources that would be added by this plan |
| to_change | The number of resources that would be changed by this plan |
| to_destroy | The number of resources that would be destroyed by this plan |
| plan_path | Path to a file in the workspace containing the generated plan in an opaque binary format. |
| text_plan_path | Path to a file in the workspace containing the generated plan in human readable format. |
| json_plan_path | Path to a file in the workspace containing the generated plan in JSON format. |
| run_id | If the root module uses the `remote` or `cloud` backend in remote execution mode, this output will be set to the remote run id. |