pulumi-debug-failed-operation

Diagnose Pulumi update and preview failures from recorded engine events.

1|Updated Apr 14, 2025
One-click install
npx skills add https://github.com/mattwyskiel/dotfiles --skill pulumi-debug-failed-operation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pulumi-debug-failed-operation
Source: https://github.com/mattwyskiel/dotfiles/tree/main/agents/.agents/skills/pulumi-debug-failed-operation
Command: npx skills add https://github.com/mattwyskiel/dotfiles --skill pulumi-debug-failed-operation

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill addresses the challenge of diagnosing and resolving failed Pulumi update or preview operations, significantly reducing the time and complexity of debugging infrastructure failures.

Core Features & Use Cases

  • Diagnostic Readiness: Preps the user for quick access to diagnostic data without additional steps.
  • Event Analysis: Automatically retrieves and analyzes engine events from Pulumi, highlighting the root cause of the failure.
  • Resource Identification: Directly identifies which resources within the stack are responsible for the error, allowing precise debugging.
  • Use Case: If a Pulumi update fails due to a misconfiguration in the code, this Skill can pinpoint the error, suggesting the exact line to fix.

Quick Start

To debug a failed Pulumi update, run the following command: use $pulumi-debug-failed-operation to diagnose the failure in the current stack.

Frequently Asked Questions about pulumi-debug-failed-operation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I diagnose a failed Pulumi operation?

To diagnose a failed Pulumi operation, this Skill automatically retrieves and analyzes engine events from Pulumi to identify the root cause. It directly highlights which resources within the stack are responsible for the error, allowing precise post-mortem analysis.

Why does my Pulumi update fail and how can I find the misconfigured resource?

Pulumi updates fail due to code misconfigurations that you can find by analyzing recorded engine events. This Skill retrieves diagnostic data to directly identify the specific resources within the stack responsible for the error, reducing debugging complexity.

Do I need Pulumi Cloud API access to debug stack tracing events?

Yes, pre-configured access to the Pulumi Cloud API is required to debug stack tracing events. This access enables the automatic retrieval and analysis of engine events needed for post-mortem analysis of failed updates and previews.

What is the best way to perform post-mortem analysis on failed Pulumi previews?

The best way to perform post-mortem analysis on failed Pulumi previews is to automatically retrieve and analyze engine events. By accessing the Pulumi Cloud API, this approach pinpoints the exact resources causing the failure and suggests the precise line to fix.

Can I identify the exact line of code causing a Pulumi infrastructure failure?

Yes, you can identify the exact line of code causing a Pulumi infrastructure failure by analyzing engine events. If a Pulumi update fails due to a misconfiguration in the code, this diagnostic analysis pinpoints the error and suggests the exact line to fix.