pulumi-terraform-to-pulumi

Convert Terraform HCL sources and states into a Pulumi stack.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires terraform-migrate, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the migration of Terraform infrastructure configurations to Pulumi, streamlining the transition to infrastructure-as-code (IaC).

Core Features & Use Cases

  • Terraform to Pulumi Conversion: Translate Terraform HCL source code and state files into a Pulumi stack.
  • Migrating from HCL: Facilitates migration from HashiCorp Configuration Language (HCL) to Pulumi.
  • State Import: Offers the capability to import Terraform state into a Pulumi stack.
  • Use Case: A user can quickly convert their existing Terraform infrastructure into a Pulumi-based system, ensuring portability and scalability of their IaC code.

Quick Start

Migrate your Terraform infrastructure to Pulumi by using the command: 'pulumi-terraform-to-pulumi convert --from <path-to-terraform> --to <path-to-pulumi>'

Frequently Asked Questions about pulumi-terraform-to-pulumi

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

FAQPage Schema
How do I convert Terraform HCL source code to Pulumi?

You can convert Terraform HCL source code to Pulumi by running a conversion command that translates your infrastructure configurations into a Pulumi stack. This requires the terraform-migrate plugin to parse the HCL sources.

Can I import existing Terraform state into a Pulumi stack?

Yes, you can import existing Terraform state into a Pulumi stack. The migration process supports state translation, allowing you to transition your provisioned infrastructure resources directly into Pulumi management.

Do I need the terraform-migrate plugin to migrate infrastructure as code to Pulumi?

Yes, the terraform-migrate plugin is required to migrate infrastructure as code to Pulumi. This dependency facilitates the translation of HCL sources and Terraform states into the corresponding Pulumi stack configuration.

What is the best way to transition from Terraform to Pulumi for infrastructure as code?

The best way to transition from Terraform to Pulumi is using an automated conversion tool that handles both HCL source translation and state import. This streamlines migration, ensuring your infrastructure as code remains portable and scalable.

Does converting Terraform configurations to Pulumi support porting cloud infrastructure at scale?

Converting Terraform configurations to Pulumi supports porting cloud infrastructure at scale by translating HCL sources and state files into a Pulumi stack. This ensures portability and scalability of your infrastructure as code during the transition.