AlphaAlphanameThe name identifying the stack.
Readonly AlphaworkspaceThe Workspace the stack was created from.
Alpha
Adds 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 names of the environments to add to the stack's configuration
Alpha
Stops a stack's currently running update. It returns an error if no update is currently running. Note that this operation is very dangerous, and may leave the stack in an inconsistent state if a resource operation was pending when the update was canceled.
Alpha
Deletes all resources in a stack. By default, this method will leave all
history and configuration intact. If opts.remove is set, the entire
stack and its configuration will also be deleted.
Optionalopts: DestroyOptions
Options to customize the behavior of the destroy.
Alpha
Exports the deployment state of the stack. This can be combined with Stack.importStack to edit a stack's state (such as recovery from failed deployments).
Alpha
Returns the full config map associated with the stack in the workspace.
Alpha
Returns the config value associated with the specified key.
The key to use for the config lookup
Optionalpath: boolean
The key contains a path to a property in a map or list to get
Alpha
Returns the tag value associated with specified key.
The key to use for the tag lookup.
Alpha
Returns a list summarizing all previous and current results from Stack lifecycle operations (up/preview/refresh/destroy).
OptionalpageSize: numberOptionalpage: numberOptionalshowSecrets: booleanAlpha
Import resources into the stack
Options to specify resources and customize the behavior of the import.
Alpha
Imports the specified deployment state into a pre-existing stack. This can be combined with Stack.exportStack to edit a stack's state (such as recovery from failed deployments).
The stack state to import.
Alpha
Returns the list of environments currently in the stack's import list.
Alpha
Gets the default organization for the current backend.
Alpha
Sets the default organization for the current backend.
The name of the organization to set as the default.
Alpha
Performs a dry-run update to a stack, returning pending changes.
Optionalopts: PreviewOptions
Options to customize the behavior of the preview.
Alpha
Performs a dry-run destroy of the stack, returning pending changes.
Optionalopts: DestroyOptions
Options to customize the behavior of the destroy.
Alpha
Performs a dry-run refresh of the stack, returning pending changes.
Optionalopts: RefreshOptions
Options to customize the behavior of the refresh.
Alpha
Compares the current stack’s resource state with the state known to exist in the actual cloud provider. Any such changes are adopted into the current stack.
Optionalopts: RefreshOptions
Options to customize the behavior of the refresh.
Alpha
Removes the specified config keys from the stack in the associated workspace.
The config keys to remove.
Optionalpath: boolean
The keys contain a path to a property in a map or list to remove.
Alpha
Removes the specified config key from the stack in the associated workspace.
The config key to remove.
Optionalpath: boolean
The key contains a path to a property in a map or list to remove.
Alpha
Removes an environment from a stack's import list.
The name of the environment to remove from the stack's configuration
Alpha
Removes the specified tag key-value pair from the stack in the associated workspace.
The tag key to remove.
Alpha
Sets all specified config values on the stack in the associated workspace.
The map of config key-value pairs to set.
Optionalpath: boolean
The keys contain a path to a property in a map or list to set.
Alpha
Sets all config values from a JSON string for the stack in the associated workspace. The JSON string should be in the format produced by "pulumi config --json".
A JSON string containing the configuration values to set
Alpha
Sets a config key-value pair on the stack in the associated Workspace.
The key to set.
The config value to set.
Optionalpath: boolean
The key contains a path to a property in a map or list to set.
Alpha
Sets a tag key-value pair on the stack in the associated workspace.
The tag key to set.
The tag value to set.
StaticcreateAlpha
Creates a new stack using the given workspace, and stack name. It fails if a stack with that name already exists
The name identifying the Stack.
The Workspace the Stack was created from.
StaticcreateAlpha
Creates a new stack using the given workspace and stack name if the stack does not already exist, or falls back to selecting the existing stack. If the stack does not exist, it will be created and selected.
StaticselectAlpha
Selects stack using the given workspace and stack name. It returns an error if the given stack does not exist.
Stack is an isolated, independently configurable instance of a Pulumi program. Stack exposes methods for the full Pulumi lifecycle (up/preview/refresh/destroy), as well as managing configuration. Multiple Stacks are commonly used to denote different phases of development (such as development, staging and production) or feature branches (such as feature-x-dev, jane-feature-x-dev).