# Cloudformation to pulumi

> Cloudformation to pulumi is an open-source agent skill for cloud and infrastructure. Guides an agent through converting AWS CloudFormation stacks into Pulumi programs. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/pulumi/agent-skills/tree/main/migration/skills/cloudformation-to-pulumi
- **Repository:** https://github.com/pulumi/agent-skills
- **GitHub stars:** 82
- **License:** Apache-2.0
- **Skill name:** cloudformation-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 moving an AWS CloudFormation stack or template into a Pulumi program. It covers fetching the template and resource inventory with the AWS CLI, mapping intrinsic functions, parameters, conditions and mappings to Pulumi equivalents, and handling custom resources. A central rule is to name every Pulumi resource after its CloudFormation logical ID so that the cdk-importer tool can match resources for import.

The skill prefers the aws-native provider because its resource types map closely to CloudFormation types, and it asks the agent to justify any use of the classic aws provider. It also requires a clean pulumi preview after import, with no updates, replaces, creates or deletes, and ends with a pull-request-ready migration report and a resource mapping table.

It expects AWS credentials supplied through Pulumi ESC and a confirmed AWS region. Pulumi's own documentation is referenced for further detail. The skill contains no bundled scripts and sets no restrictions on allowed tools.

## When your agent uses it

> Convert, migrate, or import AWS CloudFormation stacks or templates into Pulumi programs. Load this skill whenever a user wants to move from CloudFormation to Pulumi, convert a CFN template, import existing CloudFormation-managed resources into Pulumi, or asks about CloudFormation-to-Pulumi migration in any form. Also load when the user mentions cdk-importer in a migration context.

## 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/cloudformation-to-pulumi)
- [License: Apache-2.0](https://github.com/pulumi/agent-skills/tree/HEAD/migration/skills/cloudformation-to-pulumi)

## Features

- **Template retrieval:** Fetches the template and lists stack resources from AWS when only a stack name is given.
- **Logical ID naming:** Keeps CloudFormation logical IDs as Pulumi resource names so imports can be matched automatically.
- **Intrinsic function mapping:** Translates Ref, GetAtt, Sub, Join, Select and similar functions into Pulumi equivalents.
- **Parameters and conditions:** Converts template parameters, mappings and conditions into Pulumi config and TypeScript logic.
- **Zero-diff import check:** Requires a clean pulumi preview after import before the migration is considered complete.
- **Migration report:** Produces a resource mapping table, custom resource notes and a PR-ready report.

## Good for

- Convert a CloudFormation template into a TypeScript Pulumi program
- Import an existing CloudFormation-managed stack into Pulumi without recreating resources
- Map CloudFormation Ref and GetAtt calls to Pulumi resource outputs
- Document which CloudFormation custom resources need manual replacement
- Produce a migration report for a pull request

## 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/cloudformation-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/cloudformation-to-pulumi &&
cp -R "$tmp/migration/skills/cloudformation-to-pulumi" ~/.claude/skills/cloudformation-to-pulumi &&
rm -rf "$tmp"
```

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

### Codex

Copy the skill folder to `~/.agents/skills/cloudformation-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/cloudformation-to-pulumi &&
cp -R "$tmp/migration/skills/cloudformation-to-pulumi" ~/.agents/skills/cloudformation-to-pulumi &&
rm -rf "$tmp"
```

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

### Cursor

Copy the skill folder to `~/.cursor/skills/cloudformation-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/cloudformation-to-pulumi &&
cp -R "$tmp/migration/skills/cloudformation-to-pulumi" ~/.cursor/skills/cloudformation-to-pulumi &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/cloudformation-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/cloudformation-to-pulumi
```

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

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/cloudformation-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/cloudformation-to-pulumi &&
cp -R "$tmp/migration/skills/cloudformation-to-pulumi" ~/.copilot/skills/cloudformation-to-pulumi &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/cloudformation-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/cloudformation-to-pulumi` into your agent's skills folder as `cloudformation-to-pulumi`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need before Cloudformation to pulumi starts?

It needs AWS credentials loaded through a Pulumi ESC environment and a confirmed AWS region. If no template file is given, it fetches the template by stack name.

### Which Pulumi provider does Cloudformation to pulumi use?

It uses aws-native by default because CloudFormation types map directly to it. The classic aws provider is used only when aws-native lacks a needed feature, and that choice must be justified.

### Does Cloudformation to pulumi convert code automatically?

No. The skill states there is no automated conversion tool for CloudFormation, so each resource is converted manually by the agent.

### Why must resources keep their logical IDs?

The cdk-importer tool matches resources by name, so renaming them would cause automated import to fail.

### How do I install Cloudformation to pulumi in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/cloudformation-to-pulumi to use it in all your projects, or to .claude/skills/cloudformation-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 Cloudformation 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 Cloudformation to pulumi?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Cloudformation to pulumi?

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

## Where this comes from

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

## Alternatives

- [Pulumi cdk to pulumi](https://ai-powered.com/skills/pulumi-cdk-to-pulumi): Pulumi cdk to pulumi 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 overview](https://ai-powered.com/skills/pulumi-overview): Pulumi overview 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 esc](https://ai-powered.com/skills/pulumi-esc): Pulumi esc is an open-source agent skill for cloud and infrastructure.
- [Pulumi automation API](https://ai-powered.com/skills/pulumi-automation-api): Pulumi automation API is an open-source agent skill for cloud and infrastructure.

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