AlphaAlphanameThe name identifying the stack.
Readonly AlphaworkspaceThe Workspace the stack was created from.
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 names of the environments to add to the stack's configuration
AlphaStops 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.
AlphaDeletes 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: DestroyOptionsOptions to customize the behavior of the destroy.
AlphaExports 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).
AlphaReturns the full config map associated with the stack in the workspace.
AlphaReturns the config value associated with the specified key.
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 tag value associated with specified key.
The key to use for the tag lookup.
AlphaReturns a list summarizing all previous and current results from Stack lifecycle operations (up/preview/refresh/destroy).
OptionalpageSize: numberOptionalpage: numberOptionalshowSecrets: booleanAlphaImport resources into the stack
Options to specify resources and customize the behavior of the import.
AlphaImports 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.
AlphaReturns the list of environments currently in the stack's import list.
AlphaPerforms a dry-run update to a stack, returning pending changes.
Optionalopts: PreviewOptionsOptions to customize the behavior of the preview.
AlphaPerforms a dry-run destroy of the stack, returning pending changes.
Optionalopts: DestroyOptionsOptions to customize the behavior of the destroy.
AlphaPerforms a dry-run refresh of the stack, returning pending changes.
Optionalopts: RefreshOptionsOptions to customize the behavior of the refresh.
AlphaCompares 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: RefreshOptionsOptions to customize the behavior of the refresh.
AlphaRemoves the specified config keys from the stack in the associated workspace.
The config keys to remove.
Optionalpath: booleanThe keys contain a path to a property in a map or list to remove.
AlphaRemoves the specified config key from the stack in the associated workspace.
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 name of the environment to remove from the stack's configuration
AlphaRemoves the specified tag key-value pair from the stack in the associated workspace.
The tag key to remove.
AlphaSets all specified config values on the stack in the associated workspace.
The map of config key-value pairs to set.
Optionalpath: booleanThe keys contain a path to a property in a map or list to set.
AlphaSets 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
AlphaSets a config key-value pair on the stack in the associated Workspace.
The key to set.
The config value to set.
Optionalpath: booleanThe key contains a path to a property in a map or list to set.
AlphaSets a tag key-value pair on the stack in the associated workspace.
The tag key to set.
The tag value to set.
StaticcreateAlphaCreates 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.
StaticcreateAlphaCreates 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.
StaticselectAlphaSelects 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).