pulumi avatar

Pulumi Terraform To Pulumi

This handles the full Terraform to Pulumi migration workflow, not just code conversion. It walks you through translating HCL source code and importing existing tfstate into a new Pulumi stack using the terraform-migrate plugin instead of the standard convert command, which matters because it preserves state mapping. The skill enforces a specific sequence: confirm scope with the user, create an empty Pulumi project, pull remote state if needed, generate the state translation, install the exact provider versions it specifies, import the state, then iteratively fix your code until preview shows no diff. It's opinionated about avoiding common mistakes like running commands in the wrong directory or skipping the credential setup step.

skills.sh installs
974
GitHub stars
79
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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.

Sponsors

Details

Repository
github.com/pulumi/agent-skills
Categories
DevOps & CI/CD, AI & Agent Building, Cloud & Infrastructure
First seen
Jun 3, 2026

More from pulumi/agent-skills

All 12
1rpamis avatarcomet-buildrpamis/comet仅在用户明确调用 /comet-build,或由 Comet 根 Skill/runtime 路由到 full workflow 的 build 阶段时使用;创建或恢复实施计划并执行任务。884skills.sh installs
2sickn33 avatarkubernetes-architectsickn33/antigravity-awesome-skillskubernetes architect858skills.sh installs
3mindrally avatarlogging-best-practicesmindrally/skillsLogging best practices for applications and services including structured logging, log levels, and log management strategies819skills.sh installs
4signerlabs avatarbuild-featuresignerlabs/shipswift-skillsBuild an iOS feature using ShipSwift component recipes. Use when the user says "build", "create", "add a feature", or describes an iOS feature they want to impl784skills.sh installs
5eraserlabs avatarterraform-diagramseraserlabs/eraser-ioGenerates architecture diagrams from Terraform code. Use when user has .tf files or asks to visualize Terraform infrastructure.765skills.sh installs
6aradotso avatarmarketing-content-pipeline-automationaradotso/marketing-skillsmarketing content pipeline automation736skills.sh installs