Skip to content

API Reference parrot_tools.pulumi.toolkit

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

parrot_tools.pulumi.toolkit

View source

Pulumi Toolkit for infrastructure deployment.

Provides tools for deploying and managing infrastructure using Pulumi, starting with Docker/Docker Compose as the initial provider.

Alias AbstractToolkit

Re-exported from parrot_tools.toolkit.AbstractToolkit.

Alias PulumiApplyInput

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

Alias PulumiConfig

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

Alias PulumiDestroyInput

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

Alias PulumiExecutor

Re-exported from parrot_tools.pulumi.executor.PulumiExecutor.

Alias PulumiOperationResult

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

Alias PulumiPlanInput

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

Alias PulumiStatusInput

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

Class PulumiToolkit

Toolkit for infrastructure deployment using Pulumi.

Each public async method is exposed as a separate tool with the pulumi_ prefix.

Available Operations:

  • pulumi_plan: Preview infrastructure changes without applying
  • pulumi_apply: Apply infrastructure changes
  • pulumi_destroy: Tear down infrastructure
  • pulumi_status: Check current stack state
Parameter Type Default Description
config Optional[PulumiConfig] None Pulumi configuration. Uses defaults if not provided.
**kwargs {} Additional arguments passed to AbstractToolkit.

Method PulumiToolkit.pulumi_plan

Preview infrastructure changes without applying.

Shows what resources would be created, updated, or deleted if you were to run pulumi_apply. This is a safe operation that makes no changes to your infrastructure.

pulumi_plan(project_path: str, stack_name: Optional[str] = None, config: 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 containing Pulumi.yaml.
stack_name Optional[str] None Stack name to preview (defaults to 'dev').
config Optional[dict[str, Any]] None Configuration values to set before preview.
target Optional[list[str]] None Specific resource URNs to target for preview.
refresh bool True Refresh resource state before preview.

Returns: PulumiOperationResult — PulumiOperationResult with preview details including: - resources: List of resources to be affected - summary: Count of creates/updates/deletes - success: Whether preview completed successfully

Method PulumiToolkit.pulumi_apply

Apply infrastructure changes.

Creates, updates, or deletes resources to match the desired state defined in your Pulumi program. By default runs with auto_approve=True to avoid interactive prompts in agent workflows.

pulumi_apply(project_path: str, stack_name: Optional[str] = None, config: 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 containing Pulumi.yaml.
stack_name Optional[str] None Stack name to apply (defaults to 'dev').
config Optional[dict[str, Any]] None Configuration values to set before apply.
auto_approve bool True Skip confirmation prompt and apply immediately.
target Optional[list[str]] None Specific resource URNs to target for apply.
refresh bool True Refresh resource state before apply.
replace Optional[list[str]] None Resource URNs to force-replace during apply.

Returns: PulumiOperationResult — PulumiOperationResult with apply details including: - resources: List of resources that were affected - outputs: Stack outputs after apply - summary: Count of creates/updates/deletes - success: Whether apply completed successfully

Method PulumiToolkit.pulumi_destroy

Tear down infrastructure.

Deletes all resources managed by the specified stack. By default runs with auto_approve=True to avoid interactive prompts in agent workflows.

WARNING: This operation is destructive and cannot be undone. Use pulumi_plan first to preview what will be destroyed.

pulumi_destroy(project_path: str, stack_name: 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 containing Pulumi.yaml.
stack_name Optional[str] None Stack name to destroy (defaults to 'dev').
auto_approve bool True Skip confirmation prompt and destroy immediately.
target Optional[list[str]] None Specific resource URNs to target for destruction.

Returns: PulumiOperationResult — PulumiOperationResult with destroy details including: - resources: List of resources that were deleted - summary: Count of deleted resources - success: Whether destroy completed successfully

Method PulumiToolkit.pulumi_status

Check current stack state.

Returns the current outputs and resource state of the specified stack. This is a read-only operation that makes no changes.

pulumi_status(project_path: str, stack_name: Optional[str] = None) -> PulumiOperationResult

Parameter Type Default Description
project_path str Path to Pulumi project directory containing Pulumi.yaml.
stack_name Optional[str] None Stack name to check (defaults to 'dev').

Returns: PulumiOperationResult — PulumiOperationResult with current state including: - outputs: Current stack outputs - resources: Currently deployed resources (if available) - success: Whether status check completed successfully

Method PulumiToolkit.pulumi_list_stacks

List all stacks in the project.

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

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

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

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