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/strict/controls/controls.go
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,9 @@ const (
38
38
// SkipDependenciesInputs is the control that prevents reading dependencies inputs and get performance boost.
39
39
SkipDependenciesInputs="skip-dependencies-inputs"
40
40
41
+
// RequireExplicitBootstrap is the control that prevents the backend for remote state from being bootstrapped unless the `--backend-bootstrap` flag is specified.
// CLIRedesign is the control that prevents the use of commands deprecated as part of the CLI Redesign.
42
45
CLIRedesign="cli-redesign"
43
46
@@ -71,6 +74,15 @@ func New() strict.Controls {
71
74
Category: stageCategory,
72
75
}
73
76
77
+
requireExplicitBootstrapControl:=&Control{
78
+
Name: RequireExplicitBootstrap,
79
+
Description: "Don't bootstrap backends by default. When enabled, users must supply `--backend-bootstrap` explicitly to automatically bootstrap backend resources.",
80
+
Error: errors.Errorf("Bootstrap backend for remote state by default is no longer supported. Use `--backend-bootstrap` flag instead."),
81
+
Warning: "Bootstrapping backend resources by default is deprecated functionality, and will not be the default behavior in a future version of Terragrunt. Use the explicit `--backend-bootstrap` flag to automatically provision backend resources before they're needed.",
82
+
Category: stageCategory,
83
+
Status: strict.CompletedStatus,
84
+
}
85
+
74
86
controls:= strict.Controls{
75
87
&Control{
76
88
Name: DeprecatedCommands,
@@ -93,9 +105,11 @@ func New() strict.Controls {
93
105
Category: lifecycleCategory,
94
106
Subcontrols: strict.Controls{
95
107
skipDependenciesInputsControl,
108
+
requireExplicitBootstrapControl,
96
109
},
97
110
},
98
111
skipDependenciesInputsControl,
112
+
requireExplicitBootstrapControl,
99
113
&Control{
100
114
Name: CLIRedesign,
101
115
Description: "Prevents the use of commands deprecated as part of the CLI Redesign.",
0 commit comments