You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: terraform-plan/README.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -170,6 +170,24 @@ The [dflook/terraform-apply](https://github.com/dflook/terraform-github-actions/
170
170
- Optional
171
171
- Default: The Terraform default (10).
172
172
173
+
* `speculative`
174
+
175
+
Set to `true` to force a speculative plan that cannot be applied.
176
+
177
+
This creates a "Planned and finished" run in Terraform Cloud instead of "Planned and saved".
178
+
Speculative plans don't lock state and can run in parallel with other operations.
179
+
180
+
This is useful for PR workflows where you want to preview changes without blocking other runs.
181
+
182
+
```yaml
183
+
with:
184
+
speculative: true
185
+
```
186
+
187
+
- Type: boolean
188
+
- Optional
189
+
- Default: `false`
190
+
173
191
## Outputs
174
192
175
193
* `changes`
@@ -185,6 +203,8 @@ The [dflook/terraform-apply](https://github.com/dflook/terraform-github-actions/
185
203
186
204
The plan can be used as the `plan_file` input to the [dflook/terraform-apply](https://github.com/dflook/terraform-github-actions/tree/main/terraform-apply) action.
187
205
206
+
This won't be set if `speculative` is `true` or if the backend type is `remote`/`cloud` in remote execution mode.
207
+
188
208
Terraform plans often contain sensitive information, so this output should be treated with care.
Copy file name to clipboardExpand all lines: terraform-plan/action.yaml
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -78,6 +78,16 @@ inputs:
78
78
description: Limit the number of concurrent operations
79
79
required: false
80
80
default: "0"
81
+
speculative:
82
+
description: |
83
+
Set to `true` to force a speculative plan that cannot be applied.
84
+
85
+
This creates a "Planned and finished" run in Terraform Cloud instead of "Planned and saved".
86
+
Speculative plans don't lock state and can run in parallel with other operations.
87
+
88
+
This is useful for PR workflows where you want to preview changes without blocking other runs.
89
+
required: false
90
+
default: "false"
81
91
82
92
outputs:
83
93
changes:
@@ -89,6 +99,8 @@ outputs:
89
99
90
100
The plan can be used as the `plan_file` input to the [dflook/terraform-apply](https://github.com/dflook/terraform-github-actions/tree/main/terraform-apply) action.
91
101
102
+
This won't be set if `speculative` is `true` or if the backend type is `remote`/`cloud` in remote execution mode.
103
+
92
104
Terraform plans often contain sensitive information, so this output should be treated with care.
0 commit comments