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: internal/runner/runall/runall.go
+29-9Lines changed: 29 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -27,11 +27,18 @@ import (
27
27
// Known terraform commands that are explicitly not supported in run --all due to the nature of the command. This is
28
28
// tracked as a map that maps the terraform command to the reasoning behind disallowing the command in run --all.
29
29
varrunAllDisabledCommands=map[string]string{
30
-
tf.CommandNameImport: "terraform import should only be run against a single state representation to avoid injecting the wrong object in the wrong state representation.",
31
-
tf.CommandNameTaint: "terraform taint should only be run against a single state representation to avoid using the wrong state address.",
32
-
tf.CommandNameUntaint: "terraform untaint should only be run against a single state representation to avoid using the wrong state address.",
33
-
tf.CommandNameConsole: "terraform console requires stdin, which is shared across all instances of run --all when multiple modules run concurrently.",
34
-
tf.CommandNameForceUnlock: "lock IDs are unique per state representation and thus should not be run with run --all.",
30
+
tf.CommandNameImport: "terraform import should only be run against a single"+
31
+
" state representation to avoid injecting the wrong object"+
32
+
" in the wrong state representation.",
33
+
tf.CommandNameTaint: "terraform taint should only be run against a single"+
34
+
" state representation to avoid using the wrong state address.",
35
+
tf.CommandNameUntaint: "terraform untaint should only be run against a single"+
36
+
" state representation to avoid using the wrong state address.",
37
+
tf.CommandNameConsole: "terraform console requires stdin, which is shared"+
38
+
" across all instances of run --all when multiple modules"+
39
+
" run concurrently.",
40
+
tf.CommandNameForceUnlock: "lock IDs are unique per state representation"+
41
+
" and thus should not be run with run --all.",
35
42
}
36
43
37
44
funcRun(ctx context.Context, l log.Logger, opts*options.TerragruntOptions) error {
prompt="Are you sure you want to run 'terragrunt apply' in each unit of the run queue displayed above?"
167
184
casetf.CommandNameDestroy:
168
-
prompt="WARNING: Are you sure you want to run `terragrunt destroy` in each unit of the run queue displayed above? There is no undo!"
185
+
prompt="WARNING: Are you sure you want to run `terragrunt destroy`"+
186
+
" in each unit of the run queue displayed above? There is no undo!"
169
187
casetf.CommandNameState:
170
-
prompt="Are you sure you want to manipulate the state with `terragrunt state` in each unit of the run queue displayed above? Note that absolute paths are shared, while relative paths will be relative to each working directory."
188
+
prompt="Are you sure you want to manipulate the state with `terragrunt state`"+
189
+
" in each unit of the run queue displayed above? Note that absolute paths are shared,"+
190
+
" while relative paths will be relative to each working directory."
0 commit comments