Skip to content

Commit 09fec57

Browse files
committed
Market strict control as completed
1 parent de7b158 commit 09fec57

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

internal/strict/controls/controls.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ const (
3838
// SkipDependenciesInputs is the control that prevents reading dependencies inputs and get performance boost.
3939
SkipDependenciesInputs = "skip-dependencies-inputs"
4040

41+
// RequireExplicitBootstrap is the control that prevents the backend for remote state from being bootstrapped unless the `--backend-bootstrap` flag is specified.
42+
RequireExplicitBootstrap = "require-explicit-bootstrap"
43+
4144
// CLIRedesign is the control that prevents the use of commands deprecated as part of the CLI Redesign.
4245
CLIRedesign = "cli-redesign"
4346

@@ -71,6 +74,15 @@ func New() strict.Controls {
7174
Category: stageCategory,
7275
}
7376

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+
7486
controls := strict.Controls{
7587
&Control{
7688
Name: DeprecatedCommands,
@@ -93,9 +105,11 @@ func New() strict.Controls {
93105
Category: lifecycleCategory,
94106
Subcontrols: strict.Controls{
95107
skipDependenciesInputsControl,
108+
requireExplicitBootstrapControl,
96109
},
97110
},
98111
skipDependenciesInputsControl,
112+
requireExplicitBootstrapControl,
99113
&Control{
100114
Name: CLIRedesign,
101115
Description: "Prevents the use of commands deprecated as part of the CLI Redesign.",

0 commit comments

Comments
 (0)