AlphaAlphaenvEnvironment values scoped to the current workspace. These will be supplied to every Pulumi command.
Optional AlphaprogramThe inline program PulumiFn to be used for preview/update operations, if any. If none is specified, the stack will refer to ProjectSettings for this information.
Readonly AlphapulumiThe underlying Pulumi CLI.
Optional Readonly AlphapulumiThe directory override for CLI metadata if set. This customizes the
location of $PULUMI_HOME where metadata is stored and plugins are
installed.
Readonly AlphapulumiThe version of the underlying Pulumi CLI/engine.
Optional Readonly AlphasecretsThe secrets provider to use for encryption and decryption of stack secrets.
Readonly AlphaworkThe working directory to run Pulumi CLI commands.
AlphaAdds environments to the end of a stack's import list. Imported environments are merged in order per the ESC merge rules. The list of environments behaves as if it were the import list in an anonymous environment.
The stack to operate on
The names of the environments to add to the stack's configuration
AlphaCreates and sets a new stack with the stack name, failing if one already exists.
The stack to create.
AlphaExports the deployment state of the stack. This can be combined with Workspace.importStack to edit a stack's state (such as recovery from failed deployments).
the name of the stack.
AlphaReturns the config map for the specified stack name, scoped to the current Workspace.
The stack to read config from
AlphaReturns the value associated with the specified stack name and key, scoped to the Workspace.
The stack to read config from
The key to use for the config lookup
Optionalpath: booleanThe key contains a path to a property in a map or list to get
AlphaReturns the value associated with the specified stack name and key, scoped to the Workspace.
The stack to read tag metadata from.
The key to use for the tag lookup.
AlphaImports the specified deployment state into a pre-existing stack. This can be combined with Workspace.exportStack to edit a stack's state (such as recovery from failed deployments).
The name of the stack.
The stack state to import.
AlphaInstalls a plugin in the workspace from a remote server, for example a third-party plugin.
The name of the plugin.
The version of the plugin e.g. "v1.0.0".
Optionalkind: stringThe kind of plugin e.g. "resource"
AlphaInstalls a plugin in the workspace, for example to use cloud providers like AWS or GCP.
The name of the plugin.
The version of the plugin e.g. "v1.0.0".
The server to install the plugin into
AlphaReturns the list of environments associated with the specified stack name.
The stack to operate on
AlphaReturns all stacks from the underlying backend based on the provided
options. This queries backend and may return stacks not present in the
Workspace as Pulumi.<stack>.yaml files.
Optionalopts: ListOptionsOptions to customize the behavior of the list.
AlphaReturns the tag map for the specified tag name, scoped to the current Workspace.
The stack to read tag metadata from.
AlphaA hook executed after every command. Called with the stack name. An
extensibility point to perform workspace cleanup (CLI operations may
create/modify a Pulumi.stack.yaml)
AlphaGets and sets the config map used with the last update for Stack matching stack name.
The stack to refresh
AlphaRemoves all values in the provided key list for the specified stack name.
The stack to operate on
The list of keys to remove from the underlying config
Optionalpath: booleanThe keys contain a path to a property in a map or list to remove
AlphaRemoves the specified key-value pair on the provided stack name.
The stack to operate on
The config key to remove
Optionalpath: booleanThe key contains a path to a property in a map or list to remove
AlphaRemoves an environment from a stack's import list.
The stack to operate on
The name of the environment to remove from the stack's configuration
AlphaRemoves a plugin from the workspace matching the specified name and version.
Optionalname: stringThe optional name of the plugin.
OptionalversionRange: stringAn optional semver range to check when removing plugins matching the given name e.g. "1.0.0", ">1.0.0".
Optionalkind: stringThe kind of plugin e.g. "resource"
AlphaDeletes the stack and all associated configuration and history.
The stack to remove
Optionalopts: RemoveOptionsAlphaRemoves the specified key-value pair on the provided stack name.
The stack to operate on.
The tag key to remove.
AlphaOverwrites the settings object in the current project. There can only be a single project per workspace. Fails if the new project name does not match the old one.
The settings object to save.
AlphaOverwrites the settings object for the stack matching the specified stack name.
The name of the stack to operate on.
The settings object to save.
AlphaSelects and sets an existing stack matching the stack name, failing if none exists.
The stack to select.
AlphaA hook to provide additional arguments to every CLI command before they
are executed. Provided with the stack name, this should return a list of
arguments to append to an invoked command (e.g. ["--config=...", ...]).
AlphaSets all values in the provided config map for the specified stack name.
AlphaSets all config values from a JSON string for the specified stack name. The JSON string should be in the format produced by "pulumi config --json".
The stack to operate on
A JSON string containing the configuration values to set
AlphaSets the specified key-value pair on the provided stack name.
The stack to operate on
The config key to set
The value to set
Optionalpath: booleanThe key contains a path to a property in a map or list to set
AlphaSets the specified key-value pair on the provided stack name.
The stack to operate on.
The tag key to set.
The tag value to set.
AlphaReturns a summary of the currently selected stack, if any.
AlphaReturns the settings object for the stack matching the specified stack name, if any.
The name of the stack.
Workspace is the execution context containing a single Pulumi project, a program, and multiple Stacks. Workspaces are used to manage the execution environment, providing various utilities such as plugin installation, environment configuration (
$PULUMI_HOME), and creation, deletion, and listing of Stacks.