diff --git a/tf.py b/tf.py index 19bceb950d5ec0694bc104178a64d8d44411fba2..bdf6e128241dff681c894eceaa98f137337c2f8f 100644 --- a/tf.py +++ b/tf.py @@ -10,8 +10,31 @@ import sys __version__ = "0.2.0" -TF_COMMANDS_TO_MODIFY = ["plan", "console", "import", "refresh"] TF_CLI = os.getenv("TF_CLI", "terraform") +TF_COMMANDS_TO_MODIFY = ( + [ + "console", + "import", + "plan", + "refresh", + ] + if TF_CLI == "terraform" + else [ + "apply", + "console", + "destroy", + "destroy", + "get", + "import", + "init", + "output", + "plan", + "refresh", + "taint", + "untaint", + "validate", + ] +) def get_workspace():