cloud.terraform icon indicating copy to clipboard operation
cloud.terraform copied to clipboard

Add (tofu compatible) '-exclude' parameter

Open bschonec opened this issue 3 months ago • 1 comments

SUMMARY

Add the '-exclude' parameter (which currently is OpenTofu specific) that will allow excluding specific resources during the build process.

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

exclude

ADDITIONAL INFORMATION

Use case: I have a three environment structure - DEV, QA and PROD. For testing purposes I might only want to deploy the DEV environment. When it comes time to create a new deployment, I want all three environments created.

Adding the '-exclude' parameter would allow building a subset of the resources normally wanted. This is somewhat the inverse of the 'targets' parameter

bschonec avatar Aug 20 '25 17:08 bschonec