Skip to content

API Reference parrot_tools.pulumi.executor

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot_tools.pulumi.executor

View source

Pulumi executor for running infrastructure deployment commands.

Extends BaseExecutor to provide Pulumi-specific CLI argument building and helper methods for preview, apply, destroy, and status operations.

Alias BaseExecutor

Re-exported from parrot_tools.security.base_executor.BaseExecutor.

Alias PulumiConfig

Re-exported from parrot_tools.pulumi.config.PulumiConfig.

Class PulumiExecutor

Executes Pulumi CLI commands via Docker or direct CLI.

Supports Docker execution mode or direct CLI invocation. Parses JSON output from Pulumi commands into structured models.

Parameter Type Default Description
config Optional[PulumiConfig] None Pulumi configuration. Uses defaults if not provided.

Attributes:

Attribute Type Description
config PulumiConfig

Method PulumiExecutor.preview

Preview infrastructure changes without applying.

preview(project_path: str, stack: Optional[str] = None, config_values: Optional[dict[str, Any]] = None, target: Optional[list[str]] = None, refresh: bool = True) -> PulumiOperationResult

Parameter Type Default Description
project_path str Path to Pulumi project directory.
stack Optional[str] None Stack name (defaults to config.default_stack).
config_values Optional[dict[str, Any]] None Configuration values to set (not yet implemented).
target Optional[list[str]] None Specific resource URNs to target.
refresh bool True Refresh state before preview.

Returns: PulumiOperationResult — PulumiOperationResult with preview details.

Method PulumiExecutor.up

Apply infrastructure changes.

up(project_path: str, stack: Optional[str] = None, config_values: Optional[dict[str, Any]] = None, auto_approve: bool = True, target: Optional[list[str]] = None, refresh: bool = True, replace: Optional[list[str]] = None) -> PulumiOperationResult

Parameter Type Default Description
project_path str Path to Pulumi project directory.
stack Optional[str] None Stack name (defaults to config.default_stack).
config_values Optional[dict[str, Any]] None Configuration values to set (not yet implemented).
auto_approve bool True Skip confirmation prompt.
target Optional[list[str]] None Specific resource URNs to target.
refresh bool True Refresh state before apply.
replace Optional[list[str]] None Resource URNs to force-replace.

Returns: PulumiOperationResult — PulumiOperationResult with apply details.

Method PulumiExecutor.destroy

Tear down infrastructure.

destroy(project_path: str, stack: Optional[str] = None, auto_approve: bool = True, target: Optional[list[str]] = None) -> PulumiOperationResult

Parameter Type Default Description
project_path str Path to Pulumi project directory.
stack Optional[str] None Stack name (defaults to config.default_stack).
auto_approve bool True Skip confirmation prompt.
target Optional[list[str]] None Specific resource URNs to target.

Returns: PulumiOperationResult — PulumiOperationResult with destroy details.

Method PulumiExecutor.stack_output

Get current stack outputs.

stack_output(project_path: str, stack: Optional[str] = None) -> PulumiOperationResult

Parameter Type Default Description
project_path str Path to Pulumi project directory.
stack Optional[str] None Stack name (defaults to config.default_stack).

Returns: PulumiOperationResult — PulumiOperationResult with stack outputs.

Method PulumiExecutor.list_stacks

List all stacks in the project.

list_stacks(project_path: str) -> tuple[list[str], str]

Parameter Type Default Description
project_path str Path to Pulumi project directory.

Returns: tuple[list[str], str] — Tuple of (stack_names, error_message).

Alias PulumiOperationResult

Re-exported from parrot_tools.pulumi.config.PulumiOperationResult.

Alias PulumiResource

Re-exported from parrot_tools.pulumi.config.PulumiResource.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally