Versions in this module Expand all Collapse all v1 v1.3.6 Dec 5, 2022 Changes in this version + const DefaultBackupExtension + const DefaultDataDir + const DefaultParallelism + const DefaultPluginVendorDir + const DefaultStateFilename + const DefaultVarsFilename + const ErrUnsupportedLocalOp + const InputModeEnvVar + const PluginPathFile + const VarEnvPrefix + const WorkspaceNameEnvVar + func ModulePath(args []string) (string, error) + type ApplyCommand struct + Destroy bool + func (c *ApplyCommand) GatherVariables(opReq *backend.Operation, args *arguments.Vars) tfdiags.Diagnostics + func (c *ApplyCommand) Help() string + func (c *ApplyCommand) LoadPlanFile(path string) (*planfile.Reader, tfdiags.Diagnostics) + func (c *ApplyCommand) OperationRequest(be backend.Enhanced, view views.Apply, planFile *planfile.Reader, ...) (*backend.Operation, tfdiags.Diagnostics) + func (c *ApplyCommand) PrepareBackend(planFile *planfile.Reader, args *arguments.State) (backend.Enhanced, tfdiags.Diagnostics) + func (c *ApplyCommand) Run(rawArgs []string) int + func (c *ApplyCommand) Synopsis() string + type BackendOpts struct + Config *configs.Backend + ConfigOverride hcl.Body + ForceLocal bool + Init bool + type BackendWithRemoteTerraformVersion interface + IgnoreVersionConflict func() + IsLocalOperations func() bool + VerifyWorkspaceTerraformVersion func(workspace string) tfdiags.Diagnostics + type ColorizeUi struct + Colorize *colorstring.Colorize + ErrorColor string + InfoColor string + OutputColor string + Ui cli.Ui + WarnColor string + func (u *ColorizeUi) Ask(query string) (string, error) + func (u *ColorizeUi) AskSecret(query string) (string, error) + func (u *ColorizeUi) Error(message string) + func (u *ColorizeUi) Info(message string) + func (u *ColorizeUi) Output(message string) + func (u *ColorizeUi) Warn(message string) + type ConsoleCommand struct + func (c *ConsoleCommand) Help() string + func (c *ConsoleCommand) Run(args []string) int + func (c *ConsoleCommand) Synopsis() string + type FlagStringKV map[string]string + func (v *FlagStringKV) Set(raw string) error + func (v *FlagStringKV) String() string + type FlagStringSlice []string + func (v *FlagStringSlice) Set(raw string) error + func (v *FlagStringSlice) String() string + type FmtCommand struct + func (c *FmtCommand) Help() string + func (c *FmtCommand) Run(args []string) int + func (c *FmtCommand) Synopsis() string + type GetCommand struct + func (c *GetCommand) Help() string + func (c *GetCommand) Run(args []string) int + func (c *GetCommand) Synopsis() string + type GraphCommand struct + func (c *GraphCommand) Help() string + func (c *GraphCommand) Run(args []string) int + func (c *GraphCommand) Synopsis() string + type ImportCommand struct + func (c *ImportCommand) Help() string + func (c *ImportCommand) Run(args []string) int + func (c *ImportCommand) Synopsis() string + type InitCommand struct + func (c *InitCommand) AutocompleteArgs() complete.Predictor + func (c *InitCommand) AutocompleteFlags() complete.Flags + func (c *InitCommand) Help() string + func (c *InitCommand) Run(args []string) int + func (c *InitCommand) Synopsis() string + type LoginCommand struct + func (c *LoginCommand) Help() string + func (c *LoginCommand) Run(args []string) int + func (c *LoginCommand) Synopsis() string + type LogoutCommand struct + func (c *LogoutCommand) Help() string + func (c *LogoutCommand) Run(args []string) int + func (c *LogoutCommand) Synopsis() string + type Meta struct + AllowExperimentalFeatures bool + BrowserLauncher webbrowser.Launcher + CLIConfigDir string + Color bool + GlobalPluginDirs []string + PluginCacheDir string + ProviderDevOverrides map[addrs.Provider]getproviders.PackageLocalDir + ProviderSource getproviders.Source + RunningInAutomation bool + Services *disco.Disco + ShutdownCh <-chan struct{} + Streams *terminal.Streams + Ui cli.Ui + UnmanagedProviders map[addrs.Provider]*plugin.ReattachConfig + View *views.View + WorkingDir *workdir.Dir + func (c *Meta) MaybeGetSchemas(state *states.State, config *configs.Config) (*terraform.Schemas, tfdiags.Diagnostics) + func (m *Meta) Backend(opts *BackendOpts) (backend.Enhanced, tfdiags.Diagnostics) + func (m *Meta) BackendForPlan(settings plans.Backend) (backend.Enhanced, tfdiags.Diagnostics) + func (m *Meta) Colorize() *colorstring.Colorize + func (m *Meta) DataDir() string + func (m *Meta) ErrorColumns() int + func (m *Meta) Input() bool + func (m *Meta) InputMode() terraform.InputMode + func (m *Meta) InterruptibleContext() (context.Context, context.CancelFunc) + func (m *Meta) Operation(b backend.Backend) *backend.Operation + func (m *Meta) OutputColumns() int + func (m *Meta) PlanFile(path string) (*planfile.Reader, error) + func (m *Meta) RunOperation(b backend.Enhanced, opReq *backend.Operation) (*backend.RunningOperation, error) + func (m *Meta) SetWorkspace(name string) error + func (m *Meta) StateOutPath() string + func (m *Meta) StdinPiped() bool + func (m *Meta) UIInput() terraform.UIInput + func (m *Meta) Workspace() (string, error) + func (m *Meta) WorkspaceOverridden() (string, bool) + type OutputCommand struct + func (c *OutputCommand) Help() string + func (c *OutputCommand) Outputs(statePath string) (map[string]*states.OutputValue, tfdiags.Diagnostics) + func (c *OutputCommand) Run(rawArgs []string) int + func (c *OutputCommand) Synopsis() string + type PlanCommand struct + func (c *PlanCommand) GatherVariables(opReq *backend.Operation, args *arguments.Vars) tfdiags.Diagnostics + func (c *PlanCommand) Help() string + func (c *PlanCommand) OperationRequest(be backend.Enhanced, view views.Plan, args *arguments.Operation, ...) (*backend.Operation, tfdiags.Diagnostics) + func (c *PlanCommand) PrepareBackend(args *arguments.State) (backend.Enhanced, tfdiags.Diagnostics) + func (c *PlanCommand) Run(rawArgs []string) int + func (c *PlanCommand) Synopsis() string + type ProvidersCommand struct + func (c *ProvidersCommand) Help() string + func (c *ProvidersCommand) Run(args []string) int + func (c *ProvidersCommand) Synopsis() string + type ProvidersLockCommand struct + func (c *ProvidersLockCommand) Help() string + func (c *ProvidersLockCommand) Run(args []string) int + func (c *ProvidersLockCommand) Synopsis() string + type ProvidersMirrorCommand struct + func (c *ProvidersMirrorCommand) Help() string + func (c *ProvidersMirrorCommand) Run(args []string) int + func (c *ProvidersMirrorCommand) Synopsis() string + type ProvidersSchemaCommand struct + func (c *ProvidersSchemaCommand) Help() string + func (c *ProvidersSchemaCommand) Run(args []string) int + func (c *ProvidersSchemaCommand) Synopsis() string + type PushCommand struct + func (c *PushCommand) Help() string + func (c *PushCommand) Run(args []string) int + func (c *PushCommand) Synopsis() string + type RefreshCommand struct + func (c *RefreshCommand) GatherVariables(opReq *backend.Operation, args *arguments.Vars) tfdiags.Diagnostics + func (c *RefreshCommand) Help() string + func (c *RefreshCommand) OperationRequest(be backend.Enhanced, view views.Refresh, args *arguments.Operation) (*backend.Operation, tfdiags.Diagnostics) + func (c *RefreshCommand) PrepareBackend(args *arguments.State) (backend.Enhanced, tfdiags.Diagnostics) + func (c *RefreshCommand) Run(rawArgs []string) int + func (c *RefreshCommand) Synopsis() string + type ShowCommand struct + func (c *ShowCommand) Help() string + func (c *ShowCommand) Run(rawArgs []string) int + func (c *ShowCommand) Synopsis() string + type StateCommand struct + func (c *StateCommand) Help() string + func (c *StateCommand) Run(args []string) int + func (c *StateCommand) Synopsis() string + type StateListCommand struct + func (c *StateListCommand) Help() string + func (c *StateListCommand) Run(args []string) int + func (c *StateListCommand) Synopsis() string + type StateMeta struct + func (c *StateMeta) State() (statemgr.Full, error) + type StateMvCommand struct + func (c *StateMvCommand) Help() string + func (c *StateMvCommand) Run(args []string) int + func (c *StateMvCommand) Synopsis() string + type StatePullCommand struct + func (c *StatePullCommand) Help() string + func (c *StatePullCommand) Run(args []string) int + func (c *StatePullCommand) Synopsis() string + type StatePushCommand struct + func (c *StatePushCommand) Help() string + func (c *StatePushCommand) Run(args []string) int + func (c *StatePushCommand) Synopsis() string + type StateReplaceProviderCommand struct + func (c *StateReplaceProviderCommand) Help() string + func (c *StateReplaceProviderCommand) Run(args []string) int + func (c *StateReplaceProviderCommand) Synopsis() string + type StateRmCommand struct + func (c *StateRmCommand) Help() string + func (c *StateRmCommand) Run(args []string) int + func (c *StateRmCommand) Synopsis() string + type StateShowCommand struct + func (c *StateShowCommand) Help() string + func (c *StateShowCommand) Run(args []string) int + func (c *StateShowCommand) Synopsis() string + type TaintCommand struct + func (c *TaintCommand) Help() string + func (c *TaintCommand) Run(args []string) int + func (c *TaintCommand) Synopsis() string + type TestCommand struct + func (c *TestCommand) Help() string + func (c *TestCommand) Run(rawArgs []string) int + func (c *TestCommand) Synopsis() string + type UIInput struct + Colorize *colorstring.Colorize + Reader io.Reader + Writer io.Writer + func (i *UIInput) Input(ctx context.Context, opts *terraform.InputOpts) (string, error) + type UnlockCommand struct + func (c *UnlockCommand) Help() string + func (c *UnlockCommand) Run(args []string) int + func (c *UnlockCommand) Synopsis() string + type UntaintCommand struct + func (c *UntaintCommand) Help() string + func (c *UntaintCommand) Run(args []string) int + func (c *UntaintCommand) Synopsis() string + type ValidateCommand struct + func (c *ValidateCommand) Help() string + func (c *ValidateCommand) Run(rawArgs []string) int + func (c *ValidateCommand) Synopsis() string + type VersionCheckFunc func() (VersionCheckInfo, error) + type VersionCheckInfo struct + Alerts []string + Latest string + Outdated bool + type VersionCommand struct + CheckFunc VersionCheckFunc + Platform getproviders.Platform + Version string + VersionPrerelease string + func (c *VersionCommand) Help() string + func (c *VersionCommand) Run(args []string) int + func (c *VersionCommand) Synopsis() string + type VersionOutput struct + Outdated bool + Platform string + ProviderSelections map[string]string + Version string + type WorkspaceCommand struct + LegacyName bool + func (c *WorkspaceCommand) Help() string + func (c *WorkspaceCommand) Run(args []string) int + func (c *WorkspaceCommand) Synopsis() string + type WorkspaceDeleteCommand struct + LegacyName bool + func (c *WorkspaceDeleteCommand) AutocompleteArgs() complete.Predictor + func (c *WorkspaceDeleteCommand) AutocompleteFlags() complete.Flags + func (c *WorkspaceDeleteCommand) Help() string + func (c *WorkspaceDeleteCommand) Run(args []string) int + func (c *WorkspaceDeleteCommand) Synopsis() string + type WorkspaceListCommand struct + LegacyName bool + func (c *WorkspaceListCommand) AutocompleteArgs() complete.Predictor + func (c *WorkspaceListCommand) AutocompleteFlags() complete.Flags + func (c *WorkspaceListCommand) Help() string + func (c *WorkspaceListCommand) Run(args []string) int + func (c *WorkspaceListCommand) Synopsis() string + type WorkspaceNewCommand struct + LegacyName bool + func (c *WorkspaceNewCommand) AutocompleteArgs() complete.Predictor + func (c *WorkspaceNewCommand) AutocompleteFlags() complete.Flags + func (c *WorkspaceNewCommand) Help() string + func (c *WorkspaceNewCommand) Run(args []string) int + func (c *WorkspaceNewCommand) Synopsis() string + type WorkspaceSelectCommand struct + LegacyName bool + func (c *WorkspaceSelectCommand) AutocompleteArgs() complete.Predictor + func (c *WorkspaceSelectCommand) AutocompleteFlags() complete.Flags + func (c *WorkspaceSelectCommand) Help() string + func (c *WorkspaceSelectCommand) Run(args []string) int + func (c *WorkspaceSelectCommand) Synopsis() string + type WorkspaceShowCommand struct + func (c *WorkspaceShowCommand) AutocompleteArgs() complete.Predictor + func (c *WorkspaceShowCommand) AutocompleteFlags() complete.Flags + func (c *WorkspaceShowCommand) Help() string + func (c *WorkspaceShowCommand) Run(args []string) int + func (c *WorkspaceShowCommand) Synopsis() string