Repository navigation
feat(terraform): preview requests in dry run for tf commands - #2895
Merged
Merged
Conversation
Add dry-run support to OpenTofu commands. Nine commands that dispatch subprocesses now carry the request-plan class: tf init, tf plan, tf apply, tf destroy, tf output, tf deploy-cloud, tf lint, tf cost breakdown, and tf cost diff. Under dry run, each command previews its planned execution requests and starts no subprocess. Six local inspection commands carry the no-external-request class: tf drift, tf fmt, tf graph, tf notify-plan, tf status, and tf validate. Under dry run, each command runs locally without external network requests. Removed redundant explicit dry-run options from local inspection commands. Closes #2249
dan-petty
force-pushed
the
feat/2249-tf-dry-run
branch
from
October 31, 2026 18:18
84abd29 to
5dc0407
Compare
dan-petty
marked this pull request as ready for review
October 31, 2026 18:26
dan-petty-release Bot
added a commit
that referenced
this pull request
Oct 31, 2026
🤖 I have created a release *beep* *boop* --- ## [0.31.0](v0.30.0...v0.31.0) (2026-10-31) ### Features * **terraform:** preview requests in dry run for tf commands ([#2895](#2895)) ([980a9be](980a9be)), closes [#2249](#2249) ### Bug Fixes * **security:** the subprocess environment guard accepts LESS, which... ([#2896](#2896)) ([1545b85](1545b85)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This change implements sub-issue #2249. It adds dry-run support to 15 OpenTofu commands in devops tf.
Changes
Closes #2249