Skip to content
Back to skills

Pulumi

ASecurity

> Universal Infrastructure as Code.

  • 13 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 5, 2026
ai-agentstypescriptpythongobashawsterraformapidatabasefrontendsecurity

Works with

  • cli
  • api

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 3 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add ashish7802/awesome-api-skills --skill pulumi --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pulumi?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pulumi
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ashish7802-pulumi/badge)](https://www.skillsdirectory.com/skills/ashish7802-pulumi)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Pulumi Skill

> Universal Infrastructure as Code.

## Ecosystem Graph

```mermaid
graph LR
  pulumi["Pulumi"]
  pulumi -- "alternative to" --> terraform
  pulumi -- "depends on" --> typescript
```

## Quick Start
Pulumi allows you to write Infrastructure as Code using general-purpose programming languages (TypeScript, Python, Go) instead of proprietary domain-specific languages like HCL.

```bash
npm install @pulumi/pulumi @pulumi/aws
pulumi up
```

## Production Patterns
### Programmatic Generation
Because Pulumi uses real code, you can easily use loops to generate 50 identical S3 buckets with slightly varying names, or fetch data from an external API to determine resource configurations dynamically during deployment.

## Architecture & Scaling
### Micro-Stacks
Instead of one massive Pulumi project, split your infrastructure into independent Stacks (e.g., `CoreNetwork`, `Database`, `Frontend`). Use Stack References (`new pulumi.StackReference`) to pass outputs (like VPC IDs) between them safely.

## Error Recovery
If Pulumi hangs during an update, you can manually cancel it and use `pulumi stack export` to inspect the raw JSON state, fix any corrupted resource IDs, and `pulumi stack import` the corrected state back.

## Security Notes
Pulumi natively supports secret management (`pulumi config set --secret`). Secrets are encrypted in the state file. When writing TypeScript, these secrets are returned as `Output<string>` types which cannot be accidentally logged as plaintext.

## Relationships
**Prerequisites**: [typescript](/skills/typescript)

**Alternatives**: [terraform](/skills/terraform)

## References
- [Pulumi Docs](https://www.pulumi.com/docs/)

## Why use this skill
Use this when your agent works with **pulumi** — structured patterns beat pasted docs and prevent common hallucinations.

## AI pitfalls
- Referencing CLI flags or config keys that do not exist
- Using outdated major versions of tools
- Skipping lockfile or version pinning in examples

## Production checklist
- [ ] Secrets in environment variables, not source code
- [ ] Error handling and logging in place
- [ ] Rate limits and timeouts configured

## Related skills
- [`terraform`](../terraform/SKILL.md) — alternative to

---
> **Last Verified:** 2026-07-02

Files in this skill

  • SKILL.md2.2 KB
  • examples/index.py114 B
  • examples/index.ts163 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.