pulumi-iac
Build infrastructure with Pulumi in general-purpose languages: stacks, component resources, secrets, preview policy and CI automation.
Files2
View on GitHubSKILL.mdskills/cloud/pulumi-iac/SKILL.md
GitHubPulumi Infrastructure as Code
Purpose
Build infrastructure with Pulumi in general-purpose languages: stacks, component resources, secrets, preview policy and CI automation.
When to Use
- Infrastructure should be expressed in TypeScript, Python, Go or C# alongside application code.
- Existing Terraform is being migrated or bridged rather than rewritten.
- Stacks must be previewed and promoted consistently.
When NOT to Use
- The team has no capacity to own a programming-language IaC stack.
- A simple static Terraform module already covers the need.
- You need a provider Pulumi does not support and cannot bridge.
Capabilities
- Define component resources with typed inputs and outputs.
- Manage per-stack configuration and encrypted secrets.
- Gate previews in CI and promote one stack per environment.
- Interoperate with existing Terraform providers where needed.
Inputs
- The language runtime and Pulumi CLI version.
- Stack layout (dev/stage/prod) and state backend.
- The provider credentials and the resources to create.
Workflow
- Model reusable pieces as component resources instead of long flat programs.
- Keep configuration in stack files; never hardcode account ids.
- Store secrets via
pulumi config set --secretso they are encrypted at rest. - Run
pulumi preview --diffin CI and require review for destructive steps. - Promote with
pulumi upper stack and record outputs in the deployment log.
Tools
- pulumi CLI
- pulumi config / pulumi stack
- CI runner with OIDC credentials
Examples
pulumi stack select prod && pulumi preview --diffpulumi config set --secret dbPasswordpulumi up --yes --skip-preview
Safety
pulumi destroyon a stateful stack can delete production data; require explicit approval.- Secrets in plain config leak into state and logs.
- Outputs are visible to anyone with stack access; treat them as public.
Source
All-Skills canonical library (skills/cloud/pulumi-iac). First-party skill, maintained in this repository.
Notes
- Component resources make the resource graph readable in previews.
- Pulumi can consume Terraform providers and remote state during a migration.
- Pairs with:
cloud/terraform-iac,cloud/aws-compute.