# Pulumi cdk to pulumi

> Pulumi cdk to pulumi is an open-source agent skill for cloud and infrastructure. Guides an agent through migrating an AWS CDK app to Pulumi with a PR-ready report. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/pulumi/agent-skills/tree/main/migration/skills/pulumi-cdk-to-pulumi
- **Repository:** https://github.com/pulumi/agent-skills
- **GitHub stars:** 82
- **License:** Apache-2.0
- **Skill name:** pulumi-cdk-to-pulumi
- **Collection:** https://github.com/pulumi/agent-skills
- **Categories:** [cloud and infrastructure](https://ai-powered.com/categories/cloud-and-infrastructure)
- **Listing updated:** 2026-12-03

## About

This skill walks an agent through converting an AWS CDK application, including its stacks, constructs and synthesized CloudFormation templates, into a Pulumi program. The workflow starts by confirming credentials through Pulumi ESC and the AWS region, then synthesizes the CDK app with cdk synth, reads the stack manifest, and inventories the stack resources with the AWS CLI.

The conversion step relies on a cdk2pulumi tool, with the agent filling gaps by hand where the tool fails. The skill sets out how to handle CDK custom resources that rely on Lambda-backed handlers, preferring native Pulumi resources where a replacement exists and documenting the rest. It defaults to the aws-native provider and falls back to aws where needed, and it flags asset bundling steps that must be rebuilt in a CI pipeline or a Pulumi command.

After conversion, the agent can import existing resources with a cdk-importer tool and then run a preview to confirm there are no changes. The skill requires a final migration report covering resource mapping, provider choices, behavioral differences and validation steps. Users need an AWS account, CDK and Node tooling, and Pulumi access.

## When your agent uses it

> Load this skill when a user wants to migrate, convert, port, translate, or move an AWS CDK application (including CDK stacks, constructs, or CloudFormation-synthesized templates) to Pulumi. Phrases such as "convert CDK to Pulumi", "migrate CDK app", "port CDK stacks", "replace CDK with Pulumi", "stop using CDK". Do NOT load for general CDK questions, CDK-only help, or CDK vs Pulumi comparisons where no migration is requested.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/pulumi/agent-skills/tree/HEAD/migration/skills/pulumi-cdk-to-pulumi)
- [License: Apache-2.0](https://github.com/pulumi/agent-skills/tree/HEAD/migration/skills/pulumi-cdk-to-pulumi)

## Features

- **CDK stack inventory:** Synthesizes the CDK app and reads the manifest and CloudFormation resources for each stack and region.
- **Automated code conversion:** Runs the cdk2pulumi tool and fills in resources it cannot convert by hand.
- **Custom resource handling:** Maps common CDK Lambda-backed custom resource handlers to native Pulumi resources or documents them.
- **Asset and bundling review:** Classifies Docker, static and bundled assets and flags build steps that need a Pulumi home.
- **Resource import and preview:** Imports existing AWS resources with cdk-importer and checks that a preview shows no changes.
- **Migration report output:** Produces a structured PR-ready report with resource mappings, provider decisions and validation steps.

## Good for

- Convert my AWS CDK TypeScript app into a Pulumi program
- Port CDK stacks to Pulumi without recreating live AWS resources
- Map CloudFormation resources from a CDK app to Pulumi equivalents
- Write a migration report for a pull request moving off CDK
- Check that imported stacks show no changes in pulumi preview

## Install

### Claude Code

This skill ships in the `pulumi-migration` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add pulumi/agent-skills
/plugin install pulumi-migration@pulumi-agent-skills
```

Or copy only this skill to `~/.claude/skills/pulumi-cdk-to-pulumi`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/pulumi/agent-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/pulumi-cdk-to-pulumi &&
cp -R "$tmp/migration/skills/pulumi-cdk-to-pulumi" ~/.claude/skills/pulumi-cdk-to-pulumi &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/pulumi-cdk-to-pulumi` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/pulumi-cdk-to-pulumi` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/pulumi/agent-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/pulumi-cdk-to-pulumi &&
cp -R "$tmp/migration/skills/pulumi-cdk-to-pulumi" ~/.agents/skills/pulumi-cdk-to-pulumi &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/pulumi-cdk-to-pulumi` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/pulumi-cdk-to-pulumi` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/pulumi/agent-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/pulumi-cdk-to-pulumi &&
cp -R "$tmp/migration/skills/pulumi-cdk-to-pulumi" ~/.cursor/skills/pulumi-cdk-to-pulumi &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/pulumi-cdk-to-pulumi` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/pulumi/agent-skills.git --path migration/skills/pulumi-cdk-to-pulumi
```

Or copy the folder to `~/.gemini/skills/pulumi-cdk-to-pulumi` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/pulumi-cdk-to-pulumi`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/pulumi/agent-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/pulumi-cdk-to-pulumi &&
cp -R "$tmp/migration/skills/pulumi-cdk-to-pulumi" ~/.copilot/skills/pulumi-cdk-to-pulumi &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/pulumi-cdk-to-pulumi` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/pulumi/agent-skills.git
```

Then copy `agent-skills/migration/skills/pulumi-cdk-to-pulumi` into your agent's skills folder as `pulumi-cdk-to-pulumi`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Pulumi cdk to pulumi trigger?

It loads when a user wants to migrate, convert, port or move an AWS CDK application to Pulumi. It does not load for general CDK questions, CDK-only help, or comparisons where no migration is requested.

### What does the agent need before starting?

It asks for a Pulumi ESC environment with AWS credentials if none is given, and it confirms the AWS region because cdk synth results depend on it.

### Does Pulumi cdk to pulumi deploy resources on its own?

The skill's steps run cdk synth, AWS CLI listings and pulumi preview, and it asks for targeted questions when artifacts such as cdk.out are missing. The migration workflow is designed to end with a preview that shows no changes after import.

### Which provider does Pulumi cdk to pulumi prefer?

It defaults to aws-native whenever the resource type is available and uses the aws provider when aws-native lacks equivalent features.

### How do I install Pulumi cdk to pulumi in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/pulumi-cdk-to-pulumi to use it in all your projects, or to .claude/skills/pulumi-cdk-to-pulumi in one project. Or install the pulumi-migration plugin, which includes it: /plugin marketplace add pulumi/agent-skills, then /plugin install pulumi-migration@pulumi-agent-skills.

### Does Pulumi cdk to pulumi run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Pulumi cdk to pulumi?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Pulumi cdk to pulumi?

The closest alternatives to Pulumi cdk to pulumi are Cloudformation to pulumi, Pulumi overview, Pulumi arm to pulumi, Pulumi migrate from discovered stack and Pulumi terraform to pulumi.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Cloudformation to pulumi](https://ai-powered.com/skills/cloudformation-to-pulumi): Cloudformation to pulumi is an open-source agent skill for cloud and infrastructure.
- [Pulumi overview](https://ai-powered.com/skills/pulumi-overview): Pulumi overview is an open-source agent skill for cloud and infrastructure.
- [Pulumi arm to pulumi](https://ai-powered.com/skills/pulumi-arm-to-pulumi): Pulumi arm to pulumi is an open-source agent skill for cloud and infrastructure.
- [Pulumi migrate from discovered stack](https://ai-powered.com/skills/pulumi-migrate-from-discovered-stack): Pulumi migrate from discovered stack is an open-source agent skill for cloud and infrastructure.
- [Pulumi terraform to pulumi](https://ai-powered.com/skills/pulumi-terraform-to-pulumi): Pulumi terraform to pulumi is an open-source agent skill for cloud and infrastructure.
- [Pulumi create agent](https://ai-powered.com/skills/pulumi-create-agent): Pulumi create agent is an open-source agent skill for cloud and infrastructure.
- [Pulumi delivery](https://ai-powered.com/skills/pulumi-delivery): Pulumi delivery is an open-source agent skill for cloud and infrastructure.
- [Pulumi best practices](https://ai-powered.com/skills/pulumi-best-practices): Pulumi best practices is an open-source agent skill for cloud and infrastructure.

---
Source: https://ai-powered.com/skills/pulumi-cdk-to-pulumi
