Skip to content
pulumi avatar

Pulumi Terraform To Pulumi

Migrates Terraform or OpenTofu projects to Pulumi by translating HCL and importing tfstate into a stack.

CCM score
66 of 100
skills.sh installs
1K
GitHub stars
82
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the migration workflow: scoping the plan, creating the Pulumi project, state translation, source translation, and PR creation
  • Runs the terraform-migrate plugin to generate draft state and a required-providers.json file, then imports it with pulumi stack import
  • Enforces an exact match to the translated state, iterating until pulumi_preview shows no or almost no diff
  • Designed for teams moving existing Terraform or OpenTofu infrastructure to Pulumi, and it avoids pulumi convert

Install

$ npx -y skills add pulumi/agent-skills --skill pulumi-terraform-to-pulumi -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Migrating from Terraform to Pulumi

Critical constraints — read before acting:

  • Do NOT run pulumi convert — use the terraform-migrate plugin instead, which preserves state mapping.
  • Do NOT run pulumi package add terraform-module — this is for a different workflow.
  • Do NOT create the Pulumi project under /workspace — create it inside the checked-out repo.
  • Replace ${terraform_dir} and ${pulumi_dir} below with the actual paths confirmed with the user.

First establish scope and plan the migration by working out with the user:

  • where the Terraform sources are (${terraform_dir})
  • where the migrated Pulumi project lives (${pulumi_dir})
  • what is the target Pulumi language (such as TypeScript, Python, YAML)
  • whether migration aims to setup Pulumi stack states, or only translate source code

Confirm the plan with the user before proceeding.

Create a new Pulumi project in ${pulumi_dir} in the chosen language. Edit sources to be empty and not declare any resources. Ensure a Pulumi stack exists.

You must run pulumi_up tool before proceeding to ensure initial stack state is written.

Details

Repository
github.com/pulumi/agent-skills
Category
DevOps & Cloud
First seen
Jun 3, 2026

More from pulumi/agent-skills

All 12

Similar to Pulumi Terraform To Pulumi

More DevOps & Cloud