Open JakeNeyer opened 4 months ago
Thanks for this feature request! If you are viewing this issue and would like to indicate your interest, please use the 👍 reaction on the issue description to upvote this issue. We also welcome additional use case descriptions. Thanks again!
Terraform Version
Use Cases
In some scenarios, running provisioner blocks when testing is unfeasible. When running
terraform test
I would like the ability to mock output or skip provisioner blocks on certain resources entirely.Attempted Solutions
N/A
Proposal
Following conventions from the
override_resource
,override_data
, andoverride_module
blocks, a separateoverride_provisioner
block would be one suggestion. The override could have attributes to indicate the provisioner should be skipped altogether or replaced with some other provisioner specifically for testing purposes.For example, a
null_resource
with a local-exec provisioner might look like:References
No response