Skip to content

dirien/yet-another-agent-harness / .claude/skills/cloudformation-to-pulumi

cloudformation-to-pulumi

Verified

Convert an AWS CloudFormation stack or template to Pulumi. This skill MUST be loaded whenever a user requests migration or conversion of CloudFormation to Pulumi.

FileKindSize
SKILL.mdskill md9.2 KB
agents/openai.yamlconfig249 B
cfn-importer.mdmarkdown4.2 KB
cloudformation-id-lookup.mdmarkdown2.8 KB

cloudformation-id-lookup.md

View on GitHub
# Pulumi Import ID Lookup (`cdk2pulumi ids`)

This tool looks up the required Pulumi import ID format for AWS resources, helping you understand what identifier shape is needed when importing existing AWS resources into Pulumi.

## Prerequisites

- The tool must be installed: `pulumi plugin install tool cdk2pulumi`
- Run via: `pulumi plugin run cdk2pulumi -- ids <resource-type>`

## Usage

### Look Up by Pulumi Resource Token or CloudFormation type

```bash
pulumi plugin run cdk2pulumi -- ids aws-native:s3:Bucket
pulumi plugin run cdk2pulumi -- ids AWS::S3::Bucket
```

## Understanding the Output

The tool returns two key pieces of information:

### 1. Import ID Format

Shows the structure of the ID required by Pulumi's `import` command. Examples:

- **Single-part ID**: `<BucketName>` - Just the bucket name
- **Composite ID**: `<FunctionName>|<StatementId>` - Multiple parts separated by delimiters
- **Complex ID**: `<CertificateAuthorityArn>|<CertificateArn>` - ARNs or other identifiers

### 2. Finding the ID Hint

Provides guidance on how to obtain the actual ID value from AWS:

- **Single-part IDs**: "Use the CloudFormation PhysicalResourceId"
  - Find this in CloudFormation via `aws cloudformation describe-stack-resources` or `aws cloudformation list-stack-resources`
- **Composite IDs**: Shows an `aws cloudcontrol list-resources` command example
  - May include `--resource-model '{...}'` when the Cloud Control API requires input parameters
  - Example: `aws cloudcontrol list-resources --type-name AWS::Lambda::Permission --resource-model '{"FunctionName":"my-function"}'`

## Examples

### Simple Resource (S3 Bucket)

```bash
$ pulumi plugin run cdk2pulumi -- ids AWS::S3::Bucket
Import ID format: <BucketName>
Finding the ID: Use the CloudFormation PhysicalResourceId
```

### Composite ID (Lambda Permission)

```bash
$ pulumi plugin run cdk2pulumi -- ids AWS::Lambda::Permission
Import ID format: <FunctionName>|<StatementId>
Finding the ID: aws cloudcontrol list-resources --type-name AWS::Lambda::Permission --resource-model '{"FunctionName":"<function-name>"}'
```

### Complex Resource (ACM PCA Certificate)

```bash
$ pulumi plugin run cdk2pulumi -- ids AWS::ACMPCA::Certificate
Import ID format: <CertificateAuthorityArn>|<CertificateArn>
Finding the ID: aws cloudcontrol list-resources --type-name AWS::ACMPCA::Certificate --resource-model '{"CertificateAuthorityArn":"<ca-arn>"}'
```

## Tips for Running

- Always use `--` to separate Pulumi CLI arguments from plugin arguments
- For composite IDs, pay attention to the delimiter (usually `|`, `/`, or `:`)
- When the hint shows `--resource-model`, you'll need to provide known properties to list the resources
- The PhysicalResourceId from CloudFormation is often the simplest way to find single-part IDs
- Some resources may require multiple API calls to construct the full composite ID
writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deploymentStars: 322kUpdated Claude CodeCodexVerifiedInstall
xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.Stars: 119kUpdated Claude CodeCodexVerifiedInstall
childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release.Stars: 118kUpdated Claude CodeCodexVerifiedInstall